mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-10-21 01:05:52 +00:00
Vulkan requires that shader inputs/outputs that are integers must be decorated with Flat. Bug: tint:746, dawn:956 Change-Id: I648451b9aa559d08415bada904dee5f9d1e4e60f Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/56400 Auto-Submit: James Price <jrprice@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: James Price <jrprice@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
22 lines
326 B
WebGPU Shading Language
22 lines
326 B
WebGPU Shading Language
struct Interface {
|
|
[[location(0)]]
|
|
i : i32;
|
|
[[location(1)]]
|
|
u : u32;
|
|
[[location(2)]]
|
|
vi : vec4<i32>;
|
|
[[location(3)]]
|
|
vu : vec4<u32>;
|
|
[[builtin(position)]]
|
|
pos : vec4<f32>;
|
|
};
|
|
|
|
[[stage(vertex)]]
|
|
fn vert_main() -> Interface {
|
|
return Interface();
|
|
}
|
|
|
|
[[stage(fragment)]]
|
|
fn frag_main(inputs : Interface) {
|
|
}
|