libcg / grvk

Vulkan-based Mantle API implementation
https://en.wikipedia.org/wiki/Mantle_(API)
zlib License
221 stars 14 forks source link

Use an offset buffer for typed memory views #51

Closed libcg closed 1 year ago

libcg commented 2 years ago

Mantle doesn't have buffer view objects and games like to bind memory views with new offsets all the time, which means we're allocating and freeing VkBufferView objects very frequently, and we can't cache them. Use an offset buffer and do some magic in the shader to avoid this situation.

libcg commented 1 year ago

VK_EXT_descriptor_buffer will allow us to bypass VkBufferView. Closing.