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 --- source/slang/type-layout.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'source/slang/type-layout.h') diff --git a/source/slang/type-layout.h b/source/slang/type-layout.h index add9930ae..d2254c9e5 100644 --- a/source/slang/type-layout.h +++ b/source/slang/type-layout.h @@ -517,10 +517,11 @@ struct LayoutRulesImpl struct LayoutRulesFamilyImpl { - virtual LayoutRulesImpl* getConstantBufferRules() = 0; - virtual LayoutRulesImpl* getTextureBufferRules() = 0; - virtual LayoutRulesImpl* getVaryingInputRules() = 0; - virtual LayoutRulesImpl* getVaryingOutputRules() = 0; + virtual LayoutRulesImpl* getConstantBufferRules() = 0; + virtual LayoutRulesImpl* getPushConstantBufferRules() = 0; + virtual LayoutRulesImpl* getTextureBufferRules() = 0; + virtual LayoutRulesImpl* getVaryingInputRules() = 0; + virtual LayoutRulesImpl* getVaryingOutputRules() = 0; virtual LayoutRulesImpl* getSpecializationConstantRules() = 0; virtual LayoutRulesImpl* getShaderStorageBufferRules() = 0; }; -- cgit v1.2.3