Skip to content

Commit 70fe3d0

Browse files
committed
update vulkan notes
1 parent c2c499e commit 70fe3d0

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

_posts/Graphics/Vulkan Notes.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,20 @@
1010
在创建 buffer 时,storage buffer 和 uniform buffer 有什么区别:感觉就是前者是可读写的,后者是只读的
1111

1212
TODO:解释 vulkan 里的各种 memory type
13+
TODO:跳过了 sparse image / buffer 的部分
14+
### Vulkan Memory
15+
通过 `vkGetPhysicalDeviceMemoryProperties` API 获取 memory type 和 memory heap
16+
17+
`vkAllocateMemory` 分配 device memory 时需要指定使用哪种 memory type
18+
19+
`vkGetBufferMemoryRequirements` 以及 `vkGetImageMemoryRequirements` 获取指定的 buffer 和 image 需要哪种 memory type
20+
21+
为什么区分 memory type 和 memory heap,参考
22+
* https://stackoverflow.com/questions/51624650/vulkan-memoryheaps-and-their-memorytypes
23+
* https://stackoverflow.com/questions/48242445/why-does-vkgetphysicaldevicememoryproperties-return-multiple-identical-memory-ty#48243730
24+
* https://stackoverflow.com/questions/36436493/could-someone-help-me-understand-vkphysicaldevicememoryproperties/36437023#36437023
25+
26+
`VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT`
27+
`VK_MEMORY_PROPERTY_HOST_COHERENT_BIT`
1328

1429

0 commit comments

Comments
 (0)