Files
SPIRV-Interpreter/example/shader.nzsl
Kbz-8 35099b33e1
All checks were successful
Build / build (push) Successful in 1m3s
Test / build (push) Successful in 6m4s
finishing bitwise operatoins
2026-01-20 00:32:50 +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;
}