upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/d3d12_vulkan.md
diff options
context:
space:
mode:
authorClaude <noreply@anthropic.com>2026-11-29 09:49:45 +0000
committerClaude <noreply@anthropic.com>2026-11-29 09:49:45 +0000
commitf58143876eea19e0719d51564e44b0f45dec4dbc (patch)
tree9c6b496931bcffcc750ad5aab0a078832c089b97 /docs/d3d12_vulkan.md
parent3c108a33959e82a143f7a6c055f0c20f876c9842 (diff)
parent5844b64813cd97d1262f584155cc3f76c3e584ae (diff)
Merge ProjectLeonida/mandy main into claude/d3d-bundle-execute-indirect-37f83c
Diffstat (limited to 'docs/d3d12_vulkan.md')
-rw-r--r--docs/d3d12_vulkan.md12
1 files changed, 8 insertions, 4 deletions
diff --git a/docs/d3d12_vulkan.md b/docs/d3d12_vulkan.md
index 34eab704a..813324c12 100644
--- a/docs/d3d12_vulkan.md
+++ b/docs/d3d12_vulkan.md
@@ -4350,12 +4350,16 @@ will forward to. The queue-side calls ignore which queue they came on (one `VkQu
4350 working space, plane 1 is blended over plane 0 there, and the sum is encoded once: 4350 working space, plane 1 is blended over plane 0 there, and the sum is encoded once:
4351 4351
4352 1. Decode. SDR planes: the SDR EOTF (below) gives linear Rec.709 with 1.0 = SDR white. HDR10 planes: PQ inverse to linear 4352 1. Decode. SDR planes: the SDR EOTF (below) gives linear Rec.709 with 1.0 = SDR white. HDR10 planes: PQ inverse to linear
4353 nits (Rec.2020). Premultiplied data is divided by alpha for the decode and multiplied again after, so what is filtered 4353 nits (Rec.2020). For premultiplied UNORM, encoded RGB up to alpha is divided by alpha before decoding and multiplied
4354 and blended is linear premultiplied colour; straight-alpha colour is premultiplied after the decode, so a transparent 4354 again afterwards. Encoded RGB above alpha is decoded as additive light, including all RGB when alpha is zero. Both
4355 texel adds no colour of its own (found in review by @Flyander). 4355 contributions are filtered separately so coverage cannot attenuate the additive light. Premultiplied
4356 `*_UNORM_SRGB` planes are already hardware-decoded to linear premultiplied light by `texelFetch` (no encoded-space
4357 division by alpha). Straight-alpha colour is premultiplied after the decode, so a transparent texel adds no colour of
4358 its own (found in review by @Flyander).
4356 2. Convert, still linear. HDR10 output: SDR to Rec.2020 (the Rec.709 to Rec.2020 matrix from the primaries; rows sum to 1) 4359 2. Convert, still linear. HDR10 output: SDR to Rec.2020 (the Rec.709 to Rec.2020 matrix from the primaries; rows sum to 1)
4357 times the SDR white level in nits. SDR output: HDR10 to Rec.709 (the inverse matrix), divided by the SDR white level, then 4360 times the SDR white level in nits. SDR output: HDR10 to Rec.709 (the inverse matrix), divided by the SDR white level, then
4358 tone mapped (below). A plane already in the output's space is not converted. 4361 tone mapped (below). Tone mapping unpremultiplies only the covered light and maps the filtered additive light
4362 independently. A plane already in the output's space is not converted.
4359 3. Blend `over + (1 - alpha) * base` (premultiplied; straight alpha was premultiplied in step 1); black outside plane 0. 4363 3. Blend `over + (1 - alpha) * base` (premultiplied; straight alpha was premultiplied in step 1); black outside plane 0.
4360 4. Encode once: PQ of the nits for an HDR10 output (argument clamped to 0..10000 nits), the inverse SDR EOTF (clipped to 4364 4. Encode once: PQ of the nits for an HDR10 output (argument clamped to 0..10000 nits), the inverse SDR EOTF (clipped to
4361 0..1) for an SDR one. 4365 0..1) for an SDR one.