// Constant Buffer for Transformation Matrices cbuffer TransformBuffer : register(b0, space1) { float4x4 world_to_projection; float4x4 projection_to_world; float4x4 world_to_view; float4x4 view_to_projection; float3 camera_pos_world; float viewport_min_z; float3 camera_dir_world; float viewport_max_z; float2 viewport_size; float2 viewport_offset; float2 render_size; float time; // time in seconds since app start }