dawn-cmake/test/expressions/splat/call/bool.wgsl

8 lines
201 B
WebGPU Shading Language

fn get_bool() -> bool { return true; }
fn f() {
var v2 : vec2<bool> = vec2<bool>(get_bool());
var v3 : vec3<bool> = vec3<bool>(get_bool());
var v4 : vec4<bool> = vec4<bool>(get_bool());
}