Files
wgpu/naga/tests/in/bounds-check-dynamic-buffer.param.ron
T
Teodor Tanasoaia a8bd1fe1ac [d3d12] bound check dynamic buffers (#6931)
To achieve this for dynamic storage buffers we changed the way we bind them. They now go in root tables and we pass the offset via a root constant.
2025-01-23 17:18:36 +00:00

17 lines
779 B
Plaintext

(
hlsl: (
binding_map: {
(group: 0, binding: 0): (space: 0, register: 0),
(group: 0, binding: 1): (space: 0, register: 1),
(group: 0, binding: 2): (space: 0, register: 0, restrict_indexing: true),
(group: 0, binding: 3): (space: 0, register: 2, dynamic_storage_buffer_offsets_index: Some(0)),
(group: 0, binding: 4): (space: 0, register: 3, dynamic_storage_buffer_offsets_index: Some(1)),
(group: 1, binding: 0): (space: 0, register: 4, dynamic_storage_buffer_offsets_index: Some(0)),
},
dynamic_storage_buffer_offsets_targets: {
0: (space: 0, register: 1, size: 2),
1: (space: 0, register: 2, size: 1),
},
restrict_indexing: true
),
)