mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-12 14:46:08 +00:00
Move global var validation from Validator to Resolver
* Moved global variable resolving logic to new function Resolver::GlobalVariable, and moved validation logic there. * Moved global variable-related tests to resolver tests. * Fixed many tests that started failing after this change, mainly because many globals were declared with no storage class. I set most of these to "Input". Bug: tint:642 Change-Id: I0f8ea2091ed2bb3faa358f9497cd884b2994a40f Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/46940 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Antonio Maiorano <amaiorano@google.com>
This commit is contained in:
committed by
Commit Bot service account
parent
4f154a839d
commit
bbbb0edec2
@@ -48,10 +48,10 @@ var g5 : [[access(read)]] texture_storage_2d<r32uint>;
|
||||
var g6 : [[access(write)]] texture_storage_2d<rg32float>;
|
||||
|
||||
[[builtin(position)]] var<uniform> g7 : vec3<f32>;
|
||||
[[group(10), binding(20)]] var<storage> g7 : S;
|
||||
[[group(10), binding(20)]] var<storage> g8 : [[access(read)]]
|
||||
[[group(10), binding(20)]] var<storage> g8 : S;
|
||||
[[group(10), binding(20)]] var<storage> g9 : [[access(read)]]
|
||||
S;
|
||||
[[group(10), binding(20)]] var<storage> g9 : [[access(read_write)]]
|
||||
[[group(10), binding(20)]] var<storage> g10 : [[access(read_write)]]
|
||||
S;
|
||||
|
||||
fn f0(p0 : bool) -> f32 {
|
||||
|
||||
Reference in New Issue
Block a user