mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-05 06:03:34 +00:00
CTS tests: https://github.com/gpuweb/cts/pull/1012 Bug: tint:1371 Change-Id: Idd55c0bc9dad1dffb558d0bc57d744f65e9041b5 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/81701 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: David Neto <dneto@google.com>
20 lines
356 B
WebGPU Shading Language
20 lines
356 B
WebGPU Shading Language
fn insertBits_fe6ba6() {
|
|
var res : vec2<i32> = insertBits(vec2<i32>(), vec2<i32>(), 1u, 1u);
|
|
}
|
|
|
|
@stage(vertex)
|
|
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
insertBits_fe6ba6();
|
|
return vec4<f32>();
|
|
}
|
|
|
|
@stage(fragment)
|
|
fn fragment_main() {
|
|
insertBits_fe6ba6();
|
|
}
|
|
|
|
@stage(compute) @workgroup_size(1)
|
|
fn compute_main() {
|
|
insertBits_fe6ba6();
|
|
}
|