From 262d7a82c90df8470c8b0cf743fb7b48503614ed Mon Sep 17 00:00:00 2001 From: Anders Leino Date: Thu, 31 Oct 2024 14:04:28 +0200 Subject: [PATCH] Add missing call to add descriptor ranges as constant buffer (#88) This helps to address Slang issue #5222. https://github.com/shader-slang/slang/issues/5222 --- src/wgpu/wgpu-shader-object-layout.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wgpu/wgpu-shader-object-layout.cpp b/src/wgpu/wgpu-shader-object-layout.cpp index 1eb4305b..610ad402 100644 --- a/src/wgpu/wgpu-shader-object-layout.cpp +++ b/src/wgpu/wgpu-shader-object-layout.cpp @@ -284,6 +284,8 @@ void ShaderObjectLayoutImpl::Builder::_addDescriptorRangesAsValue( BindingOffset elementOffset = subObjectRangeOffset; elementOffset += BindingOffset(elementVarLayout); + + _addDescriptorRangesAsConstantBuffer(elementTypeLayout, containerOffset, elementOffset); } break; }