diff options
Diffstat (limited to 'tests/cross-compile/half-conversion.slang')
| -rw-r--r-- | tests/cross-compile/half-conversion.slang | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/cross-compile/half-conversion.slang b/tests/cross-compile/half-conversion.slang new file mode 100644 index 000000000..316629f81 --- /dev/null +++ b/tests/cross-compile/half-conversion.slang @@ -0,0 +1,13 @@ +// half-conversion.slang + +//TEST:CROSS_COMPILE:-target spirv-assembly -entry main -stage fragment + +cbuffer C +{ + uint4 u; +} + +float4 main() : SV_Target +{ + return f16tof32(u); +} |
