Vulkan shader compiler uniform size fix (>255). (#2421)

Co-authored-by: Aleš Mlakar <ales.ambits@gmail.com>
This commit is contained in:
Aleš Mlakar 2021-03-08 16:48:17 +01:00 committed by GitHub
parent 02e4786e04
commit dc3a92ef99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) )
{