-
Notifications
You must be signed in to change notification settings - Fork 335
Closed
Labels
feature requestA request for a new GPU feature exposed in the APIA request for a new GPU feature exposed in the APIproposal
Description
Currently the following depth-stencil formats are available:
depth32float
depth24plus
depth24plus-stencil8
However, depth32float-stencil8
is desired since some techniques require depth32float
depth and you may want to use those techniques together with a stencil buffer. depth24plus-stencil8
may provide this but is undesirable for a couple of reasons:
- a
depth32float
result would only be detectable through a readback test - the current spec does not say implementations should prefer
depth24
ordepth32float
if both options are available. Therefore the result is implementation defined. It may be desired to specify a preference when both options are available.
My understanding is that this option is not available in core because not all targets require this format. Therefore it seems appropriate to add it as an extension.
depth32float-stencil8
would be added to the GPUExtensionName enum.depth32float-stencil8
would be added to the GPUTextureFormat enum and documented to only be valid when thedepth32float-stencil8
extension is available.
In terms of backend support you have:
Metal
- Depth32Float_Stencil8 for MSAA on all targets
- DXGI_FORMAT_D32_FLOAT_S8X24_UINT support is required
- Table 50: "VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT feature ... must be supported for at least one of VK_FORMAT_D24_UNORM_S8_UINT and VK_FORMAT_D32_SFLOAT_S8_UINT"
kvark and mrshannon
Metadata
Metadata
Assignees
Labels
feature requestA request for a new GPU feature exposed in the APIA request for a new GPU feature exposed in the APIproposal