forked from microsoft/DirectXShaderCompiler
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathauto-dxilver.hlsl
More file actions
28 lines (21 loc) · 1.15 KB
/
auto-dxilver.hlsl
File metadata and controls
28 lines (21 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Make sure each run line either works, or implicitly requires dxilver 1.8.
// If an implicit dxilver check is missing, we should see one of these errors.
// RUN: %dxc -T vs_6_8 %s | FileCheck %s
// This should implicitly require dxilver 1.8.
// RUN: %dxc -T vs_6_8 -Vd %s | FileCheck %s
// Even though this is using -Vd, the validator version is set by the available
// validator. If that isn't version 1.8 or above, we'll see an error.
// The implicit dxilver logic should not skip the check when -Vd is used.
// CHECK-NOT: error: validator version {{.*}} does not support target profile.
// RUN: %dxc -T vs_6_0 -validator-version 1.8 %s | FileCheck %s
// Even though target is 6.0, the explicit -validator-version should add an
// implicit dxilver 1.8 requirement.
// CHECK-NOT: error: The module cannot be validated by the version of the validator currently attached.
// This error would occur if run against wrong compiler.
// CHECK-NOT: error: invalid profile
// Catch any other unexpected error cases.
// CHECK-NOT: error
// RUN: %dxc -T vs_6_8 %s | FileCheck %s
// This should always be run, and always succeed.
// CHECK: define void @main()
void main() {}