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:
parent
af30fb3c25
commit
34ed79dacc
@ -12,8 +12,7 @@ namespace dxvk {
|
||||
VkImageCreateInfo info;
|
||||
info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO;
|
||||
info.pNext = nullptr;
|
||||
// TODO VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT if appropriate
|
||||
info.flags = VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT;
|
||||
info.flags = createInfo.flags;
|
||||
info.imageType = createInfo.type;
|
||||
info.format = createInfo.format;
|
||||
info.extent = createInfo.extent;
|
||||
|
@ -18,6 +18,9 @@ namespace dxvk {
|
||||
/// Pixel format
|
||||
VkFormat format;
|
||||
|
||||
/// Flags
|
||||
VkImageCreateFlags flags;
|
||||
|
||||
/// Sample count for MSAA
|
||||
VkSampleCountFlagBits sampleCount;
|
||||
|
||||
|
@ -138,6 +138,7 @@ namespace dxvk {
|
||||
DxvkImageCreateInfo imageInfo;
|
||||
imageInfo.type = VK_IMAGE_TYPE_2D;
|
||||
imageInfo.format = fmt.format;
|
||||
imageInfo.flags = 0;
|
||||
imageInfo.sampleCount = VK_SAMPLE_COUNT_1_BIT;
|
||||
imageInfo.extent.width = swapInfo.imageExtent.width;
|
||||
imageInfo.extent.height = swapInfo.imageExtent.height;
|
||||
|
Loading…
x
Reference in New Issue
Block a user