Giter Club home page Giter Club logo

Comments (7)

csyonghe avatar csyonghe commented on May 23, 2024

We are deprecating __target_intrinsic for functions and we recommend all future interop code to be written in the form of __target_switch and __intrinsic_asm. As you noticed, __require_prelude and __intrinsic_asm does not work when __target_intrinsic is present.

from slang.

swoods-nv avatar swoods-nv commented on May 23, 2024

Tentatively assigned labels-- Yong, please advise if this is a "we should add a warning" or something else.

from slang.

csyonghe avatar csyonghe commented on May 23, 2024

__target_intrinsic is still considered as compiler internal construct and we probably won't plan to add too much comprehensive checking logic around it. We may want to expose something different to the user that will undergo more checking. My suggestion is to close this issue because we don't want to invest too much checking in internal constructs for performance and implementation simplicity considerations.

from slang.

swoods-nv avatar swoods-nv commented on May 23, 2024

That sounds reasonable -- do we need to add any documentation?

from slang.

csyonghe avatar csyonghe commented on May 23, 2024

We can add a line in https://github.com/shader-slang/slang/edit/master/docs/user-guide/a1-04-interop.md to say that the constructs are still considered compiler internal and users should expect less complete checking around them.

from slang.

swoods-nv avatar swoods-nv commented on May 23, 2024

Thanks! Updated title, lowered priority, moved to backlog.

from slang.

pborsutzki avatar pborsutzki commented on May 23, 2024

We are deprecating __target_intrinsic for functions

Is there a list of deprecated things? I thought as it was part of the User Guide I was supposed to use it.

we recommend all future interop code to be written in the form of __target_switch and __intrinsic_asm

I can also use this.

Generally, what is the suggested way to extend on already existing types that are already in place for spir-v or hlsl but not for C++? I tried to write C++ bindings for the RayQuery struct. Currently it works by redefining the type in case I am compiling for C++, as inheriting from the already existing RayQuery struct is forbidden (sealed type). But I have the feeling that this is not the right way to go as this approach relies on preprocessor logic instead of actual language features. Can you give me some guidance on this? Is there documentation or examples somewhere that I missed?

from slang.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.