Skip to content

Commit b91efdd

Browse files
committed
fix: flag initialization.
1 parent e208f50 commit b91efdd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/nn/nn-vulkan.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ NnVulkanBuffer::NnVulkanBuffer(NnVulkanContext *context, const vk::DeviceSize bu
126126
this->usageFlags = usageFlags;
127127
this->hostPointer = nullptr;
128128

129+
isHostVisible = false;
130+
129131
uint32_t memoryTypeIndex = MEMORY_TYPE_INDEX_NOT_FOUND;
130132
if (fastAccess) {
131133
memoryTypeIndex = findMemoryTypeIndex(&context->physicalDevice, vk::MemoryPropertyFlagBits::eHostVisible | vk::MemoryPropertyFlagBits::eDeviceLocal);

0 commit comments

Comments
 (0)