1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-02 01:24:11 +01:00

[dxvk] Add shared flag to images

Indicates that images can be accessed by more than one context
internally, or through the interop interfaces without explicit
image layout transitions.
This commit is contained in:
Philip Rebohle 2021-02-14 03:31:25 +01:00 committed by Philip Rebohle
parent 6efc2588f8
commit 6564895a32

View File

@ -57,6 +57,10 @@ namespace dxvk {
// Initial image layout
VkImageLayout initialLayout = VK_IMAGE_LAYOUT_UNDEFINED;
// Image is used by multiple contexts so it needs
// to be in its default layout after each submission
VkBool32 shared = VK_FALSE;
// Image view formats that can
// be used with this image
uint32_t viewFormatCount = 0;