Fix error propagation error in parsing. Semantic checker fix for compile result struct. Test cleanup

This commit is contained in:
2025-08-18 07:11:41 +02:00
parent c36712b3ed
commit b7e34a22b2
11 changed files with 76 additions and 99 deletions

View File

@@ -8,11 +8,11 @@ float4 vs_main(float3 pos : POSITION) : SV_POSITION
}
else
{
return float4(1.0f);
return float4(1.0f, 1.0f, 1.0f, 1.0f);
}
return float4(pos, 1.0f);
}
return float4(0.0f);
return float4(0.0f, 0.0f, 0.0f, 0.0f);
}

View File

@@ -10,8 +10,8 @@ float4 vs_main(float3 pos : POSITION) : SV_POSITION
}
else
{
return float4(1.0f);
return float4(1.0f, 1.0f, 1.0f, 1.0f);
}
return float4(0.0f);
return float4(0.0f, 0.0f, 0.0f, 0.0f);
}

View File

@@ -5,6 +5,6 @@ float4 vs_main(float3 pos : POSITION) : SV_POSITION
return float4(pos, 1.0f);
}
return float4(0.0f);
return float4(0.0f, 0.0f, 0.0f, 0.0f);
}

View File

@@ -6,8 +6,8 @@ float4 vs_main(float3 pos : POSITION) : SV_POSITION
}
else
{
return float4(1.0f);
return float4(1.0f, 1.0f, 1.0f, 1.0f);
}
return float4(0.0f);
return float4(0.0f, 0.0f, 0.0f, 0.0f);
}

View File

@@ -1,7 +1,7 @@
scope (global) [
[properties] : {color : float4}
[pixel__ps_main] : () -> float4
[vertex__vs_main] : (pos : float3) -> float3
[properties] : {color : float4}
scope (properties) [
[color] : float4
]

View File

@@ -1,7 +1,7 @@
scope (global) [
[camera] : {projection : float4x4, view : float4x4}
[pixel__ps_main] : () -> float4
[vertex__vs_main] : (pos : float4) -> float4
[camera] : {projection : float4x4, view : float4x4}
scope (camera) [
[projection] : float4x4
[view] : float4x4

View File

@@ -1,7 +1,7 @@
scope (global) [
[props] : {color : float4}
[pixel__ps_main] : () -> float4
[vertex__vs_main] : (pos : float4) -> float4
[props] : {color : float4}
scope (props) [
[color] : float4
]