mirror of https://github.com/AxioDL/metaforce.git
Fix Vulkan shader errors by not using nested definitions
This commit is contained in:
parent
bc170f1dc0
commit
bc91e4597d
|
@ -96,13 +96,14 @@ std::string GLSL::GenerateVertUniformStruct(unsigned skinSlots, unsigned texMtxs
|
|||
skinSlots, skinSlots);
|
||||
if (texMtxs)
|
||||
{
|
||||
retval += hecl::Format("UBINDING1 uniform HECLTexMtxUniform\n"
|
||||
retval += hecl::Format("struct HECLTCGMatrix\n"
|
||||
"{\n"
|
||||
" struct\n"
|
||||
" {"
|
||||
" mat4 mtx;\n"
|
||||
" mat4 postMtx;\n"
|
||||
" } texMtxs[%u];\n"
|
||||
" mat4 mtx;\n"
|
||||
" mat4 postMtx;\n"
|
||||
"};\n"
|
||||
"UBINDING1 uniform HECLTexMtxUniform\n"
|
||||
"{\n"
|
||||
" HECLTCGMatrix texMtxs[%u];\n"
|
||||
"};\n", texMtxs);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue