From 2bf87743ffe73f041036ae62c8bf53f09215ca53 Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Fri, 14 Jul 2017 10:44:42 -0700 Subject: Don't assign a `binding` to a `push_constant` buffer Fixes #12 - This was a latent issue, but the previous commit brought it to the front. - As indicated in #12, I don't allocate a descriptor-table slot to the block - Instead I allocate a `PushConstantBuffer` - Unlike what #12 asks for, I don't use a different resource type for the contents of the block - Pretty much all the logic is easiest if these continue to be just plain `Uniform` data --- tests/rewriter/resources-in-structs.glsl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/rewriter') diff --git a/tests/rewriter/resources-in-structs.glsl b/tests/rewriter/resources-in-structs.glsl index 26e21f630..6273e8720 100644 --- a/tests/rewriter/resources-in-structs.glsl +++ b/tests/rewriter/resources-in-structs.glsl @@ -47,8 +47,10 @@ uniform texture2D SLANG_parameterBlock_U_m_t; layout(binding = 2) uniform sampler SLANG_parameterBlock_U_m_s; +layout(location = 0) in vec2 uv; +layout(location = 0) out vec4 color; void main() -- cgit v1.2.3