voodoo icon indicating copy to clipboard operation
voodoo copied to clipboard

Change PhysicalDeviceMemoryProperties to return slices of proper sizes

Open GabrielMajeri opened this issue 6 years ago • 1 comments

The PhysicalDeviceMemoryProperties struct has functions which allow the developer to get a slice of size VK_MAX_MEMORY_TYPES. The entries up to memory_type_count are valid, the ones after are invalid.

The Voodoo API should have only one function, memory_types, and it should return a slice of the correct size: &memory_types[..memory_type_count].

GabrielMajeri avatar Jun 22 '18 18:06 GabrielMajeri

Agreed. I'll adjust this as soon as I can.

Please keep the suggestions coming. I won't have time to make these changes right away but having issues filed here is very helpful.

c0gent avatar Jun 23 '18 01:06 c0gent