Skip to content

Commit 0ea6f7b

Browse files
committed
For push constants, ArraySize always be 1
1 parent 2d42263 commit 0ea6f7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Graphics/ShaderTools/src/SPIRVShaderResources.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ SPIRVShaderResourceAttribs::SPIRVShaderResourceAttribs(const char* _Name,
137137
Uint32 _BufferStaticSize) noexcept :
138138
// clang-format off
139139
Name {_Name},
140-
// For push constants, ArraySize represents the number of 32-bit constants (BufferStaticSize / 4)
140+
// For push constants, ArraySize always be 1
141141
// This is consistent with how inline constants work in the pipeline resource signature
142-
ArraySize {static_cast<Uint16>(_BufferStaticSize / sizeof(Uint32))},
142+
ArraySize {1},
143143
Type {_Type},
144144
ResourceDim {RESOURCE_DIM_BUFFER},
145145
IsMS {0},

0 commit comments

Comments
 (0)