Mercurial > games > semicongine
comparison src/semicongine/vulkan/buffer.nim @ 162:68947a8ee127
fix: super stupid error
author | Sam <sam@basx.dev> |
---|---|
date | Sat, 29 Apr 2023 17:41:40 +0700 |
parents | 1349f87ef083 |
children | 7a0ca5c01095 |
comparison
equal
deleted
inserted
replaced
161:1349f87ef083 | 162:68947a8ee127 |
---|---|
79 result.usage.add VK_BUFFER_USAGE_TRANSFER_DST_BIT | 79 result.usage.add VK_BUFFER_USAGE_TRANSFER_DST_BIT |
80 var createInfo = VkBufferCreateInfo( | 80 var createInfo = VkBufferCreateInfo( |
81 sType: VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO, | 81 sType: VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO, |
82 flags: VkBufferCreateFlags(0), | 82 flags: VkBufferCreateFlags(0), |
83 size: size, | 83 size: size, |
84 usage: toBits(usage), | 84 usage: toBits(result.usage), |
85 sharingMode: VK_SHARING_MODE_EXCLUSIVE, | 85 sharingMode: VK_SHARING_MODE_EXCLUSIVE, |
86 ) | 86 ) |
87 | 87 |
88 checkVkResult vkCreateBuffer( | 88 checkVkResult vkCreateBuffer( |
89 device=device.vk, | 89 device=device.vk, |