namespace example.fb; | |
struct Vec2 { | |
x: float; | |
y: float; | |
} | |
struct Vec3 { | |
x: float; | |
y: float; | |
z: float; | |
} | |
struct Color { | |
r: float; | |
g: float; | |
b: float; | |
} | |
// Matches the vertex layout of the example shader, allowing for direct copying | |
// into the host buffer. | |
struct Vertex { | |
position: Vec3; | |
normal: Vec3; | |
tangent: Vec3; | |
texture_coords: Vec2; | |
} | |
table Mesh { | |
vertices: [Vertex]; | |
indices: [uint16]; | |
} | |
root_type Mesh; |