shader: align address-memory buffer bindings

This commit is contained in:
nmzik committed 2026-08-21 03:32:49 +02:00
1 parent 61dd8a3031
commit d0a4c908a1
12 files changed
+152 -51

No files matched your search

+6
View File
@@ -939,6 +939,12 @@ void TestDynamicSrtReadRemainsExplicit() {
FindBinding(fixture.program.bindings,
DescriptorBindingKind::AddressMemory) != nullptr,
"dynamic scalar read received the wrong resource bindings");
Check(fixture.program.bindings.memory_offset_dword ==
fixture.program.bindings.user_data_registers.size() &&
fixture.program.bindings.memory_offset_count == 2u &&
fixture.program.bindings.ShaderDataDwords() ==
fixture.program.bindings.memory_offset_dword + 1u,
"unified memory-offset layout is inconsistent");
}
void TestPhiValidation() {