mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-13 10:51:35 +00:00
Requires polyfilling for all but the MSL backend. CTS tests: https://github.com/gpuweb/cts/pull/1001 Bug: tint:1367 Change-Id: I75097de945909e3242ede9001124d8821bc832bc Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/81380 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: David Neto <dneto@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
20 lines
370 B
WebGPU Shading Language
20 lines
370 B
WebGPU Shading Language
fn countLeadingZeros_7c38a6() {
|
|
var res : vec3<i32> = countLeadingZeros(vec3<i32>());
|
|
}
|
|
|
|
@stage(vertex)
|
|
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
countLeadingZeros_7c38a6();
|
|
return vec4<f32>();
|
|
}
|
|
|
|
@stage(fragment)
|
|
fn fragment_main() {
|
|
countLeadingZeros_7c38a6();
|
|
}
|
|
|
|
@stage(compute) @workgroup_size(1)
|
|
fn compute_main() {
|
|
countLeadingZeros_7c38a6();
|
|
}
|