upleb.uk

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

summaryrefslogtreecommitdiff
path: root/docs/d3d12_command_objects.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/d3d12_command_objects.md')
-rw-r--r--docs/d3d12_command_objects.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/d3d12_command_objects.md b/docs/d3d12_command_objects.md
index 2af6d705f..12800a434 100644
--- a/docs/d3d12_command_objects.md
+++ b/docs/d3d12_command_objects.md
@@ -439,6 +439,18 @@ The FSR DLL never writes this form.
439**Byte `+0x143` is console-runtime state:** the BVH builder reads it at 31 sites and the FSR DLL at one (all `cmp 439**Byte `+0x143` is console-runtime state:** the BVH builder reads it at 31 sites and the FSR DLL at one (all `cmp
440byte ptr [reg+143h]`), but neither DLL writes it. Every store into `+0x140`..`+0x143` in either DLL is a byte store to 440byte ptr [reg+143h]`), but neither DLL writes it. Every store into `+0x140`..`+0x143` in either DLL is a byte store to
441`+0x140` or `+0x141`, and no wider store reaches `+0x143`. A replacement list can leave it 0. 441`+0x140` or `+0x141`, and no wider store reaches `+0x143`. A replacement list can leave it 0.
442**The root-argument header word** is the root parameter's table entry `table[root]` (`+0x344 + 4·root`), adjusted
443only for root constants:
444
445- **Several 32-bit constants at once:** `table[root] + (count − 1) << 16`, then `count` dwords. Examples:
446 `+ 0x120000` for 19 constants (`0x14e3b`), `+ 0x70000` for 8 (`0x1d324`), `+ 0x30000` for 4.
447- **One constant at a non-zero offset:** `table[root] + 4 · destOffset`. At `0x19fca` the builder adds `0xc` and its
448 vtable fallback is slot 37 `(2, value, 3)`; at `0x1a346` it adds `0x14` and the fallback is `(2, value, 5)`.
449- **Otherwise the entry is written unchanged:** one constant at offset 0, a descriptor table (then 4 bytes), a root
450 CBV/SRV/UAV (then the full 8-byte GPU address, e.g. `0x19fff`).
451
452No site combines both adjustments. Before writing, every reader tests the entry against `0xC0000000` (98 sites in the
453builder, 7 in the FSR DLL), and sets the flag byte at `+0x140` only when both of those bits are clear.
442It sets a flag byte at `+0x140`, stores a flag at `+0x141` from the 454It sets a flag byte at `+0x140`, stores a flag at `+0x141` from the
443pipeline, and copies 32 bytes of the pipeline object (from its `+0x10`) to `+0x544`. These are the fields 455pipeline, and copies 32 bytes of the pipeline object (from its `+0x10`) to `+0x544`. These are the fields
444section 3.4 measured in the BVH builder's helper without a meaning (`+0x18`, `+0x30`, `+0x140`, `+0x344`, `+0x544`). 456section 3.4 measured in the BVH builder's helper without a meaning (`+0x18`, `+0x30`, `+0x140`, `+0x344`, `+0x544`).