Comments (4)
I guess so, for the moment they use a STB style ANARI_FEATURE_UTILITY_IMPL
macro to place the defininitions. As long as only one cpp file defines that before including it, it should be fine. I guess the other option would be to just make the functions static.
I'm not sure if "hardwiring" it into the sdk is the correct path. The utility to generate this helper is intentionally written so you could create a custom one with additional (vendor or extension provided) features in it.
from anari-sdk.
It doesn't need to go in the SDK, however the current setup doesn't work when ANARI_FEATURE_UTILITY_IMPL
is defined in a header file. Making them static functions may be the best solution. In the words of Jakob
it just seems weird to have to define ANARI_FEATURE_UTILITY_IMPL
first in order to get the list of features from a device when, presumably, all front-ends will need to do this considering the direction the spec is going.
from anari-sdk.
Workaround: I created my own GetAnariDeviceFeatures
method that returns an anari::Features
object that gets updated after processing a list of feature strings returned by anariGetObjectInfo
.
from anari-sdk.
Closing this as the STB-style usage is the current intention and alternatives introduce link dependencies we want to avoid. Applications should only define ANARI_FEATURE_UTILITY_IMPL
in a single .cpp
translation unit to ensure a single definition.
from anari-sdk.
Related Issues (20)
- Please support MSYS2 MINGW64 HOT 4
- ANARIFeatures missing extension ANARI_KHR_STEREO_RENDERING HOT 2
- build failing, v0.3.0 and latest main HOT 5
- Create an offline version for the build HOT 3
- NULL pointer dereference in anariLoadLibrary if ANARI_LIBRARY is not set HOT 2
- Test fail with SIGILL HOT 1
- `primitive.index` not used for indexing into `vertex.color` HOT 1
- Vcpkg port HOT 2
- Wrong type for parameter `outOffset` of sampler `transform` HOT 1
- Missing CMake target for the debug backend layer HOT 1
- New device documentation HOT 3
- Comparing ANARIDataType in c++20
- Ensure spec compatibility with ANARI_BOOL in C++ wrappers
- Anari Python Bindings, Arrays of Arrays HOT 9
- Fails to build with Intel compilers. HOT 4
- Compiling on Windows - Visual Studio 2019 HOT 4
- Add SDK version as a #define
- Building helide device fails for CMake 3.18 HOT 1
- Building GL Viewer on macOS fails due to missing GLES HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anari-sdk.