mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-08 14:15:58 +00:00
Move these module-scope variables to entry point parameters and pass them as arguments to functions that use them. Disable entry point IO validation for them. Emit [[texture()]] and [[sampler()]] attributes on these entry point parameters. Fixed: tint:145 Change-Id: I936a80801875a5d0b6cd98a2e8f3e297a2f53509 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/53961 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: James Price <jrprice@google.com> Reviewed-by: Ben Clayton <bclayton@google.com>
11 lines
150 B
HLSL
11 lines
150 B
HLSL
SamplerState s : register(s0, space0);
|
|
SamplerComparisonState sc : register(s1, space0);
|
|
|
|
[numthreads(1, 1, 1)]
|
|
void main() {
|
|
s;
|
|
sc;
|
|
return;
|
|
}
|
|
|