|
Blender V5.3
|
#include <eevee_pipeline.hh>
Public Member Functions | |
| Prepass (Instance &inst) | |
Prepass | |
Helper class for handling prepasses in Forward and Deferred pipelines. | |
| void | init (DRWState extra_state=DRW_STATE_NO_DRAW, bool supports_motion_vectors=true, bool supports_raycast_visibility=true, FunctionRef< void(PassMain &pass)> pass_setup_cb={}) |
| PassMain::Sub * | add (blender::Material *blender_mat, GPUMaterial *gpumat, bool has_motion, bool hide_from_raycast) |
| void | end_sync () |
| void | render (View &view, gpu::Texture *fb_depth_tx, bool can_raycast) |
Definition at line 147 of file eevee_pipeline.hh.
|
inline |
Definition at line 174 of file eevee_pipeline.hh.
| PassMain::Sub * blender::eevee::Prepass::add | ( | blender::Material * | blender_mat, |
| GPUMaterial * | gpumat, | ||
| bool | has_motion, | ||
| bool | hide_from_raycast ) |
Definition at line 306 of file eevee_pipeline.cc.
References blender::draw::detail::PassBase< DrawCommandBufType >::bind_texture(), blender::GPU_material_flag_get(), blender::GPU_material_get_name(), blender::GPU_MATFLAG_RAYCAST, blender::MA_BL_CULL_BACKFACE, OBJECT_ID_TEX_SLOT, PREPASS_NORMAL_TEX_SLOT, and RAYCAST_DEPTH_TEX_SLOT.
Referenced by blender::eevee::DeferredLayer::prepass_add(), and blender::eevee::PlanarProbePipeline::prepass_add().
| void blender::eevee::Prepass::end_sync | ( | ) |
Definition at line 332 of file eevee_pipeline.cc.
References blender::draw::detail::PassBase< DrawCommandBufType >::bind_ubo(), blender::DRW_STATE_CULL_BACK, blender::DRW_STATE_WRITE_COLOR, blender::GPU_ATTACHMENT_IGNORE, blender::GPU_ATTACHMENT_READ, blender::GPU_ATTACHMENT_WRITE, PIPELINE_BUF_SLOT, SET_FLAG_FROM_TEST, state, blender::draw::detail::PassBase< DrawCommandBufType >::state_set(), and blender::draw::detail::PassBase< DrawCommandBufType >::subpass_transition().
Referenced by blender::eevee::DeferredLayer::end_sync(), and blender::eevee::PlanarProbePipeline::end_sync().
| void blender::eevee::Prepass::init | ( | DRWState | extra_state = DRW_STATE_NO_DRAW, |
| bool | supports_motion_vectors = true, | ||
| bool | supports_raycast_visibility = true, | ||
| FunctionRef< void(PassMain &pass)> | pass_setup_cb = {} ) |
Definition at line 243 of file eevee_pipeline.cc.
References blender::eevee::RenderBuffers::depth_format, blender::DRW_STATE_CLIP_CONTROL_UNIT_RANGE, blender::DRW_STATE_WRITE_DEPTH, blender::eevee::RenderBuffers::object_id_format, blender::eevee::RenderBuffers::prepass_normal_format, RBUFS_UTILITY_TEX_SLOT, and blender::draw::detail::PassBase< DrawCommandBufType >::sub().
Referenced by blender::eevee::DeferredLayer::begin_sync(), and blender::eevee::PlanarProbePipeline::begin_sync().
| void blender::eevee::Prepass::render | ( | View & | view, |
| gpu::Texture * | fb_depth_tx, | ||
| bool | can_raycast ) |
Definition at line 379 of file eevee_pipeline.cc.
Referenced by blender::eevee::DeferredLayer::render(), and blender::eevee::PlanarProbePipeline::render().