mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-09 06:35:54 +00:00
Requires polyfilling for all but the MSL backend. CTS tests: https://github.com/gpuweb/cts/pull/1002 Bug: tint:1367 Change-Id: I0cf56b74c01f30436f9ad00595a554a4042587e4 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/81501 Reviewed-by: David Neto <dneto@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Kokoro: Ben Clayton <bclayton@google.com>
20 lines
375 B
WebGPU Shading Language
20 lines
375 B
WebGPU Shading Language
fn countTrailingZeros_d2b4a0() {
|
|
var res : vec4<u32> = countTrailingZeros(vec4<u32>());
|
|
}
|
|
|
|
@stage(vertex)
|
|
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
countTrailingZeros_d2b4a0();
|
|
return vec4<f32>();
|
|
}
|
|
|
|
@stage(fragment)
|
|
fn fragment_main() {
|
|
countTrailingZeros_d2b4a0();
|
|
}
|
|
|
|
@stage(compute) @workgroup_size(1)
|
|
fn compute_main() {
|
|
countTrailingZeros_d2b4a0();
|
|
}
|