From 6aca3813c4ccc496c0f9b2db293acb546aa11d2d Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 1 Nov 2023 21:42:12 -0700 Subject: Parameter binding and gfx fixes. (#3302) * Parameter binding and gfx fixes. * Add diagnostics on entry point parameters. * Fix. --------- Co-authored-by: Yong He --- tools/gfx/cpu/cpu-shader-object-layout.cpp | 1 + tools/gfx/cpu/cpu-shader-object-layout.h | 2 ++ 2 files changed, 3 insertions(+) (limited to 'tools/gfx/cpu') diff --git a/tools/gfx/cpu/cpu-shader-object-layout.cpp b/tools/gfx/cpu/cpu-shader-object-layout.cpp index 3b969c9a6..2ff89efff 100644 --- a/tools/gfx/cpu/cpu-shader-object-layout.cpp +++ b/tools/gfx/cpu/cpu-shader-object-layout.cpp @@ -81,6 +81,7 @@ ShaderObjectLayoutImpl::ShaderObjectLayoutImpl(RendererBase* renderer, slang::Ty bindingRangeInfo.baseIndex = baseIndex; bindingRangeInfo.uniformOffset = uniformOffset; bindingRangeInfo.subObjectIndex = subObjectIndex; + bindingRangeInfo.isSpecializable = m_elementTypeLayout->isBindingRangeSpecializable(r); m_bindingRanges.add(bindingRangeInfo); } diff --git a/tools/gfx/cpu/cpu-shader-object-layout.h b/tools/gfx/cpu/cpu-shader-object-layout.h index 44c225f83..e421918f1 100644 --- a/tools/gfx/cpu/cpu-shader-object-layout.h +++ b/tools/gfx/cpu/cpu-shader-object-layout.h @@ -30,6 +30,8 @@ struct BindingRangeInfo // range index and array index. // Index uniformOffset; // Uniform offset for a resource typed field. + + bool isSpecializable; }; struct SubObjectRangeInfo -- cgit v1.2.3