initial sprite batch implementation & testbed

This commit is contained in:
2024-09-13 18:59:14 +10:00
parent c0de651947
commit 79013c24c4
13 changed files with 732 additions and 29 deletions

View File

@ -21,3 +21,9 @@ public struct VertexPositionNormalColorTexcoord: Vertex {
var color: SIMD4<Float>
var texCoord: SIMD2<Float>
}
public struct VertexPosition2DTexcoordColor: Vertex {
var position: SIMD2<Float>
var texCoord: SIMD2<Float>
var color: SIMD4<Float>
}