Simplified shader test output

This commit is contained in:
2024-09-20 13:00:17 +02:00
parent 3f93e1a92d
commit 243d83663a
11 changed files with 48 additions and 36 deletions

View File

@@ -1,5 +1,5 @@
void vs_main()
{
float x = 2.0f + 5.0f;
float x = (2.0f + 5.0f);
}

View File

@@ -2,6 +2,6 @@ void vs_main()
{
float x = 5.0f;
float y = 3000.0f;
float z = y * y + x;
float z = ((y * y) + x);
}

View File

@@ -1,4 +1,2 @@
struct Foo;
struct Foo {}
struct Foo {};

View File

@@ -4,7 +4,7 @@ cbuffer __PROPERTIES : register(b0)
}
float3 vs_main(float3 pos : POSITION, float2 uv) : SV_POSITION
float3 vs_main(float3 pos : POSITION, float2 uv : TEXCOORD0) : SV_POSITION
{
return pos;
}

View File

@@ -8,7 +8,7 @@ int foo()
float bar()
{
return 1235.0f * 500;
return (1235.0f * 500);
}
void vs_main()

View File

@@ -1,15 +1,13 @@
struct Foo;
float foo(Foo f);
struct Foo
{
float some_data;
}
};
float foo(Foo f)
{
return f.some_data * 2.0f;
return (f.some_data * 2.0f);
}
void vs_main()

View File

@@ -1,9 +1,7 @@
struct Data;
struct Data
{
float4 color;
}
};
void vs_main()
{

View File

@@ -1,15 +1,12 @@
struct Foo;
struct Bar;
struct Foo
{
float4 color;
}
};
struct Bar
{
Foo t;
}
};
void vs_main()
{