fix example bindings (#1001)

This commit is contained in:
Carter Anderson 2020-12-04 10:37:27 -08:00 committed by GitHub
parent 704a116778
commit 44b5cfeda1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -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.

View file

@ -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() {

View file

@ -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() {