dawn-cmake/test/expressions/unary/negate/negate.wgsl

8 lines
90 B
WebGPU Shading Language

fn i(x : i32) -> i32 {
return -x;
}
fn vi(x : vec4<i32>) -> vec4<i32> {
return -x;
}