module demomo; public struct Transform { // Model matrix. Converts from object space to world space. public float4x4 model; // Inverse transpose of the model matrix. public float4x4 modelIT; } public struct Camera { // View-projection matrix. Converts from world space to clip space. public column_major float4x4 viewProj; // Camera position in world space. public float3 worldPos; }; enum LightKind { None = 0, Directional = 1, Point = 2, } public struct Light { // Position of the light in world space. public float3 worldPos; public float3 color; public uint kind; };