Comments (9)
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.
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.
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.
@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.
@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.
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.
@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.
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.
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)
- Question: VulkanHpp VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC usage with VulkanMemoryAllocator HOT 1
- Feature request: appending to a StructureChain HOT 4
- compilation error when including vulkan_enums.hpp by itself HOT 2
- Allow destructuring of ResultValue with std::tie HOT 3
- Including `vulkan.hpp` causes compilation error with Clang HOT 5
- Feature request: Specialize std::hash for most types HOT 1
- std::min clashes with macros in windows.h HOT 5
- 'vk::ObjectDestroyShared<vk::Image>': no appropriate default constructor available HOT 3
- LayerSettingEXT.setValues HOT 1
- ArrayProxy with designated initializers
- `Null non-type template argument must be cast to template parameter type` errors in vulkan_handles.hpp with SDK 1.3.283. HOT 5
- vk::PipelineLayoutCreateInfo and vk::raii::DescriptorSetLayout HOT 2
- C++20 module does not expose *Flags{KHR,EXT}
- Move semantics for non-raii handles HOT 1
- SharedCommandBuffer constructor without SharedCommandPool parameter causes assertion fail on destroy HOT 4
- [c++20 module] getDispatchLoaderStatic is not available HOT 2
- [c++20 module] functions from vk::detail:: pulled into vk:: HOT 2
- RAII with Vulkan Memory Allocator (VMA)? HOT 5
- Confusing deprecation of extensions HOT 1
- IWYU pragmas for vulkan_{enums,funcs,structs}.hpp HOT 1
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 vulkan-hpp.