diff --git a/examples/shader/array_texture.rs b/examples/shader/array_texture.rs index 5f4e4499455ae..6e6308613ab5f 100644 --- a/examples/shader/array_texture.rs +++ b/examples/shader/array_texture.rs @@ -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. diff --git a/examples/shader/shader_custom_material.rs b/examples/shader/shader_custom_material.rs index 949a1d55c59f1..214c9bdb560a2 100644 --- a/examples/shader/shader_custom_material.rs +++ b/examples/shader/shader_custom_material.rs @@ -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() { diff --git a/examples/shader/shader_defs.rs b/examples/shader/shader_defs.rs index 0c920069c7b18..9b2704fe0e742 100644 --- a/examples/shader/shader_defs.rs +++ b/examples/shader/shader_defs.rs @@ -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() {