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
5 changes: 4 additions & 1 deletion src/direct_compute_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,10 @@ static const char *view_kind_name(ComputeViewKind kind) {
"heap_stride_srv", "raw_buffer_uav", "typed_buffer_uav", "half_buffer_uav", "root_buffer_srv",
"comparison_texture_srv", "half2_texture_uav", "half4_texture_uav", "cube_sample_srv", "cube_comparison_srv",
"indexed_atomic_uav", "d16_sample_srv", "byte_window_srv", "heap_buffer_srv", "heap_sampler",
"uint_texture_uav", "float_texture_uav", "float2_texture_uav", "float3_texture_uav"};
"uint_texture_uav", "float_texture_uav", "float2_texture_uav", "float3_texture_uav", "packed_d16_x_uav",
"indexed_raw_srv"};
// ponytail: catches a renamed last kind, not one appended after it; extend both together.
static_assert(std::size(names) == static_cast<size_t>(ComputeViewKind::indexed_raw_srv) + 1);
const auto index = static_cast<size_t>(kind);
return index < std::size(names) ? names[index] : "unknown";
}
Expand Down
1 change: 1 addition & 0 deletions tests/native_compute_manifest_reasons.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ int main() {
{"SRV registers not contiguous", [](auto &p) { p.bindings[0].shader_register = 1; }},
{"UAV registers not contiguous", [](auto &p) { p.bindings[1].shader_register = 1; }},
{"SRV kind root_buffer_srv", [](auto &p) { p.bindings[0].kind = K::root_buffer_srv; }},
{"SRV kind indexed_raw_srv", [](auto &p) { p.bindings[0].kind = K::indexed_raw_srv; }},
{"SRV kind texture_srv cube", [](auto &p) {
p.bindings[0].kind = K::texture_srv;
p.bindings[0].image_dimension = 3;
Expand Down
Loading