mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-05 06:03:34 +00:00
This CL updates the internals to use AddressSpace instead of the old StorageClass name. Bug: tint:1404 Change-Id: Iecc208e839453437f4d630f65e0152206a52db7e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/104420 Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Dan Sinclair <dsinclair@chromium.org> Auto-Submit: Dan Sinclair <dsinclair@chromium.org>
49 lines
842 B
Plaintext
49 lines
842 B
Plaintext
SKIP: FAILED
|
|
|
|
|
|
enable chromium_experimental_push_constant;
|
|
|
|
var<push_constant> a : i32;
|
|
|
|
var<push_constant> b : i32;
|
|
|
|
var<push_constant> c : i32;
|
|
|
|
fn uses_a() {
|
|
let foo = a;
|
|
}
|
|
|
|
fn uses_uses_a() {
|
|
uses_a();
|
|
}
|
|
|
|
fn uses_b() {
|
|
let foo = b;
|
|
}
|
|
|
|
@compute @workgroup_size(1)
|
|
fn main1() {
|
|
uses_a();
|
|
}
|
|
|
|
@compute @workgroup_size(1)
|
|
fn main2() {
|
|
uses_uses_a();
|
|
}
|
|
|
|
@compute @workgroup_size(1)
|
|
fn main3() {
|
|
uses_b();
|
|
}
|
|
|
|
@compute @workgroup_size(1)
|
|
fn main4() {
|
|
}
|
|
|
|
Failed to generate: error: unhandled module-scope address space (push_constant)
|
|
error: unhandled module-scope address space (push_constant)
|
|
error: unhandled module-scope address space (push_constant)
|
|
error: unhandled module-scope address space (push_constant)
|
|
error: unhandled module-scope address space (push_constant)
|
|
error: unhandled module-scope address space (push_constant)
|