Skip to content

Commit

Permalink
Add missing call to add descriptor ranges as constant buffer
Browse files Browse the repository at this point in the history
This helps to address Slang issue #5222.
shader-slang/slang#5222
  • Loading branch information
aleino-nv committed Oct 31, 2024
1 parent ad87777 commit 7af0a4f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wgpu/wgpu-shader-object-layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ void ShaderObjectLayoutImpl::Builder::_addDescriptorRangesAsValue(

BindingOffset elementOffset = subObjectRangeOffset;
elementOffset += BindingOffset(elementVarLayout);

_addDescriptorRangesAsConstantBuffer(elementTypeLayout, containerOffset, elementOffset);
}
break;
}
Expand Down

0 comments on commit 7af0a4f

Please sign in to comment.