Day 4 (Dec 14, 2020) ~~~ Interfacing with Vulkan Through Physical & Logical Devices - kwilson33/learning-vulkan GitHub Wiki
Progress Today
I made it through these pages today of the official Vulkan tutorial. Done with the Setup section of Drawing a triangle!
- Drawing a triangle --> Setup --> Physical devices and queue families
- Drawing a triangle --> Setup --> Logical device and queues
Here are some major takeaways
1. Almost every command in Vulkan, from drawing to uploading textures, requires commands to be submitted to a queue.
- There are different types of queues that originate from different queue families and each family of queues allows only a subset of commands.
- For example, some queues may only accept processing of compute commands.
2. You can create multiple logical devices from a single physical device.
Logical devices
interface withphysical devices
.Logical devices
are similar to instances and describe the features you want to use. Thephysical device
I'm using is listed below, copied from my console where I printed it out.
Physical device set to: AMD Radeon R9 200 / HD 7900 Series
Logical devices
don't interact directly withinstances
.
See ya!
Another day down. Four days in and things are finally starting to take shape. By creating a physical device and using a logical device to interface with it, I'm a few steps closer to actually doing fun graphics stuff! The pages on physical and logical devices were a breeze to get through compared to the validation layer stuff. My code (all in one file) was getting quite large, so I did a lot of reformatting and reorganizing so it's easier for me to scroll through. I finished the Setup section of Drawing a triangle, and now I'm on to the Presentation part, which doesn't look as long.