mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 23:56:16 +00:00
tint/writer/wgsl: Print @offset attributes as comment
We use WGSL to visualize the AST. Make sure we don't hide anything. Bug: tint:1776 Change-Id: Iedd7ca797fb745d9db7d0aba8a5718039241afbb Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/112602 Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com> Kokoro: Ben Clayton <bclayton@google.com> Auto-Submit: Ben Clayton <bclayton@google.com>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
f745e4e2bf
commit
efb17b0254
@@ -15,6 +15,7 @@ struct strided_arr_1 {
|
||||
type Arr_2 = array<strided_arr_1, 4u>;
|
||||
|
||||
struct S {
|
||||
/* @offset(0) */
|
||||
a : Arr_2,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user