Git Product home page Git Product logo

Comments (4)

marknefedov avatar marknefedov commented on July 17, 2024 1

for other who will search for this. There is volk-like mechanism in vulkan hpp which allows to not link to vulkan-loader and use vulkan-headers instead.
KhronosGroup/Vulkan-Hpp#378
https://github.com/KhronosGroup/Vulkan-Hpp/blob/master/tests/DispatchLoaderDynamic/DispatchLoaderDynamic.cpp

from volk.

zeux avatar zeux commented on July 17, 2024

As far as I know, if you use vulkan.hpp you don’t need volk - vulkan.hpp should have support for both dynamically loading functions from device and for some (?) extensions:

https://github.com/KhronosGroup/Vulkan-Hpp/blob/master/README.md#extensions--per-device-function-pointers

If you need to use extensions that vulkan.hpp doesn’t provide you can try to use volk and vulkan.hpp together but I suspect it will not go that well.

from volk.

devshgraphicsprogramming avatar devshgraphicsprogramming commented on July 17, 2024

AFAIK volk allows me to compile without requiring that the end user has Vulkan available (I can use Vulkan if I find it), also AFAIK Vulkan.hpp would require the DLL/.so to run.

Am I correct?

from volk.

zeux avatar zeux commented on July 17, 2024

Yes, that's correct - if you use volk, you don't get a link-time dependency to Vulkan Runtime so you can detect this dynamically (if volkInitialize fails) and fall back to a different graphics API. I'm not sure OTOH if vulkan.hpp provides comparable functionality...

from volk.

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.