Giter Club home page Giter Club logo

Comments (2)

johguenther avatar johguenther commented on May 25, 2024

Thanks for the feedback! Some of the issues have already been reported (and #6) and fixed (plus #12), but we indeed need to update the documents in https://github.com/KhronosGroup/ANARI-Registry/blob/main/specs/1.0-provisional/ to reflect those changes.

I'll add ANARI_SPATIAL_FIELD.

Is it expected or useful to use anariGetObjectParameters for objects without subtype – their parameters are known per spec? Then using NULL for objectSubtype could be an option, otherwise we could disallow the call for those object types (similarly as for anariGetObjectSubtypes).

The parameter introspection indeed has gaps: for non-trivial (nested) types like you describe and also for type aliases (when different types with the same name are allowed). We have some ideas for the latter, but generically supporting the first is hard.

from anari-docs.

player1537 avatar player1537 commented on May 25, 2024

Oh, I missed this repository so I didn't know about the ones that have already been fixed. Oops.

In my opinion/use case, I think it's useful to have anariGetObjectParameters work for objects without subtypes. I specifically want to be able to enumerate the entire API so I can do some code generation on my side. My reasoning is that there are already some parts of the spec that aren't fully implemented in the example library/device (for example, lights) so going through the introspection methods means that I'll always get the most up-to-date information for the current library.

from anari-docs.

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.