Files
angle/scripts/code_generation_hashes/D3D11_format.json
T
Stephen White 6c0d46588d D3D11: implement stencil texturing.
When GL_DEPTH_STENCIL_TEXTURE_MODE is set to GL_STENCIL_INDEX, GL
requires the stencil value to be in the R component. However, when
sampling a depth24stencil8 texture in D3D11, the stencil ends up in the
G component. So in this mode, swizzle the result from G to R.

In order to sample stencil, use the appropriate stencil-only format
for the SRV: X24_TYPELESS_G8_UINT for d24s8, X32_TYPELESS_G8X24_UINT
for d32fs8. This required adding a new field to D3D11 Format.

Bug: angleproject:7303
Change-Id: I7cf70efaaf6c833fa0b2497e4080618dfd7103ac
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3679485
Reviewed-by: Geoff Lang <[email protected]>
Commit-Queue: Stephen White <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2022-06-01 22:17:23 +00:00

12 lines
503 B
JSON

{
"src/libANGLE/renderer/angle_format.py":
"2f8fa768088e22b0963bbdf842d3e725",
"src/libANGLE/renderer/d3d/d3d11/gen_texture_format_table.py":
"cba2514aab022016a85a4662b7a2ad70",
"src/libANGLE/renderer/d3d/d3d11/texture_format_data.json":
"7b89bdaf561da7c741f91cf021f78990",
"src/libANGLE/renderer/d3d/d3d11/texture_format_map.json":
"c2019facd60d49228232b0e0b5e5048b",
"src/libANGLE/renderer/d3d/d3d11/texture_format_table_autogen.cpp":
"5a362ce129c98dbb6bb3f89287f265bd"
}