MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ enable_depth_test()

void MayaFlux::Buffers::RenderProcessor::enable_depth_test ( Portal::Graphics::CompareOp  compare_op = Portal::Graphics::CompareOp::LESS)

Enable depth testing for this processor's pipeline.

Parameters
compare_opDepth comparison operation (default: LESS)

Marks the owning buffer as requiring a depth attachment. Pipeline will be created with D32_SFLOAT depth format.

Definition at line 127 of file RenderProcessor.cpp.

128{
129 auto next = m_depth_stencil;
130 next.depth_test_enable = true;
131 next.depth_write_enable = true;
132 next.depth_compare_op = compare_op;
133
134 const bool was_enabled = m_depth_enabled;
135 m_depth_enabled = true;
136
137 if (next == m_depth_stencil && was_enabled) {
138 return;
139 }
140
141 m_depth_stencil = next;
143}
Portal::Graphics::DepthStencilConfig m_depth_stencil

References MayaFlux::Portal::Graphics::DepthStencilConfig::depth_test_enable, m_depth_enabled, m_depth_stencil, and MayaFlux::Buffers::ShaderProcessor::m_needs_pipeline_rebuild.

Referenced by set_view_transform(), and set_view_transform_source().

+ Here is the caller graph for this function: