Mateusz Kielan
Mateusz Kielan
> > Btw you can spirv bitcast between vk:: BufferPointer and uint64_t and uint32_t2 > > You can (even without inline spirv), but storing pointers as plain uints breaks BDA...
Could we get __is_base_of btw ? @Dolkar as for the reinterpret cast, you can steal our inline Spir-V OpBitcast and literally use that to cast between vk:: BufferPointer and any...
may I suggest a simpler solution which already works for us? https://godbolt.devsh.eu/z/TPzWoE This approach beats even Slang (see the `%_ptr_Function__arr_uint_int_512` you get that you can't optimize out) https://godbolt.org/z/Tbx3rzKeh Could I...
> Thanks for the contribution. That is great. > > We'll have to see if this causes regressions for anyone. It could be that people depend on the old behaviour,...
would this work for you? ```cpp template [[vk::ext_instruction(spv::OpBitcast)]] T bitcast(U); ```
would this work for you? ```cpp template [[vk::ext_instruction(spv::OpBitcast)]] T bitcast(U); ```
Important note, this affects DXIL codegen too https://godbolt.org/z/1zPxhbPWj
If you're interested in a quick fix, you can use inline SPIR-V to use `OpIsNan` directly