diff options
Diffstat (limited to 'tests/hlsl')
| -rw-r--r-- | tests/hlsl/float-literal-suffix.slang | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/hlsl/float-literal-suffix.slang b/tests/hlsl/float-literal-suffix.slang new file mode 100644 index 000000000..52ae4823f --- /dev/null +++ b/tests/hlsl/float-literal-suffix.slang @@ -0,0 +1,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); +}
\ No newline at end of file |
