dawn-cmake/test/tint/expressions/unary/complement/complement.wgsl

16 lines
181 B
WebGPU Shading Language

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