Skip to content

Commit 1e3f54f

Browse files
committed
Fix emulated inline constant.
1 parent b8cddc6 commit 1e3f54f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Graphics/GraphicsEngineVulkan/src/PipelineStateVkImpl.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,15 +1077,12 @@ void PipelineStateVkImpl::DvpValidateResourceLimits() const
10771077
const PipelineResourceSignatureVkImpl::ResourceAttribs& ResAttr = pSignature->GetResourceAttribs(r);
10781078

10791079
// Skip push constants - they don't use descriptors
1080-
if ((ResDesc.Flags & PIPELINE_RESOURCE_FLAG_VULKAN_PUSH_CONSTANT) != 0)
1081-
continue;
1082-
10831080
if (ResAttr.IsPushConstantBuffer())
10841081
continue;
10851082

10861083
const Uint32 DescIndex = static_cast<Uint32>(ResAttr.DescrType);
10871084

1088-
DescriptorCount[DescIndex] += ResAttr.ArraySize;
1085+
DescriptorCount[DescIndex] += ResDesc.GetArraySize();
10891086

10901087
for (SHADER_TYPE ShaderStages = ResDesc.ShaderStages; ShaderStages != 0;)
10911088
{

0 commit comments

Comments
 (0)