Files
SPIRV-Interpreter/example/shader.nzsl
Kbz-8 37da19ed43
All checks were successful
Build / build (push) Successful in 2m8s
Test / build (push) Successful in 7m17s
adding base extension support
2026-01-23 03:23:44 +01:00

28 lines
382 B
Plaintext

[nzsl_version("1.1")]
module;
struct FragIn
{
[location(0)] time: f32,
[location(1)] res: vec2[f32],
[location(2)] pos: vec2[f32],
}
struct FragOut
{
[location(0)] color: vec4[f32]
}
[entry(frag)]
fn main(input: FragIn) -> FragOut
{
let output: FragOut;
output.color = vec4[f32](
input.pos.x / input.res.x,
input.pos.y / input.res.y,
1.0,
1.0
);
return output;
}