Skip to content

Commit

Permalink
Bindless
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijnS95 committed Oct 2, 2020
1 parent ab4845b commit e0fbb20
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
25 changes: 17 additions & 8 deletions tests/glsl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,23 @@ fn glsl_bindings() {
}
);

// assert_eq!(
// sets[&4][&0],
// DescriptorInfo {
// name: "g_bindlessrwimage2d".to_string(),
// ty: DescriptorType::STORAGE_IMAGE,
// is_bindless: true
// }
// );
assert_eq!(
sets[&4][&0],
DescriptorInfo {
name: "g_bindlessrwimage2d".to_string(),
ty: DescriptorType::STORAGE_IMAGE,
is_bindless: true
}
);

assert_eq!(
sets[&4][&1],
DescriptorInfo {
name: "g_bindlesstexture2d".to_string(),
ty: DescriptorType::SAMPLED_IMAGE,
is_bindless: true
}
);

assert_eq!(
sets[&5][&0],
Expand Down
Binary file modified tests/shader-glsl.spv
Binary file not shown.
3 changes: 3 additions & 0 deletions tests/shader.comp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ layout(set = 2, binding = 2, rgba32f) uniform image2D g_rwimage2d;

layout(set = 3, binding = 0) uniform texture2D g_texture2d;

layout(set = 4, binding = 0, rgba32f) uniform image2D g_bindlessrwimage2d[];
layout(set = 4, binding = 1) uniform texture2D g_bindlesstexture2d[];

layout(set = 5, binding = 0) uniform sampler2D g_samplerimage2d;

layout(set = 6, binding = 0, rgba32f) uniform imageBuffer g_imagebuffer;
Expand Down

0 comments on commit e0fbb20

Please sign in to comment.