Skip to content

Commit c8ba8d1

Browse files
committed
Update vk::index_buffer to using vk::buffer_usage enum
1 parent e9003b4 commit c8ba8d1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

vulkan-cpp/index_buffer.cppm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ module;
22

33
#include <vulkan/vulkan.h>
44
#include <span>
5-
#include <array>
65

76
export module vk:index_buffer;
87

@@ -25,7 +24,7 @@ export namespace vk {
2524
.device_size = p_info.indices.size_bytes(),
2625
.physical_memory_properties = p_info.phsyical_memory_properties,
2726
.property_flags = static_cast<memory_property>(memory_property::host_visible_bit | memory_property::host_cached_bit),
28-
.usage = VK_BUFFER_USAGE_INDEX_BUFFER_BIT,
27+
.usage = static_cast<VkBufferUsageFlags>(buffer_usage::index_buffer_bit),
2928
.debug_name = p_info.debug_name.c_str(),
3029
.vkSetDebugUtilsObjectNameEXT = p_info.vkSetDebugUtilsObjectNameEXT
3130
};

0 commit comments

Comments
 (0)