Run format_all.sh.
This commit is contained in:
Родитель
18ad1be3c3
Коммит
ac0e93f392
|
@ -1121,7 +1121,6 @@ static inline bool type_is_floating_point(const SPIRType &type)
|
|||
{
|
||||
return type.basetype == SPIRType::Half || type.basetype == SPIRType::Float || type.basetype == SPIRType::Double;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -812,8 +812,7 @@ bool Compiler::type_is_block_like(const SPIRType &type) const
|
|||
if (type.basetype != SPIRType::Struct)
|
||||
return false;
|
||||
|
||||
if (has_decoration(type.self, DecorationBlock) ||
|
||||
has_decoration(type.self, DecorationBufferBlock))
|
||||
if (has_decoration(type.self, DecorationBlock) || has_decoration(type.self, DecorationBufferBlock))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -598,8 +598,7 @@ uint32_t CompilerMSL::add_interface_block(StorageClass storage)
|
|||
else if (type.basetype == SPIRType::Boolean || type.basetype == SPIRType::Char ||
|
||||
type.basetype == SPIRType::Int || type.basetype == SPIRType::UInt ||
|
||||
type.basetype == SPIRType::Int64 || type.basetype == SPIRType::UInt64 ||
|
||||
type_is_floating_point(type) ||
|
||||
type.basetype == SPIRType::Boolean)
|
||||
type_is_floating_point(type) || type.basetype == SPIRType::Boolean)
|
||||
{
|
||||
bool is_builtin = is_builtin_variable(*p_var);
|
||||
BuiltIn builtin = BuiltIn(get_decoration(p_var->self, DecorationBuiltIn));
|
||||
|
|
Загрузка…
Ссылка в новой задаче