blob: 52ae4823f534159f3a5ceeccb06db361929cb4a3 (
plain)
1
2
3
4
5
6
7
8
9
10
|
//TEST:SIMPLE(filecheck=HLSL):-target hlsl -profile ps_6_6 -entry fragmentMain
//TEST:SIMPLE(filecheck=DXIL):-target dxil -profile ps_6_6 -entry fragmentMain
float4 fragmentMain(float2 uv : TEXCOORD) : SV_Target
{
//HLSL:, ddx({{.*}}1.5f)
//DXIL: = call float @dx.op.unary.f32(i32 {{.*}} ; DerivCoarseX(value)
float val = 1.5;
return float4(1.0, ddx(val), 0.0, 1.0);
}
|