Vulkan shader compiler uniform size fix (>255). (#2421)
Co-authored-by: Aleš Mlakar <ales.ambits@gmail.com>
This commit is contained in:
parent
02e4786e04
commit
dc3a92ef99
@ -957,10 +957,10 @@ namespace bgfx { namespace spirv
|
||||
Uniform un;
|
||||
un.name = program->getUniformName(ii);
|
||||
|
||||
un.num = uint8_t(program->getUniformArraySize(ii) );
|
||||
un.num = 0;
|
||||
const uint32_t offset = program->getUniformBufferOffset(ii);
|
||||
un.regIndex = uint16_t(offset);
|
||||
un.regCount = un.num;
|
||||
un.regCount = uint16_t(program->getUniformArraySize(ii));
|
||||
|
||||
switch (program->getUniformType(ii) )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user