mirror of https://github.com/bjornbytes/lovr.git
Add new 'Constants' helper;
This commit is contained in:
parent
b615de26d6
commit
f6a1fbdfb9
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -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); }
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue