mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-03 18:55:39 +00:00
See: https://github.com/gpuweb/gpuweb/pull/1754 Fixed: tint:882 Change-Id: Ibb48722dbaf6a7b200158bb87bc71c282056ed5e Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/55259 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: David Neto <dneto@google.com> Commit-Queue: Ben Clayton <bclayton@chromium.org>
22 lines
420 B
WebGPU Shading Language
22 lines
420 B
WebGPU Shading Language
[[group(1), binding(0)]] var arg_0 : texture_cube_array<f32>;
|
|
|
|
fn textureDimensions_8f20bf() {
|
|
var res : vec2<i32> = textureDimensions(arg_0);
|
|
}
|
|
|
|
[[stage(vertex)]]
|
|
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
|
textureDimensions_8f20bf();
|
|
return vec4<f32>();
|
|
}
|
|
|
|
[[stage(fragment)]]
|
|
fn fragment_main() {
|
|
textureDimensions_8f20bf();
|
|
}
|
|
|
|
[[stage(compute)]]
|
|
fn compute_main() {
|
|
textureDimensions_8f20bf();
|
|
}
|