mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-06 18:06:33 +00:00
renderer: metal shaders rework
- Significant changes to optimize memory usage. - Adjusted formatting of the metal shader code to improve readability. - Normalized naming conventions in shader code. - Abstracted repetitive code for attribute descriptors to a helper function.
This commit is contained in:
@@ -51,11 +51,13 @@ pub const MTLIndexType = enum(c_ulong) {
|
||||
pub const MTLVertexFormat = enum(c_ulong) {
|
||||
uchar4 = 3,
|
||||
ushort2 = 13,
|
||||
short2 = 16,
|
||||
float2 = 29,
|
||||
float4 = 31,
|
||||
int2 = 33,
|
||||
uint = 36,
|
||||
uint2 = 37,
|
||||
uint4 = 39,
|
||||
uchar = 45,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user