Files
SPIRV-Interpreter/example/shader.nzsl
Kbz-8 df711a196a
Some checks failed
Build / build (push) Failing after 33s
Test / build (push) Failing after 3m0s
adding some operators, working on example
2026-01-20 21:52:42 +01:00

21 lines
284 B
Plaintext

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