Files
SPIRV-Interpreter/example/shader.nzsl
Kbz-8 c5225e3a45
Some checks failed
Build / build (push) Failing after 36s
Test / build (push) Failing after 55s
working on example
2026-01-21 00:35:48 +01:00

27 lines
356 B
Plaintext

[nzsl_version("1.1")]
module;
struct FragIn
{
[location(0)] dim: vec2[f32],
[location(1)] 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;
}