Fix formatting of uint32_t casts.
This commit is contained in:
parent
1919eb1b46
commit
8860a97d4a
@ -1305,7 +1305,7 @@ bool Compiler::has_extended_decoration(uint32_t id, ExtendedDecorations decorati
|
||||
return dec.extended.packed_type != 0;
|
||||
|
||||
case SPIRVCrossDecorationInterfaceMemberIndex:
|
||||
return dec.extended.ib_member_index != (uint32_t)-1;
|
||||
return dec.extended.ib_member_index != uint32_t(-1);
|
||||
|
||||
case SPIRVCrossDecorationInterfaceOrigID:
|
||||
return dec.extended.ib_orig_id != 0;
|
||||
@ -1333,7 +1333,7 @@ bool Compiler::has_extended_member_decoration(uint32_t type, uint32_t index, Ext
|
||||
return dec.extended.packed_type != 0;
|
||||
|
||||
case SPIRVCrossDecorationInterfaceMemberIndex:
|
||||
return dec.extended.ib_member_index != (uint32_t)-1;
|
||||
return dec.extended.ib_member_index != uint32_t(-1);
|
||||
|
||||
case SPIRVCrossDecorationInterfaceOrigID:
|
||||
return dec.extended.ib_orig_id != 0;
|
||||
|
@ -3359,13 +3359,13 @@ void CompilerMSL::emit_instruction(const Instruction &instruction)
|
||||
has_decoration(get_variable_element_type(*var).self, DecorationBlock))
|
||||
{
|
||||
uint32_t i = 4;
|
||||
if (index == (uint32_t)-1)
|
||||
if (index == uint32_t(-1))
|
||||
{
|
||||
// Maybe this is a struct type in the input class, in which case
|
||||
// we put it as a decoration on the corresponding member.
|
||||
index =
|
||||
get_extended_member_decoration(ops[2], ops[4], SPIRVCrossDecorationInterfaceMemberIndex);
|
||||
assert(index != (uint32_t)-1);
|
||||
assert(index != uint32_t(-1));
|
||||
i++;
|
||||
}
|
||||
// In this case, we flattened structures and arrays, so now we have to
|
||||
|
Loading…
Reference in New Issue
Block a user