renderer/metal: grid pos for bg/text should be ushort2

This saves 50% memory per vertex.
This commit is contained in:
Mitchell Hashimoto
2024-04-25 19:16:40 -07:00
parent 15b7a37cf9
commit ced8776120
5 changed files with 32 additions and 30 deletions

View File

@@ -50,6 +50,7 @@ pub const MTLIndexType = enum(c_ulong) {
/// https://developer.apple.com/documentation/metal/mtlvertexformat?language=objc
pub const MTLVertexFormat = enum(c_ulong) {
uchar4 = 3,
ushort2 = 13,
float2 = 29,
float4 = 31,
int2 = 33,