mirror of
https://github.com/KhronosGroup/SPIRV-Cross.git
synced 2024-11-15 00:11:06 +00:00
MSL: Add color attribute qualifiers to fragment function outputs
This commit is contained in:
parent
25c4467a10
commit
8bdc4060e8
@ -968,7 +968,8 @@ string CompilerMSL::member_attribute_qualifier(const SPIRType &type, uint32_t in
|
||||
return "";
|
||||
}
|
||||
}
|
||||
return "";
|
||||
uint32_t locn = get_ordered_member_location(type.self, index);
|
||||
return string(" [[color(") + convert_to_string(locn) + ")]]";
|
||||
}
|
||||
|
||||
return "";
|
||||
|
Loading…
Reference in New Issue
Block a user