File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 1010在创建 buffer 时,storage buffer 和 uniform buffer 有什么区别:感觉就是前者是可读写的,后者是只读的
1111
1212TODO:解释 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
You can’t perform that action at this time.
0 commit comments