shader: Better constant folding
This commit is contained in:
parent
0dcc0d5f8a
commit
8e9207253c
2 changed files with 48 additions and 13 deletions
|
@ -87,7 +87,7 @@ static std::string ArgToIndex(const std::map<const Block*, size_t>& block_to_ind
|
|||
}
|
||||
switch (arg.Type()) {
|
||||
case Type::U1:
|
||||
return fmt::format("#{}", arg.U1() ? '1' : '0');
|
||||
return fmt::format("#{}", arg.U1() ? "true" : "false");
|
||||
case Type::U8:
|
||||
return fmt::format("#{}", arg.U8());
|
||||
case Type::U16:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue