Browse Source

Use same flags in ExternalMemoryImageCreateInfo

pull/10333/head
Nikita Tsukanov 3 years ago
committed by GitHub
parent
commit
9c33ee08dd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      samples/GpuInterop/VulkanDemo/VulkanImage.cs

2
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
{

Loading…
Cancel
Save