formatting

This commit is contained in:
jacob 2025-05-28 05:27:56 -05:00
parent 40a20439e5
commit 4d1c761254
2 changed files with 1 additions and 7 deletions

View File

@ -1,12 +1,6 @@
#define DECL(t, n) t n : n
#define DESV(t, n, s) t n : s
struct xform {
float2 bx;
float2 by;
float2 og;
};
/* Linear color from normalized sRGB */
float4 linear_from_srgb(float4 srgb)
{

View File

@ -51,8 +51,8 @@ ps_input vs_main(uint instance_id : SV_InstanceID, uint vertex_id : SV_VertexID)
{
vs_instance instance = G_instance_buffer[G_instance_offset + instance_id];
float2 vert = G_quad_verts[vertex_id];
float2 world_pos = mul(instance.xf, float3(vert, 1)).xy;
float2 uv_factor = G_uv_factors[vertex_id];
float2 world_pos = mul(instance.xf, float3(vert, 1)).xy;
ps_input output;
output.screen_pos = mul(G_projection, float4(world_pos, 0, 1));