-
Notifications
You must be signed in to change notification settings - Fork 345
Closed
Description
Currently the vertex format enum is a bit of a stub:
enum WebGPUVertexFormat {
"floatR32G32B32A32",
"floatR32G32B32",
"floatR32G32",
"floatR32"
// TODO other vertex formats
};
Feedback we got internally is that first it is weird for vertex formats to use "RGBA" in their name instead of "XYZW". Also the names are very redundant. The suggestion is to use "Vec" + count + type + size + normalized giving names like Vec4Float32, Vec4Uint8Norm, Vec2Int16Unorm and (assume Vec1 is implicit) Float32, Int8Norm, etc.
Special vertex formats could use similar but longer naming: Vec3Uint10Uint2 for the 32bit 10-10-10-2 unnormalized integer format.
Metadata
Metadata
Assignees
Labels
No labels