串流資源不支援的樣板格式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 位元深度會有 128x128 個磚,而 8 位元樣板會有 256x256 個磚。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