dawn-cmake/test/let/handles/texture_sampler.wgsl.expected.hlsl
Ben Clayton 6e8ace016e test: Add a case for resources used through lets
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>
2021-07-20 20:25:38 +00:00

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;
}