Skip to content
Merged
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: 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