mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-10 15:15:58 +00:00
A hypothetical case discussed in the WG call, which I wasn't entirely sure was going to work. It does. Change-Id: I855f1e02af2fe62214e3fb964f6937e3d88016eb Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/59021 Auto-Submit: Ben Clayton <bclayton@google.com> Reviewed-by: James Price <jrprice@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
14 lines
277 B
HLSL
14 lines
277 B
HLSL
Texture2D<float4> t : register(t0, space0);
|
|
SamplerState s : register(s1, space0);
|
|
|
|
void main() {
|
|
const Texture2D<float4> x = t;
|
|
const SamplerState a = s;
|
|
1;
|
|
const Texture2D<float4> y = x;
|
|
const SamplerState b = a;
|
|
2;
|
|
y.Sample(b, float2(1.0f, 2.0f));
|
|
return;
|
|
}
|