Giter VIP home page Giter VIP logo

Comments (9)

xeechou avatar xeechou commented on August 15, 2024 11

Hell no, many APIs are not the same in vulkan-hpp, I'd have to grep into the header file to find what I need all the time. Se need a new cheat sheet for vulkan-hpp.

from vulkan-hpp.

jherico avatar jherico commented on August 15, 2024

There's this: https://www.khronos.org/files/vulkan10-reference-guide.pdf

Translating from the reference guide (which refers to the C bindings) to the C++ version is pretty easy

from vulkan-hpp.

adamcavendish avatar adamcavendish commented on August 15, 2024

Thx. I thought you might have some generated docs for reference... I think I got to grep the headers for some info~

from vulkan-hpp.

mtavenrath avatar mtavenrath commented on August 15, 2024

@adamcavendish What kind of information are you missing?

The README explains the 'differences' between the C and the C++ API. Using the original cheatsheet jherico mentioned you should be good to go.

Assuming there would be a cheatsheet, would it be enough to show only the transformed C++ functions which support arrays and references?

from vulkan-hpp.

adamcavendish avatar adamcavendish commented on August 15, 2024

@mtavenrath Just some tiny info, like is some type assignable or comparable etc., and vk::Extent2D does not support initializer_list etc. Grepping would be fine.

from vulkan-hpp.

jherico avatar jherico commented on August 15, 2024

An initializer list is arbitrary length. Extent2D requires exactly two arguments. You can declare vk::Extent2D foo { 1, 2 }; or for that matter, pass { 1, 2} into any function that expects an Extent2D and it will implicitly create one. Why would you want initializer lists?

from vulkan-hpp.

adamcavendish avatar adamcavendish commented on August 15, 2024

@jherico Ah, I just made an example to specify what I was grepping in the morning, not for asking a feature or sort of that. I just used vk::Extent2D foo(1, 2). Anyway, thx for the answer.

from vulkan-hpp.

Tachi107 avatar Tachi107 commented on August 15, 2024

Same here. The best doc I found about Vulkan.hpp is this pdf (or this) that I believe if from some kind of talk about the hpp itself.
I think that we need a complete doc about Vulkan.hpp that we could use instead of the one used to describe the C bindings; that could be expecially useful to starters who are already struggling undestranding Vulkan's concepts.

from vulkan-hpp.

pc-john avatar pc-john commented on August 15, 2024

Nothing against cheatsheet or complete doc, if somebody creates it or contributes it.
In my opinion, Vulkan.hpp is so close to C API that intelli sense of IDE is usually enough. In more complicated cases, some IDEs usually allow one click jump to C++ vulkan.hpp declaration and short look explains any API doubts. Wherever C++ API is more complicated, I suggest to read https://github.com/KhronosGroup/Vulkan-Hpp/blob/master/README.md first and than discuss what is missing. Other suggestions?

from vulkan-hpp.

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.