Skip to content

Commit

Permalink
fix example bindings (#1001)
Browse files Browse the repository at this point in the history
  • Loading branch information
cart authored Dec 4, 2020
1 parent 704a116 commit 44b5cfe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/shader/array_texture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ const FRAGMENT_SHADER: &str = r#"
layout(location = 0) in vec4 v_Position;
layout(location = 0) out vec4 o_Target;
layout(set = 1, binding = 1) uniform texture2DArray MyArrayTexture_texture;
layout(set = 1, binding = 2) uniform sampler MyArrayTexture_texture_sampler;
layout(set = 2, binding = 0) uniform texture2DArray MyArrayTexture_texture;
layout(set = 2, binding = 1) uniform sampler MyArrayTexture_texture_sampler;
void main() {
// Screen-space coordinates determine which layer of the array texture we sample.
Expand Down
2 changes: 1 addition & 1 deletion examples/shader/shader_custom_material.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void main() {
const FRAGMENT_SHADER: &str = r#"
#version 450
layout(location = 0) out vec4 o_Target;
layout(set = 1, binding = 1) uniform MyMaterial_color {
layout(set = 2, binding = 0) uniform MyMaterial_color {
vec4 color;
};
void main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/shader/shader_defs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void main() {
const FRAGMENT_SHADER: &str = r#"
#version 450
layout(location = 0) out vec4 o_Target;
layout(set = 1, binding = 1) uniform MyMaterial_color {
layout(set = 2, binding = 0) uniform MyMaterial_color {
vec4 color;
};
void main() {
Expand Down

0 comments on commit 44b5cfe

Please sign in to comment.