ZoneCodeGenerator: Make static operands able to have the value of an enum entry

This commit is contained in:
Jan
2019-11-21 01:29:24 +01:00
parent 31b279c1e6
commit 5f0f73838f
3 changed files with 22 additions and 2 deletions

View File

@ -329,8 +329,7 @@ set count GfxPixelShaderLoadDef::program programSize;
// MaterialShaderArgument
use MaterialShaderArgument;
//set condition u::literalConst type == MTL_ARG_LITERAL_VERTEX_CONST || type == MTL_ARG_LITERAL_PIXEL_CONST;
set condition u::literalConst type == 1 || type == 7;
set condition u::literalConst type == MTL_ARG_LITERAL_VERTEX_CONST || type == MTL_ARG_LITERAL_PIXEL_CONST;
set reusable u::literalConst;
set count u::literalConst 1;