blob: 946c1a08b859923b0217747981a87d9ca52ae5f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
//TEST:SIMPLE(filecheck=CHECK):-target spirv-asm -entry main -stage fragment -g2 -emit-spirv-directly
Texture2D testTex : register(t0);
SamplerState testSampler : register(s0);
struct PSIn
{
float4 pos : SV_Position;
};
float4 main(PSIn input) : SV_TARGET
{
uint4 testPos = input.pos;
float bias = -1.0;
float2 tc = testPos.xy / 32.0;
float4 colVal = testTex.SampleBias(testSampler, tc, bias);
return float4(colVal.xyz, 1.0);
}
// CHECK: %[[COMPILATION_UNIT_ID:[0-9]+]] = OpExtInst %void {{.*}} DebugCompilationUnit
// CHECK: %[[FUNC_ID:[0-9]+]] = OpExtInst %void {{.*}} DebugFunction %{{[0-9]+}}
// CHECK: DebugLocalVariable %{{[0-9]+}} %{{[0-9]+}} %{{[0-9]+}} %{{.*}} %{{.*}} %[[FUNC_ID]]
// CHECK: DebugGlobalVariable %{{[0-9]+}} %{{[0-9]+}} %{{[0-9]+}} %{{.*}} %{{.*}} %[[COMPILATION_UNIT_ID]]
|