dawn-cmake/test/intrinsics/gen/textureLoad/e3d2cc.wgsl.expected.hlsl
Ben Clayton 51b9da45c8 writer/hlsl: Fix level packing for textureLoad()
This was spectacularly broken. Caught by CTS.

Change-Id: Iebf9dd5934be8ef4ec4217d60d5691aee73f5ea3
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/56501
Auto-Submit: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Ben Clayton <bclayton@google.com>
2021-06-30 08:51:36 +00:00

27 lines
464 B
HLSL

Texture2DMS<int4> arg_0 : register(t0, space1);
void textureLoad_e3d2cc() {
int4 res = arg_0.Load(int2(0, 0), 1);
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
textureLoad_e3d2cc();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
return tint_symbol_1;
}
void fragment_main() {
textureLoad_e3d2cc();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
textureLoad_e3d2cc();
return;
}