dawn-cmake/test/tint/bug/tint/1183.wgsl.expected.dxc.hlsl
Ben Clayton 279864c774 test/tint: Show that tint:1183 is fixed
Fixed: tint:1183
Change-Id: I06c8faf37218c58836c2a30d2b1e89abf8dc2be8
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/108643
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
2022-11-04 17:49:47 +00:00

18 lines
377 B
HLSL

Texture2D<float4> t : register(t0, space0);
SamplerState s : register(s0, space1);
struct tint_symbol {
float4 value : SV_Target0;
};
float4 f_inner() {
return t.Sample(s, (0.0f).xx, int2(4, 6));
}
tint_symbol f() {
const float4 inner_result = f_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}