Skip to content
Merged
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 runtime/test/vk_texture_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,10 @@ int main(int argc, char** argv) {
leonida::DescriptorTable desc_table(16);
// The heap already holds the original key. Change only the registered key for the miss control.
if (fetch_miss) tsharp[7] ^= 1;
desc_table.insert(tsharp, 1, leonida::kind_sampled_bit(cube ? 1 : 0));
// Index 1 is bound in both sampled arrays the shaders read: images[1] (binding 0, the 2D view) and the 2D-array
// images[1] (binding 3, the view of the two cubes). A tagged module reads its instruction's array only when the
// entry's kind names it, so the kind carries both: with one bit, a 2D_ARRAY or cube op got the 1x1 fallback.
desc_table.insert(tsharp, 1, leonida::kind_sampled_bit(0) | leonida::kind_sampled_bit(1));
desc_table.insert(ssharp, 1);
const auto table = desc_table.build_gpu_buffer(true);
VkBuffer tb; VkDeviceMemory tbm; void* tbp;
Expand Down
Loading