Open kaizhangNV opened 1 month ago
The error message is:
test1.slang(6): internal error 99999: unimplemented feature in Slang compiler: unexpected IR opcode during code emit
return bit_cast<uint64_t>(x);
I tried other targets It has no problem on cpp, cuda, spirv.
on all the shader language targets, we don't handle double
base type during processing kIROp_BitCast.
There is a TODO in hlsl target
// TODO: There is an asdouble
function
// for converting two 32-bit integer values into
// one double
. We could use that for
// bit casts of 64-bit values with a bit of
// extra work, but doing so might be best
// handled in an IR pass that legalizes
// bit-casts.
//
We should work on top of https://github.com/shader-slang/slang/pull/5020 for this issue.
Following code will cause internal error:
note, there is no problem just doing