使用流式资源时,模板格式不受支持Stencil formats not supported with streaming resources

使用流式资源时,包含模板的格式不受支持。Formats that contain stencil aren't supported with streaming resources.

包含模具的格式包括 DXGI_格式_D24_UNORM_S8_UINT (以及 R24G8 系列中的相关格式)和 DXGI_格式_D32_FLOAT_S8X24_UINT (以及 R32G8X24 系列中的相关格式)。Formats that contain stencil include DXGI_FORMAT_D24_UNORM_S8_UINT (and related formats in the R24G8 family) and DXGI_FORMAT_D32_FLOAT_S8X24_UINT (and related formats in the R32G8X24 family).

某些实现以独立分配方式存储深度和模板,而另一些实现将两者存储在一起。Some implementations store depth and stencil in separate allocations while others store them together. 针对两种方案的磁贴管理必须有所不同,并且任何单个 API 均不可抽象差异或使差异合理化。Tile management for the two schemes would have to be different, and no single API can abstract or rationalize the differences. 我们建议使用未来的硬件,以支持独立深度和模板表面(均独立平铺)。We recommend for future hardware to support independent depth and stencil surfaces, each independently tiled.

32 位深度磁贴大小为 128 x 128,8 位模板磁贴大小为 256 x 256。32-bit depth would have 128x128 tiles, and 8-bit stencil would have 256x256 tiles. 因此,应用必须适应深度和模板之间的磁贴形状错位。Therefore, applications would have to live with tile shape misalignment between depth and stencil. 但不同的呈现器目标表面格式已经存在同样的问题。But the same problem exists with different render target surface formats already.

相关主题Related topics

流式处理资源跨进程和设备共享Streaming resource cross-process and device sharing