You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
build: OFFSCREEN_AGILITY_620_DIR builds fail on a 40-byte view-description static_assert #3165
Current main (88cddb09), Windows 11 build 26300, MSVC 14.44.35207, Windows SDK 10.0.26100, Agility SDK 1.620.2 from nuget.org (sdk.nupkg next to its x64 DLLs, as described in docs/experiments.md):
That line is static_assert(sizeof(D3D12_SHADER_RESOURCE_VIEW_DESC) == 40 && sizeof(D3D12_UNORDERED_ACCESS_VIEW_DESC) == 40);, added in #2532. The option puts the Agility SDK 1.620 headers first on the include path of these two targets. With them, D3D12_UNORDERED_ACCESS_VIEW_DESC is 48 bytes, because the new D3D12_BUFFER_UAV_BYTE_OFFSET union member is larger than any member of the desktop SDK union. D3D12_SHADER_RESOURCE_VIEW_DESC stays 40 bytes (measured with sizeof against both header sets).
The default build (option unset) is unaffected. Every opt-in Agility build is affected, including the offscreen_check WARP checks from #147 (bvh_wave64_warp, dxr_query_warp and the others) and every test that runs startup_stream_consumer.
Notes
The view record copies the title's description bytes (record.desc_bytes >= sizeof(desc)), so making the buffer 48 bytes would also change, for UAVs, which descriptions count as "described". A fix probably needs to separate the size of the title layout (40 bytes) from the size of the header struct. I have not written one.
Activity