File tree Expand file tree Collapse file tree
tools/clang/test/DXILValidation Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- // RUN: %dxc -T ps_6_9 %s -Od | FileCheck %s
2-
3- // HLSL source for validation of various invalid load/store parameters.
4- // See LitDxilValidation/load-store-validation.ll.
1+ // This file is not used directly for testing.
2+ // This is the HLSL source for validation of various invalid load/store parameters.
3+ // It is used to generate LitDxilValidation/load-store-validation.ll using `dxc -T ps_6_9`.
54// Output is modified to trigger various validation errors.
65
76Texture1D <float4 > Tex;
@@ -16,8 +15,7 @@ RWStructuredBuffer<float4> OutVecBuf;
1615RWStructuredBuffer <float > OutScalBuf;
1716RWByteAddressBuffer OutBaBuf;
1817
19- // some simple ways to generate the vector ops in question.
20- // CHECK-LABEL: define void @main
18+ // Some simple ways to generate the vector ops in question.
2119float4 main (int i : IX) : SV_Target {
2220 // Texture provides some invalid handles to plug in.
2321 float4 TexVal = Tex.Sample (Samp, i);
Original file line number Diff line number Diff line change 1- // RUN: %dxc -T vs_6_9 %s -Od | FileCheck %s
2-
3- // HLSL source for validation that vector operations produce errors pre-6.9
4- // See LitDxilValidation/vector-validation.ll.
5- // Output is modified to have 6.8 instead.
1+ // This file is not used directly for testing.
2+ // This is the HLSL source for validation of disallowed 6.9 features in previous shader models.
3+ // It is used to generate LitDxilValidation/vector-validation.ll using `dxc -T ps_6_9`.
4+ // Output is modified to have shader model 6.8 instead.
65
76RWStructuredBuffer <float4 > VecBuf;
87
98// some simple ways to generate the vector ops in question.
10- // CHECK-LABEL: define void @main
119float4 main (float val : VAL) :SV_Position {
1210 float4 vec = VecBuf[1 ];
1311 VecBuf[0 ] = val;
You can’t perform that action at this time.
0 commit comments