Add new 'Constants' helper;

This commit is contained in:
bjorn 2022-08-12 22:44:18 -07:00
parent b615de26d6
commit f6a1fbdfb9
3 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,7 @@
layout(local_size_x = 32, local_size_x_id = 0) in;
layout(push_constant) uniform Constants {
layout(push_constant) uniform PushConstants {
uint baseVertex;
uint vertexCount;
};

View File

@ -148,6 +148,8 @@ layout(location = 14) in vec3 Tangent;
// Helpers
#define Constants layout(push_constant) uniform PushConstants
// Helper for sampling textures using the default sampler set using Pass:setSampler
#ifndef GL_COMPUTE_SHADER
vec4 getPixel(texture2D t, vec2 uv) { return texture(sampler2D(t, Sampler), uv); }

View File

@ -2,7 +2,7 @@
layout(local_size_x = 32) in;
layout(push_constant) uniform Constants {
layout(push_constant) uniform PushConstants {
uint first;
uint count;
uint views;