Commit Graph

2 Commits

Author SHA1 Message Date
36e9f9fce9 xdxr_descs: require complete 16-byte StreamRecords in find_stream_record 2026-11-24 11:09:18 +05:00
e3794131b6 docs/runtime: XDXR BATCHED_DESC2 and XDXR_STREAM_DESC layouts from XboxBvhBuilder.dll (open question 8)
Recovered from the package DLL's own reads (field accesses, element strides,
the standard-build and prebuild wrappers that construct a BATCHED_DESC2):
BATCHED_DESC2 is the public build desc, the postbuild count and pointer and
a 16-byte XDXR_STREAM_DESC (0x50 bytes); the stream desc is a size and a
pointer to 16-byte typed records, whose offsets, value types, defaults and
lookup rule are measured. The DLL rejects the offline-statistics postbuild
type for every build, so that layout is not in the package.

docs/xdxr.md has the evidence per field (RVAs only, nothing quoted from the
DLL). runtime/src/xdxr_descs.h defines the structs with static_asserts and
the DLL's stream lookup and flag defaults; xdxr_descs_test checks them and,
with a DXR d3d12.h, the public part against the SDK.
2026-11-22 03:23:37 +01:00