mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-14 03:11:29 +00:00
- reduce output location value - texture_depth_multisampled_2d - matrix stride handling - ldexp for unsigned second argument Change-Id: Ib0782838dfa93fc637118cbf1faea67cf2406dd5 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/60460 Auto-Submit: David Neto <dneto@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com>
27 lines
405 B
WebGPU Shading Language
27 lines
405 B
WebGPU Shading Language
var<private> x_1 : u32;
|
|
|
|
var<private> x_2 : u32;
|
|
|
|
var<private> x_3 : u32;
|
|
|
|
var<private> x_4 : u32;
|
|
|
|
fn main_1() {
|
|
return;
|
|
}
|
|
|
|
struct main_out {
|
|
[[location(0)]]
|
|
x_2_1 : u32;
|
|
[[location(6)]]
|
|
x_4_1 : u32;
|
|
};
|
|
|
|
[[stage(fragment)]]
|
|
fn main([[location(0)]] x_1_param : u32, [[location(30)]] x_3_param : u32) -> main_out {
|
|
x_1 = x_1_param;
|
|
x_3 = x_3_param;
|
|
main_1();
|
|
return main_out(x_2, x_4);
|
|
}
|