mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 15:14:50 +00:00
fix example bindings (#1001)
This commit is contained in:
parent
704a116778
commit
44b5cfeda1
3 changed files with 4 additions and 4 deletions
|
@ -51,8 +51,8 @@ const FRAGMENT_SHADER: &str = r#"
|
||||||
layout(location = 0) in vec4 v_Position;
|
layout(location = 0) in vec4 v_Position;
|
||||||
layout(location = 0) out vec4 o_Target;
|
layout(location = 0) out vec4 o_Target;
|
||||||
|
|
||||||
layout(set = 1, binding = 1) uniform texture2DArray MyArrayTexture_texture;
|
layout(set = 2, binding = 0) uniform texture2DArray MyArrayTexture_texture;
|
||||||
layout(set = 1, binding = 2) uniform sampler MyArrayTexture_texture_sampler;
|
layout(set = 2, binding = 1) uniform sampler MyArrayTexture_texture_sampler;
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
// Screen-space coordinates determine which layer of the array texture we sample.
|
// Screen-space coordinates determine which layer of the array texture we sample.
|
||||||
|
|
|
@ -42,7 +42,7 @@ void main() {
|
||||||
const FRAGMENT_SHADER: &str = r#"
|
const FRAGMENT_SHADER: &str = r#"
|
||||||
#version 450
|
#version 450
|
||||||
layout(location = 0) out vec4 o_Target;
|
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;
|
vec4 color;
|
||||||
};
|
};
|
||||||
void main() {
|
void main() {
|
||||||
|
|
|
@ -47,7 +47,7 @@ void main() {
|
||||||
const FRAGMENT_SHADER: &str = r#"
|
const FRAGMENT_SHADER: &str = r#"
|
||||||
#version 450
|
#version 450
|
||||||
layout(location = 0) out vec4 o_Target;
|
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;
|
vec4 color;
|
||||||
};
|
};
|
||||||
void main() {
|
void main() {
|
||||||
|
|
Loading…
Reference in a new issue