mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 10:49:14 +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
@@ -1,12 +1,18 @@
|
||||
struct S_atomic {
|
||||
/* @offset(0) */
|
||||
x : i32,
|
||||
/* @offset(4) */
|
||||
a : atomic<u32>,
|
||||
/* @offset(8) */
|
||||
y : u32,
|
||||
}
|
||||
|
||||
struct S {
|
||||
/* @offset(0) */
|
||||
x : i32,
|
||||
/* @offset(4) */
|
||||
a : u32,
|
||||
/* @offset(8) */
|
||||
y : u32,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user