diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 23:08:25 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 23:08:25 -0500 |
| commit | 7fefdb1e1221e0353c3e742e02212fbcb376799e (patch) | |
| tree | 65a93525c5076976d3600824598a46a4160b1d21 /docs/d3d12_vulkan.md | |
| parent | 0177e62dab6b3c0c4290aa666395e2780a829c48 (diff) | |
| parent | 1e0b4cdd5639fd9aad31d94459421acccc0c66ca (diff) | |
Merge pull request #3781 from Douglas Sposito
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/d3d12_vulkan.md')
| -rw-r--r-- | docs/d3d12_vulkan.md | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/docs/d3d12_vulkan.md b/docs/d3d12_vulkan.md index 559adf92f..e6013dacc 100644 --- a/docs/d3d12_vulkan.md +++ b/docs/d3d12_vulkan.md | |||
| @@ -374,7 +374,9 @@ What is implemented (all of it testable without the game): | |||
| 374 | format then decides the alpha: a `B8G8R8X8` view of a `B8G8R8A8` texture reads 1, a `B8G8R8A8` view of a | 374 | format then decides the alpha: a `B8G8R8X8` view of a `B8G8R8A8` texture reads 1, a `B8G8R8A8` view of a |
| 375 | `B8G8R8X8` one the stored byte. It decides the channel order too: an `R8G8B8A8` texture whose list names | 375 | `B8G8R8X8` one the stored byte. It decides the channel order too: an `R8G8B8A8` texture whose list names |
| 376 | `B8G8R8A8` or `B8G8R8X8` reads red and blue swapped through those views, as on the host (both orders share one | 376 | `B8G8R8A8` or `B8G8R8X8` reads red and blue swapped through those views, as on the host (both orders share one |
| 377 | T# format code, so the T#'s swizzle carries the order). As on the host runtime, the family has no typed UAV, and a typed `B8G8R8X8` | 377 | T# format code, so the T#'s swizzle carries the order). An RTV in a format the list names stores clears and |
| 378 | draws in the view's channel order and encoding, as on the host (see the castable-list RTVs under D3D-275 below). | ||
| 379 | As on the host runtime, the family has no typed UAV, and a typed `B8G8R8X8` | ||
| 378 | texture cannot allow unordered access (the host accepts one whose castable-format list names `B8G8R8A8`; the | 380 | texture cannot allow unordered access (the host accepts one whose castable-format list names `B8G8R8A8`; the |
| 379 | layer doesn't yet). Blending into a `B8G8R8X8` render target reads destination | 381 | layer doesn't yet). Blending into a `B8G8R8X8` render target reads destination |
| 380 | alpha as 1, as WARP and AMD's D3D12 driver do: the PSO turns `DEST_ALPHA` into `ONE`, `INV_DEST_ALPHA` into | 382 | alpha as 1, as WARP and AMD's D3D12 driver do: the PSO turns `DEST_ALPHA` into `ONE`, `INV_DEST_ALPHA` into |
| @@ -2244,6 +2246,23 @@ The trace will enumerate them. | |||
| 2244 | `uint4(7, 300, 1000, 3)` or `float4(0.5, -2, 1.5, 0.25)` into R16G16B16A16_UINT/FLOAT/UNORM, R32_UINT/FLOAT, | 2246 | `uint4(7, 300, 1000, 3)` or `float4(0.5, -2, 1.5, 0.25)` into R16G16B16A16_UINT/FLOAT/UNORM, R32_UINT/FLOAT, |
| 2245 | R10G10B10A2_UINT/UNORM and R8G8B8A8_UINT views of the matching TYPELESS textures: 8 of 8 equal the host, with no | 2247 | R10G10B10A2_UINT/UNORM and R8G8B8A8_UINT views of the matching TYPELESS textures: 8 of 8 equal the host, with no |
| 2246 | validation error, before and after the clear fix. | 2248 | validation error, before and after the clear fix. |
| 2249 | - **RTVs through a castable-format list in the other channel order:** an `R8G8B8A8` or `B8G8R8A8` texture (UNORM or | ||
| 2250 | SRGB, `B8G8R8X8` included) whose castable-format list names the RTV's format in the other channel order, across | ||
| 2251 | `B8G8R8X8` and `B8G8R8A8`, or a typed `B8G8R8A8` texture's listed SRGB format, gets an RTV in that format. | ||
| 2252 | `CreateRenderTargetView` checks the list as the application gave it (`lists_castable_format`), and | ||
| 2253 | `color_view_format` lets a castable image's clear cross between the RGBA8 and BGRA8 orders. WARP and AMD's D3D12 | ||
| 2254 | driver (RX 9060 XT, 26.11.2) store clears and draws in the view's channel order and encoding: an `R8G8B8A8` texture | ||
| 2255 | cleared to (0.2, 0.4, 0.6, 0.25) through a `B8G8R8A8` RTV holds the bytes 153, 102, 51, 64. Before, the RTV was | ||
| 2256 | refused for an `R8G8B8A8` texture (its clear failed `Close` and its draws were dropped), and a typed `B8G8R8A8` | ||
| 2257 | texture's RTV kept the image's format whatever the view named, so its clears came out in BGRA order and without | ||
| 2258 | the sRGB encoding (its draws were right already, as they use the PSO's format). A format the list doesn't name | ||
| 2259 | is refused, on a typed `B8G8R8A8` or `B8G8R8X8` texture as on an `R8G8B8A8` one (the `B8G8R8A8` and | ||
| 2260 | `B8G8R8X8` ones kept the image's format before); a typed `B8G8R8A8` texture without a list still ignores the | ||
| 2261 | RTV's format, as before. `d3d12_clear_test` compares 8 such textures with WARP in full and rectangle clears | ||
| 2262 | within 1 (the X byte of an X8 view left out: WARP and AMD write different values there) and checks that an | ||
| 2263 | `R8G8B8A8`, a `B8G8R8A8` and a `B8G8R8X8` texture each take their own and their listed format and refuse 3 | ||
| 2264 | formats their lists don't name, `d3d12_draw_test` draws through the same views, and `typeless_rtv_test` checks | ||
| 2265 | the replay's crossing and its refusals. | ||
| 2247 | - **Typed RTV clears:** `ClearRenderTargetView` still takes `FLOAT[4]`. For every integer RTV format the device | 2266 | - **Typed RTV clears:** `ClearRenderTargetView` still takes `FLOAT[4]`. For every integer RTV format the device |
| 2248 | exposes (`R8G8`, `R8G8B8A8`, `R16G16`, `R16G16B16A16`, `R32`, `R32G32` and `R32G32B32A32` in `_UINT` and `_SINT`, | 2267 | exposes (`R8G8`, `R8G8B8A8`, `R16G16`, `R16G16B16A16`, `R32`, `R32G32` and `R32G32B32A32` in `_UINT` and `_SINT`, |
| 2249 | plus `R10G10B10A2_UINT`; `R8`/`R16` `_UINT`/`_SINT` are handled in replay too) convert those values numerically | 2268 | plus `R10G10B10A2_UINT`; `R8`/`R16` `_UINT`/`_SINT` are handled in replay too) convert those values numerically |