MSL: Add color attribute qualifiers to fragment function outputs

This commit is contained in:
rob 2016-10-01 15:46:43 +09:00
parent 25c4467a10
commit 8bdc4060e8

View File

@ -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 "";