Fix static array issue and scratch issue.

This commit is contained in:
2025-10-24 11:35:42 +02:00
parent da660ad87e
commit b30e04f2fa
6 changed files with 60 additions and 9 deletions

50
pass_test.ink Normal file
View File

@@ -0,0 +1,50 @@
shader Entity {
constants :: Constant_Buffer {
model : float4x4;
projection : float4x4;
light_view : float4x4;
light_dir : float3;
light_color : float3;
}
Vertex_In :: struct {
position : float3;
normal : float3;
uv : float2;
}
Vertex_Out :: struct {
position : float4;
normal : float3;
uv : float2;
world_pos : float3;
}
vertex main :: (in : Vertex_In) -> Vertex_Out {
// Do some stuff here
}
pass : shadow {
vertex = main;
pixel :: (in : Vertex_Out) -> float4 {
// Do some shadow stuff
}
}
pass : picking {
vertex = main;
pixel :: (in : Vertex_Out) -> float4 {
// Do some picking stuff
}
}
pass : lighting {
vertex = main;
pixel :: (in : Vertex_Out) -> float4 {
// Do some lighting stuff
}
}
}