diff options
Diffstat (limited to 'src/vulkan/device.cc')
-rw-r--r-- | src/vulkan/device.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vulkan/device.cc b/src/vulkan/device.cc index 698d336..f5f6e1c 100644 --- a/src/vulkan/device.cc +++ b/src/vulkan/device.cc @@ -461,7 +461,7 @@ Result Device::Initialize( } bool Device::IsFormatSupportedByPhysicalDevice(const Format& format, - Buffer* buffer) { + BufferType type) { VkFormat vk_format = GetVkFormat(format); VkFormatProperties properties = VkFormatProperties(); GetPtrs()->vkGetPhysicalDeviceFormatProperties(physical_device_, vk_format, @@ -469,7 +469,7 @@ bool Device::IsFormatSupportedByPhysicalDevice(const Format& format, VkFormatFeatureFlagBits flag = VK_FORMAT_FEATURE_VERTEX_BUFFER_BIT; bool is_buffer_type_image = false; - switch (buffer->GetBufferType()) { + switch (type) { case BufferType::kColor: case BufferType::kStorageImage: flag = VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT; |