20 lines
333 B
WebGPU Shading Language
20 lines
333 B
WebGPU Shading Language
|
fn quantizeToF16_2cddf3() {
|
||
|
var res : vec2<f32> = quantizeToF16(vec2<f32>(1.0f));
|
||
|
}
|
||
|
|
||
|
@vertex
|
||
|
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||
|
quantizeToF16_2cddf3();
|
||
|
return vec4<f32>();
|
||
|
}
|
||
|
|
||
|
@fragment
|
||
|
fn fragment_main() {
|
||
|
quantizeToF16_2cddf3();
|
||
|
}
|
||
|
|
||
|
@compute @workgroup_size(1)
|
||
|
fn compute_main() {
|
||
|
quantizeToF16_2cddf3();
|
||
|
}
|