Added Ink and ncore to modules

This commit is contained in:
2025-09-30 07:27:58 +02:00
commit 9ec1b9cf82
327 changed files with 14171 additions and 0 deletions

23
test/texture_sample.ink Normal file
View File

@@ -0,0 +1,23 @@
p :: properties {
texture : Texture2D;
sampler : Sampler;
}
PS_Input :: struct {
uv : float2 @uv;
pos : float4 @position;
}
vertex main :: (pos : float4 @position, uv : float2 @uv) -> PS_Input {
result : PS_Input;
result.uv = uv;
result.pos = pos;
return result;
}
pixel main :: (input : PS_Input) -> float4 @target {
color : float4 = sample(p.texture, input.uv, p.sampler);
return color;
}