On Tuesday, 18 September 2018 at 06:25:33 UTC, Sobaya wrote:
On Tuesday, 18 September 2018 at 01:39:51 UTC, Nicholas Wilson wrote:
On Tuesday, 18 September 2018 at 00:25:33 UTC, Sobaya wrote:
I'm waiting for the update. How's your progress?

I t appears I have broke SPIR-V completely somewhere along the line, I may release a v0.2 with out it, hopefully within the week.

I declared like:

pragma(LDC_intrinsic, "llvm.nvvm.cos.f32")
T cos(T)(T val)
    if (__traits(isFloating, T));

It also doesn't work.

pragma(LDC_intrinsic, "llvm.nvvm.cos.f#") // note the # in place of 32
T cos(T)(T val)
     if (__traits(isFloating, T));
(Just don't use real with it.)

OR

pragma(LDC_intrinsic, "llvm.nvvm.cos.f32")
 float cos(float val)

Reply via email to