Skip to content

LiteFX::Rendering::Backends::DirectX12CommandBuffer::setDepthBounds

Sets the depth range for the depth bounds test.

Synopsis

Declared in <litefx/backends/dx12.hpp>

[[dllimport, dllexport]] virtual void setDepthBounds(
    Float minBounds,
    Float maxBounds) const noexcept override;

Description

In order to use the depth bounds test, the currently bound render pipeline must have been created with the depth bounds test enabled, which requires the device to be created with the GraphicsDeviceFeatures::DepthBoundsTest enabled.

See Also

GraphicsDeviceFeatures::DepthBoundsTest

DepthStencilState::DepthState::DepthBoundsTestEnable