Iterate over all available memory types (Fixes #209)
This commit is contained in:
parent
3d4d852b8a
commit
5e019dfdbb
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ namespace vk
|
||||||
*/
|
*/
|
||||||
uint32_t getMemoryType(uint32_t typeBits, VkMemoryPropertyFlags properties)
|
uint32_t getMemoryType(uint32_t typeBits, VkMemoryPropertyFlags properties)
|
||||||
{
|
{
|
||||||
for (uint32_t i = 0; i < memoryProperties.memoryTypeCount - 1; i++)
|
for (uint32_t i = 0; i < memoryProperties.memoryTypeCount; i++)
|
||||||
{
|
{
|
||||||
if ((typeBits & 1) == 1)
|
if ((typeBits & 1) == 1)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue