blob: b1c5b7f275d8370260b71e33d214f575618ccfb0 [file] [log] [blame]
enable f16;
@group(0) @binding(0) var<storage, read_write> prevent_dce : vec3<f16>;
fn cos_0835a8() -> vec3<f16> {
var res : vec3<f16> = cos(vec3<f16>(0.0h));
return res;
}
@fragment
fn fragment_main() {
prevent_dce = cos_0835a8();
}
@compute @workgroup_size(1)
fn compute_main() {
prevent_dce = cos_0835a8();
}
struct VertexOutput {
@builtin(position)
pos : vec4<f32>,
@location(0) @interpolate(flat)
prevent_dce : vec3<f16>,
}
@vertex
fn vertex_main() -> VertexOutput {
var out : VertexOutput;
out.pos = vec4<f32>();
out.prevent_dce = cos_0835a8();
return out;
}