|
Blender V5.0
|
#include <eevee_pipeline.hh>
Public Member Functions | |
| ForwardPipeline (Instance &inst) | |
Forward Pass | |
Handles alpha blended surfaces and NPR materials (using Closure to RGBA). | |
| void | sync () |
| PassMain::Sub * | prepass_opaque_add (::Material *blender_mat, GPUMaterial *gpumat, bool has_motion) |
| PassMain::Sub * | material_opaque_add (::Material *blender_mat, GPUMaterial *gpumat) |
| PassMain::Sub * | prepass_transparent_add (const Object *ob, ::Material *blender_mat, GPUMaterial *gpumat) |
| PassMain::Sub * | material_transparent_add (const Object *ob, ::Material *blender_mat, GPUMaterial *gpumat) |
| void | render (View &view, Framebuffer &prepass_fb, Framebuffer &combined_fb, int2 extent) |
Definition at line 137 of file eevee_pipeline.hh.
|
inline |
Definition at line 158 of file eevee_pipeline.hh.
| PassMain::Sub * blender::eevee::ForwardPipeline::material_opaque_add | ( | ::Material * | blender_mat, |
| GPUMaterial * | gpumat ) |
Definition at line 386 of file eevee_pipeline.cc.
References Material::blend_flag, BLI_assert_msg, GPU_material_flag_get(), GPU_material_get_name(), GPU_MATFLAG_TRANSPARENT, MA_BL_CULL_BACKFACE, and blender::draw::detail::PassBase< DrawCommandBufType >::sub().
| PassMain::Sub * blender::eevee::ForwardPipeline::material_transparent_add | ( | const Object * | ob, |
| ::Material * | blender_mat, | ||
| GPUMaterial * | gpumat ) |
Definition at line 417 of file eevee_pipeline.cc.
References Material::blend_flag, blender::math::dot(), DRW_STATE_BLEND_CUSTOM, DRW_STATE_CLIP_CONTROL_UNIT_RANGE, DRW_STATE_CULL_BACK, DRW_STATE_WRITE_COLOR, GPU_material_get_name(), MA_BL_CULL_BACKFACE, blender::draw::detail::PassBase< DrawCommandBufType >::material_set(), state, and blender::draw::detail::PassBase< DrawCommandBufType >::state_set().
| PassMain::Sub * blender::eevee::ForwardPipeline::prepass_opaque_add | ( | ::Material * | blender_mat, |
| GPUMaterial * | gpumat, | ||
| bool | has_motion ) |
Definition at line 365 of file eevee_pipeline.cc.
References Material::blend_flag, BLI_assert_msg, GPU_material_flag_get(), GPU_material_get_name(), GPU_MATFLAG_TRANSPARENT, MA_BL_CULL_BACKFACE, and blender::draw::detail::PassBase< DrawCommandBufType >::sub().
| PassMain::Sub * blender::eevee::ForwardPipeline::prepass_transparent_add | ( | const Object * | ob, |
| ::Material * | blender_mat, | ||
| GPUMaterial * | gpumat ) |
Definition at line 397 of file eevee_pipeline.cc.
References Material::blend_flag, blender::math::dot(), DRW_STATE_CLIP_CONTROL_UNIT_RANGE, DRW_STATE_CULL_BACK, DRW_STATE_WRITE_DEPTH, GPU_material_get_name(), MA_BL_CULL_BACKFACE, MA_BL_HIDE_BACKFACE, blender::draw::detail::PassBase< DrawCommandBufType >::material_set(), state, and blender::draw::detail::PassBase< DrawCommandBufType >::state_set().
| void blender::eevee::ForwardPipeline::render | ( | View & | view, |
| Framebuffer & | prepass_fb, | ||
| Framebuffer & | combined_fb, | ||
| int2 | extent ) |
Definition at line 434 of file eevee_pipeline.cc.
References blender::draw::Framebuffer::bind(), GPU_debug_group_begin(), GPU_debug_group_end(), and view.
| void blender::eevee::ForwardPipeline::sync | ( | ) |
Definition at line 287 of file eevee_pipeline.cc.
References blender::draw::detail::PassBase< DrawCommandBufType >::bind_resources(), blender::draw::detail::PassBase< DrawCommandBufType >::bind_texture(), DRW_STATE_CLIP_CONTROL_UNIT_RANGE, DRW_STATE_CULL_BACK, DRW_STATE_DEPTH_EQUAL, DRW_STATE_WRITE_COLOR, DRW_STATE_WRITE_DEPTH, FLT_MAX, and RBUFS_UTILITY_TEX_SLOT.