Skip to content

Commit b357896

Browse files
Fixed minor issue with enum multiplication in PipelineResourceSignatureVkImpl::GetResourceCacheGroup
1 parent 1c1900e commit b357896

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Graphics/GraphicsEngineVulkan/src/PipelineResourceSignatureVkImpl.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ inline PipelineResourceSignatureVkImpl::CACHE_GROUP PipelineResourceSignatureVkI
116116
{
117117
// NB: SetId is always 0 for static/mutable variables, and 1 - for dynamic ones.
118118
// It is not the actual descriptor set index in the set layout!
119-
const auto SetId = VarTypeToDescriptorSetId(Res.VarType);
120-
const bool WithDynamicOffset = (Res.Flags & PIPELINE_RESOURCE_FLAG_NO_DYNAMIC_BUFFERS) == 0;
121-
const bool UseTexelBuffer = (Res.Flags & PIPELINE_RESOURCE_FLAG_FORMATTED_BUFFER) != 0;
119+
const size_t SetId = VarTypeToDescriptorSetId(Res.VarType);
120+
const bool WithDynamicOffset = (Res.Flags & PIPELINE_RESOURCE_FLAG_NO_DYNAMIC_BUFFERS) == 0;
121+
const bool UseTexelBuffer = (Res.Flags & PIPELINE_RESOURCE_FLAG_FORMATTED_BUFFER) != 0;
122122

123123
if (WithDynamicOffset && !UseTexelBuffer)
124124
{

0 commit comments

Comments
 (0)