Files
SPIRV-Interpreter/example/shader.nzsl
Kbz-8 9fb8cbea05
All checks were successful
Build / build (push) Has been skipped
Test / build (push) Has been skipped
bumping nzsl version; ci skip
2026-01-19 20:47:52 +01:00

18 lines
282 B
Plaintext

[nzsl_version("1.1")]
module;
struct FragOut
{
[location(0)] color: vec4[i32]
}
[entry(frag)]
fn main() -> FragOut
{
let base: i32 = 4;
let value: i32 = base << 3;
let output: FragOut;
output.color = vec4[i32](value, value, value, value);
return output;
}