LiteFX::Rendering::DepthStencilState::DepthState::DepthBoundsTestEnable¶
Enables the depth bounds test.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
bool DepthBoundsTestEnable = { false };Description¶
Enabling the depth bounds test allows to supply a depth range to the command buffer by calling ICommandBuffer::setDepthBounds, which will cause an rasterization operation to exit early, if the resulting depth lies outside of the provided range. To use this test, the GraphicsDeviceFeatures::DepthBoundsTest must be enabled on the device.