dawn-cmake/test/tint/var/inferred/global.wgsl.expected.dxc.hlsl
Ben Clayton 7d34de88f1 tint/test-runner: Split expectations for FXC and DXC
Change tint's `--fxc` flag to take the path of the FXC compiler DLL.
Have tint attempt to validate with both FXC and DXC if `--validate` is
passed.

Fix the 'dirsWithNoPassExpectations' logic which looks like it got
broken with the tint -> dawn merge. It also incorrectly applied
filepath.FromSlash() on windows.

Change-Id: I0f46aa5c21bc48a2abc48402c41f846aff4a8633
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/96800
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Commit-Queue: Ben Clayton <bclayton@chromium.org>
2022-07-22 17:43:27 +00:00

42 lines
962 B
HLSL

struct MyStruct {
float f1;
};
static int v1 = 1;
static uint v2 = 1u;
static float v3 = 1.0f;
static int3 v4 = (1).xxx;
static uint3 v5 = uint3(1u, 2u, 3u);
static float3 v6 = float3(1.0f, 2.0f, 3.0f);
static MyStruct v7 = {1.0f};
static float v8[10] = (float[10])0;
static int v9 = 0;
static uint v10 = 0u;
static float v11 = 0.0f;
static MyStruct v12 = (MyStruct)0;
static MyStruct v13 = (MyStruct)0;
static float v14[10] = (float[10])0;
static int3 v15 = int3(1, 2, 3);
static float3 v16 = float3(1.0f, 2.0f, 3.0f);
[numthreads(1, 1, 1)]
void f() {
const int l1 = v1;
const uint l2 = v2;
const float l3 = v3;
const int3 l4 = v4;
const uint3 l5 = v5;
const float3 l6 = v6;
const MyStruct l7 = v7;
const float l8[10] = v8;
const int l9 = v9;
const uint l10 = v10;
const float l11 = v11;
const MyStruct l12 = v12;
const MyStruct l13 = v13;
const float l14[10] = v14;
const int3 l15 = v15;
const float3 l16 = v16;
return;
}