Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion crates/victory-shader/src/emit/stride_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,13 @@ fn a_heap_buffer_read_by_element_takes_the_views_stride() {
assert_eq!(shader.root_srvs, [VIEW_STRIDES]);
// 32 elements of 12 bytes: (100 + e, 200 + e, 300 + e).
let data: Vec<u32> = (0..32).flat_map(|e| [100 + e, 200 + e, 300 + e]).collect();
// A raw view, as the host makes every heap buffer view: the shader
// reads it by byte address, the stride coming from the table alone.
let views = [
View::RawUav(32),
View::Buffer {
data: &data,
stride: Stride::Structured(12),
stride: Stride::Raw,
},
];
let _one = super::valu_tests::ONE_AT_A_TIME
Expand Down
3 changes: 2 additions & 1 deletion crates/victory-shader/src/emit/synthetic_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,10 @@ fn gathers_at_a_level_match_the_hardware() {
}
let views = [
View::Mipped(24, 16, 4, &texels),
// Read by byte address (`offen`): a raw view, as the host makes.
View::Buffer {
data: &input,
stride: Stride::Structured(16),
stride: Stride::Raw,
},
View::RawUav(32 * 12),
];
Expand Down
Loading