mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-21 11:21:39 +00:00
Change-Id: I7ebd87ea3c63531dd75bf611ab9b3194e74326cd Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/54654 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: David Neto <dneto@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
31 lines
578 B
WebGPU Shading Language
31 lines
578 B
WebGPU Shading Language
intrinsics/gen/arrayLength/721c9d.wgsl:33:18 warning: use of deprecated intrinsic
|
|
var res: u32 = arrayLength(sb.arg_0);
|
|
^^^^^^^^^^^
|
|
|
|
[[block]]
|
|
struct SB {
|
|
arg_0 : array<i32>;
|
|
};
|
|
|
|
[[group(0), binding(0)]] var<storage, read> sb : SB;
|
|
|
|
fn arrayLength_721c9d() {
|
|
var res : u32 = arrayLength(sb.arg_0);
|
|
}
|
|
|
|
[[stage(vertex)]]
|
|
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
|
arrayLength_721c9d();
|
|
return vec4<f32>();
|
|
}
|
|
|
|
[[stage(fragment)]]
|
|
fn fragment_main() {
|
|
arrayLength_721c9d();
|
|
}
|
|
|
|
[[stage(compute)]]
|
|
fn compute_main() {
|
|
arrayLength_721c9d();
|
|
}
|