|
Blender V4.3
|
#include <workbench_private.hh>
Public Member Functions | |
| GPUTexture * | extract (Manager &manager, Texture &stencil_src) |
Definition at line 230 of file workbench_private.hh.
|
inline |
WARNING: Should only be called at render time. When the workaround path is active, the returned texture won't stay in sync with the stencil_src, and will only be valid until the next time this function is called. Note that the output is a binary mask, any stencil value that is not 0x00 will be rendered as 0xFF.
Definition at line 241 of file workbench_private.hh.
References blender::draw::detail::PassBase< DrawCommandBufType >::clear_color(), blender::draw::detail::PassBase< DrawCommandBufType >::draw_procedural(), DRW_STATE_STENCIL_NEQUAL, DRW_STATE_WRITE_COLOR, blender::draw::Framebuffer::ensure(), blender::draw::Texture::ensure_2d(), fb(), blender::workbench::ShaderCache::get(), GPU_ATTACHMENT_TEXTURE, GPU_PRIM_TRIS, GPU_R8UI, GPU_TEXTURE_USAGE_ATTACHMENT, GPU_TEXTURE_USAGE_SHADER_READ, GPU_texture_view_support(), blender::draw::Texture::height(), blender::draw::detail::Pass< DrawCommandBufType >::init(), blender::draw::detail::PassBase< DrawCommandBufType >::shader_set(), blender::draw::detail::PassBase< DrawCommandBufType >::state_set(), blender::draw::detail::PassBase< DrawCommandBufType >::state_stencil(), blender::draw::Texture::stencil_view(), blender::draw::Manager::submit(), and blender::draw::Texture::width().
Referenced by blender::workbench::OpaquePass::draw(), and blender::workbench::VolumePass::draw().