Giter Club home page Giter Club logo

Comments (4)

johguenther avatar johguenther commented on May 25, 2024

Framebuffer channels are parameters of type DATA_TYPE and will be enumerated via anariGetObjectInfo with parameterof type PARAMETER_LIST. This is not sufficient?

Actually there is currently no way to get the valid pixelType of Frame channels when requesting that channel (setting the parameter), for that we should extend the value info like below.

.Info of parameters for introspection.

Name Type Required Description
value STRING_LIST / TYPE_LIST No list of accepted strings for "enum" parameters that only recognize specific strings, or list of accepted values for DATA_TYPE parameters

from anari-docs.

jeffamstutz avatar jeffamstutz commented on May 25, 2024

Framebuffer channels are parameters of type DATA_TYPE and will be enumerated via anariGetObjectInfo with parameterof type PARAMETER_LIST. This is not sufficient?

Part of the problem is that there's no good way to distinguish parameters which are intended to be used as a FB channel. If an implementation provides extensions with additional FB channels, there isn't an obvious connection between a parameter and it being a valid channel.

We need the ability to discern how this connection to parameters and mappable channel names occurs, and there should be text stating the convention used to connect them.

I propose that we use a channel.[name] as the parameter name, where [name] is the matching name used to map it. There should at least be non-normative text that states that this is the convention and that extensions ought to strongly follow it.

from anari-docs.

jeffamstutz avatar jeffamstutz commented on May 25, 2024

Summary of consensus from today's WG call:

  • We need to add the value info parameter for STRING_LIST/TYPE_LIST info queries as outlined by @johguenther (this was a gap that needs filled regardless).
  • We want to add the channel query to ANARIFrame, providing a list of available channels by the implementation. These channels are the names which can be passed directly to anariMapFrame().
  • ANARIFrame parameters for controlling various frame channels should all be prefixed with "channel." to both clearly state their relationship to mappable channels and prevent naming collisions with other parameters.
  • We want language that states the [grouping].[name] naming convention is a rule for arrays/buffers (both input and output).

from anari-docs.

johguenther avatar johguenther commented on May 25, 2024

closed via #39

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.