From 9c33ee08dde91d8c26b752c8d596d48d4990bad4 Mon Sep 17 00:00:00 2001 From: Nikita Tsukanov Date: Mon, 13 Feb 2023 20:31:51 +0300 Subject: [PATCH] Use same flags in ExternalMemoryImageCreateInfo --- samples/GpuInterop/VulkanDemo/VulkanImage.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/GpuInterop/VulkanDemo/VulkanImage.cs b/samples/GpuInterop/VulkanDemo/VulkanImage.cs index dfb6ba20e0..c1865a817d 100644 --- a/samples/GpuInterop/VulkanDemo/VulkanImage.cs +++ b/samples/GpuInterop/VulkanDemo/VulkanImage.cs @@ -62,7 +62,7 @@ public unsafe class VulkanImage : IDisposable //MipLevels = MipLevels != 0 ? MipLevels : (uint)Math.Floor(Math.Log(Math.Max(Size.Width, Size.Height), 2)); var handleType = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? - ExternalMemoryHandleTypeFlags.D3D11TextureKmtBit : + ExternalMemoryHandleTypeFlags.D3D11TextureBit : ExternalMemoryHandleTypeFlags.OpaqueFDBit; var externalMemoryCreateInfo = new ExternalMemoryImageCreateInfo {