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:
Qwerasd
2024-08-07 17:39:31 -04:00
parent df7409f4f3
commit 6339f9bae9
5 changed files with 286 additions and 466 deletions

View File

@@ -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,
};