This commit is contained in:
2021-10-24 15:12:59 +02:00
parent 8d5457c810
commit 23e19bf9d0
9 changed files with 49 additions and 38 deletions

View File

@@ -5,7 +5,7 @@ layout(push_constant) uniform PushConstants {
mat4 model;
} push;
layout(binding = 0) uniform ObjectUniformData {
layout(binding = 0, set = 0) uniform ObjectUniformData {
mat4 view;
mat4 projection;
mat4 ortho_projection;
@@ -15,7 +15,7 @@ layout(binding = 0) uniform ObjectUniformData {
vec3 camera_position;
} ubo;
layout(binding = 1) uniform sampler2D diffuse_tex;
layout(binding = 1, set = 0) uniform sampler2D diffuse_tex;
layout(location = 0) in vec2 tex_coords;