File tree Expand file tree Collapse file tree
Graphics/GraphicsEngineOpenGL Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -164,14 +164,6 @@ class ShaderResourcesGL
164164
165165 const GLuint UBIndex;
166166 const Uint32 BufferSize; // Buffer size in bytes
167-
168- // / Returns the number of 32-bit constants in the buffer.
169- // / This is used for inline constants where ArraySize represents
170- // / the number of constants, not the UBO array size.
171- Uint32 GetInlineConstantCount () const
172- {
173- return BufferSize / sizeof (Uint32);
174- }
175167 };
176168 static_assert ((sizeof (UniformBufferInfo) % sizeof (void *)) == 0 , " sizeof(UniformBufferInfo) must be multiple of sizeof(void*)" );
177169
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ PipelineResourceSignatureDescWrapper PipelineStateGLImpl::GetDefaultSignatureDes
144144 if (Flags & PIPELINE_RESOURCE_FLAG_INLINE_CONSTANTS)
145145 {
146146 VERIFY (Flags == PIPELINE_RESOURCE_FLAG_INLINE_CONSTANTS, " INLINE_CONSTANTS flag cannot be combined with other flags." );
147- ArraySize = UB.GetInlineConstantCount ( );
147+ ArraySize = UB.BufferSize / sizeof (Uint32 );
148148
149149 if (ArraySize > MAX_INLINE_CONSTANTS)
150150 {
You can’t perform that action at this time.
0 commit comments