Commit 1e27bb3
committed
Fix D3D12 DSV creation for array/cube/cube-array depth textures
DSV creation was missing a TEXTURE2DARRAY branch for array, cube, and
cube-array depth textures. It fell through to TEXTURE2D, so
FirstArraySlice was never set and all layers' DSVs targeted layer 0.
This caused incorrect rendering when using depth textures with multiple
layers, such as cubemap shadow maps.1 parent 72ed7d0 commit 1e27bb3
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3646 | 3646 | | |
3647 | 3647 | | |
3648 | 3648 | | |
3649 | | - | |
| 3649 | + | |
| 3650 | + | |
| 3651 | + | |
| 3652 | + | |
| 3653 | + | |
| 3654 | + | |
3650 | 3655 | | |
3651 | 3656 | | |
3652 | 3657 | | |
| |||
0 commit comments