mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 02:39:11 +00:00
Implement Default Struct Layout
Implements https://github.com/gpuweb/gpuweb/pull/1447 SPIR-V Reader is still TODO, but continues to function as the offset decoration is still supported. Bug: tint:626 Bug: tint:629 Change-Id: Id574eb3a5c6729559382812de37b23f0c68fd406 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/43640 Commit-Queue: Ben Clayton <bclayton@chromium.org> Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
committed by
Commit Bot service account
parent
717fbbf183
commit
d614dd5d12
@@ -83,7 +83,6 @@ fn main() -> void {}
|
||||
auto* expect = R"(
|
||||
[[block]]
|
||||
struct TintVertexData {
|
||||
[[offset(0)]]
|
||||
_tint_vertex_data : [[stride(4)]] array<u32>;
|
||||
};
|
||||
|
||||
@@ -120,7 +119,6 @@ fn main() -> void {}
|
||||
|
||||
[[block]]
|
||||
struct TintVertexData {
|
||||
[[offset(0)]]
|
||||
_tint_vertex_data : [[stride(4)]] array<u32>;
|
||||
};
|
||||
|
||||
@@ -163,7 +161,6 @@ fn main() -> void {}
|
||||
|
||||
[[block]]
|
||||
struct TintVertexData {
|
||||
[[offset(0)]]
|
||||
_tint_vertex_data : [[stride(4)]] array<u32>;
|
||||
};
|
||||
|
||||
@@ -206,7 +203,6 @@ fn main() -> void {}
|
||||
|
||||
[[block]]
|
||||
struct TintVertexData {
|
||||
[[offset(0)]]
|
||||
_tint_vertex_data : [[stride(4)]] array<u32>;
|
||||
};
|
||||
|
||||
@@ -254,7 +250,6 @@ fn main() -> void {}
|
||||
|
||||
[[block]]
|
||||
struct TintVertexData {
|
||||
[[offset(0)]]
|
||||
_tint_vertex_data : [[stride(4)]] array<u32>;
|
||||
};
|
||||
|
||||
@@ -316,7 +311,6 @@ fn main() -> void {}
|
||||
|
||||
[[block]]
|
||||
struct TintVertexData {
|
||||
[[offset(0)]]
|
||||
_tint_vertex_data : [[stride(4)]] array<u32>;
|
||||
};
|
||||
|
||||
@@ -371,7 +365,6 @@ fn main() -> void {}
|
||||
|
||||
[[block]]
|
||||
struct TintVertexData {
|
||||
[[offset(0)]]
|
||||
_tint_vertex_data : [[stride(4)]] array<u32>;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user