1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-02 04:29:14 +01:00

[d3d11] Mark images as shared if necessary

This commit is contained in:
Philip Rebohle 2021-02-14 03:42:12 +01:00 committed by Philip Rebohle
parent 4f184b3424
commit bce80b523f
2 changed files with 3 additions and 0 deletions

View File

@ -479,6 +479,7 @@ namespace dxvk {
imageInfo.access = 0;
imageInfo.tiling = VK_IMAGE_TILING_OPTIMAL;
imageInfo.layout = VK_IMAGE_LAYOUT_PRESENT_SRC_KHR;
imageInfo.shared = VK_TRUE;
DxvkImageViewCreateInfo viewInfo;
viewInfo.type = VK_IMAGE_VIEW_TYPE_2D;

View File

@ -33,6 +33,7 @@ namespace dxvk {
imageInfo.tiling = VK_IMAGE_TILING_OPTIMAL;
imageInfo.layout = VK_IMAGE_LAYOUT_GENERAL;
imageInfo.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED;
imageInfo.shared = vkImage != VK_NULL_HANDLE;
DecodeSampleCount(m_desc.SampleDesc.Count, &imageInfo.sampleCount);
@ -123,6 +124,7 @@ namespace dxvk {
imageInfo.usage |= VK_IMAGE_USAGE_SAMPLED_BIT;
imageInfo.stages |= VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT;
imageInfo.access |= VK_ACCESS_SHADER_READ_BIT;
imageInfo.shared = VK_TRUE;
}
// Some image formats (i.e. the R32G32B32 ones) are