Files
SPIRV-Interpreter/example/shader.nzsl
Kbz-8 27172539e5
All checks were successful
Build / build (push) Successful in 2m6s
Test / build (push) Successful in 6m5s
working on example and adding opcodes
2026-01-23 02:09:30 +01:00

28 lines
382 B
Plaintext

[nzsl_version("1.1")]
module;
struct FragIn
{
[location(0)] time: u32,
[location(1)] dim: 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.dim.x,
input.pos.y / input.dim.y,
1.0,
1.0
);
return output;
}