Skip to content

Commit dfa48b9

Browse files
committed
Remove auto as requested.
1 parent 26370fc commit dfa48b9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Graphics/ShaderTools/src/SPIRVShaderResources.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -624,10 +624,10 @@ SPIRVShaderResources::SPIRVShaderResources(IMemoryAllocator& Allocator,
624624
std::vector<SpecConstInfo> SpecConstants;
625625
Uint32 NumSpecConstants = 0;
626626

627-
if (CI.LoadSpecializationConstants)
628627
{
629-
auto spec_consts = Compiler.get_specialization_constants();
630-
for (const auto& sc : spec_consts)
628+
diligent_spirv_cross::SmallVector<diligent_spirv_cross::SpecializationConstant> spec_consts =
629+
Compiler.get_specialization_constants();
630+
for (const diligent_spirv_cross::SpecializationConstant& sc : spec_consts)
631631
{
632632
const diligent_spirv_cross::SPIRConstant& Constant = Compiler.get_constant(sc.id);
633633
const diligent_spirv_cross::SPIRType& Type = Compiler.get_type(Constant.constant_type);

0 commit comments

Comments
 (0)