mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-15 01:26:06 +00:00
And use this to define constants for override vars in unit tests that would fail for HLSL. Bug: tint:1519 Change-Id: I4fd15c517868694d2bcd81d563399f817ed74ae6 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/88882 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Commit-Queue: Antonio Maiorano <amaiorano@google.com>
10 lines
186 B
HLSL
10 lines
186 B
HLSL
#ifndef WGSL_SPEC_CONSTANT_1234
|
|
#error spec constant required for constant id 1234
|
|
#endif
|
|
static const bool o = WGSL_SPEC_CONSTANT_1234;
|
|
|
|
[numthreads(1, 1, 1)]
|
|
void main() {
|
|
return;
|
|
}
|