1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 11:52:12 +01:00

[dxvk] Added explicit image flags

This commit is contained in:
Philip Rebohle 2017-12-05 14:41:58 +01:00
parent af30fb3c25
commit 34ed79dacc
3 changed files with 5 additions and 2 deletions

View File

@ -12,8 +12,7 @@ namespace dxvk {
VkImageCreateInfo info; VkImageCreateInfo info;
info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO;
info.pNext = nullptr; info.pNext = nullptr;
// TODO VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT if appropriate info.flags = createInfo.flags;
info.flags = VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT;
info.imageType = createInfo.type; info.imageType = createInfo.type;
info.format = createInfo.format; info.format = createInfo.format;
info.extent = createInfo.extent; info.extent = createInfo.extent;

View File

@ -18,6 +18,9 @@ namespace dxvk {
/// Pixel format /// Pixel format
VkFormat format; VkFormat format;
/// Flags
VkImageCreateFlags flags;
/// Sample count for MSAA /// Sample count for MSAA
VkSampleCountFlagBits sampleCount; VkSampleCountFlagBits sampleCount;

View File

@ -138,6 +138,7 @@ namespace dxvk {
DxvkImageCreateInfo imageInfo; DxvkImageCreateInfo imageInfo;
imageInfo.type = VK_IMAGE_TYPE_2D; imageInfo.type = VK_IMAGE_TYPE_2D;
imageInfo.format = fmt.format; imageInfo.format = fmt.format;
imageInfo.flags = 0;
imageInfo.sampleCount = VK_SAMPLE_COUNT_1_BIT; imageInfo.sampleCount = VK_SAMPLE_COUNT_1_BIT;
imageInfo.extent.width = swapInfo.imageExtent.width; imageInfo.extent.width = swapInfo.imageExtent.width;
imageInfo.extent.height = swapInfo.imageExtent.height; imageInfo.extent.height = swapInfo.imageExtent.height;