diff options
| author | Emma <47298336+zzEmmazz@users.noreply.github.com> | 2026-11-22 23:59:14 +0200 |
|---|---|---|
| committer | Emma <47298336+zzEmmazz@users.noreply.github.com> | 2026-11-22 23:59:14 +0200 |
| commit | 0fa95b983ecefdf6f5ceea3c8aa44cae22fc9c76 (patch) | |
| tree | 52710f107f55e005f3a4e2633b5e07b87fb5529d /docs/d3d12_vulkan.md | |
| parent | f847748cc76bd3777f9c070c4034eb2fc1c04e64 (diff) | |
d3d12: ArraySize -1 in 2D-array RTVs and DSVs is every slice from the first on
CreateRenderTargetView and CreateDepthStencilView stored ArraySize -1 of a
TEXTURE2DARRAY or TEXTURE2DMSARRAY view as the layer count, so the view was
nulled (typeless and castable RGBA8) or the list was refused at replay. The
host accepts it and clears the remaining slices. Resolve it at creation;
out-of-range views are refused as before. d3d12_view_slices_test compares
clears through such views with the host on the same adapter and WARP.
d3d12_typeless_rtv_test listed {first slice 1, ArraySize -1} on a four-slice
texture among the views the layer must reject; the host accepts that view, so
the entry now uses first slice 4, which the host refuses too.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'docs/d3d12_vulkan.md')
| -rw-r--r-- | docs/d3d12_vulkan.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/d3d12_vulkan.md b/docs/d3d12_vulkan.md index 9281559e2..980830324 100644 --- a/docs/d3d12_vulkan.md +++ b/docs/d3d12_vulkan.md | |||
| @@ -309,7 +309,8 @@ What is implemented (all of it testable without the game): | |||
| 309 | question 4). RTV/DSV slots hold a `TargetView`; shader-visible heaps return a GPU handle, but nothing reads it | 309 | question 4). RTV/DSV slots hold a `TargetView`; shader-visible heaps return a GPU handle, but nothing reads it |
| 310 | yet; | 310 | yet; |
| 311 | - `CreateRenderTargetView` / `CreateDepthStencilView` for whole resources, `TEXTURE2D`, `TEXTURE2DMS`, | 311 | - `CreateRenderTargetView` / `CreateDepthStencilView` for whole resources, `TEXTURE2D`, `TEXTURE2DMS`, |
| 312 | `TEXTURE2DARRAY` and `TEXTURE2DMSARRAY` (a slice range; 1D and 1D-array DSVs wait for 1D textures, D3D-63); | 312 | `TEXTURE2DARRAY` and `TEXTURE2DMSARRAY` (a slice range; `ArraySize` -1 is every slice from the first on, as |
| 313 | on the host, `d3d12_view_slices_test`; 1D and 1D-array DSVs wait for 1D textures, D3D-63); | ||
| 313 | - `CopyDescriptors` / `CopyDescriptorsSimple`. A descriptor is the bytes of its slot, so a copy is a byte copy: | 314 | - `CopyDescriptors` / `CopyDescriptorsSimple`. A descriptor is the bytes of its slot, so a copy is a byte copy: |
| 314 | the destination and source range lists are walked together, one descriptor at a time, and null size arrays | 315 | the destination and source range lists are walked together, one descriptor at a time, and null size arrays |
| 315 | mean one descriptor per range; | 316 | mean one descriptor per range; |