public ExportMemoryAllocateInfoKHR
 (
     StructureType sType = StructureType.ExportMemoryAllocateInfo,
     void *pNext         = default,
     ExternalMemoryHandleTypeFlags handleTypes = default
 )
 {
     SType       = sType;
     PNext       = pNext;
     HandleTypes = handleTypes;
 }
 public ExternalMemoryBufferCreateInfo
 (
     StructureType sType = StructureType.ExternalMemoryBufferCreateInfo,
     void *pNext         = default,
     ExternalMemoryHandleTypeFlags handleTypes = default
 )
 {
     SType       = sType;
     PNext       = pNext;
     HandleTypes = handleTypes;
 }
 public ExternalMemoryPropertiesKHR
 (
     ExternalMemoryFeatureFlags externalMemoryFeatures           = default,
     ExternalMemoryHandleTypeFlags exportFromImportedHandleTypes = default,
     ExternalMemoryHandleTypeFlags compatibleHandleTypes         = default
 )
 {
     ExternalMemoryFeatures        = externalMemoryFeatures;
     ExportFromImportedHandleTypes = exportFromImportedHandleTypes;
     CompatibleHandleTypes         = compatibleHandleTypes;
 }
 public PhysicalDeviceExternalImageFormatInfo
 (
     StructureType sType = StructureType.PhysicalDeviceExternalImageFormatInfo,
     void *pNext         = default,
     ExternalMemoryHandleTypeFlags handleType = default
 )
 {
     SType      = sType;
     PNext      = pNext;
     HandleType = handleType;
 }
Esempio n. 5
0
 public MemoryGetFdInfoKHR
 (
     StructureType sType = StructureType.MemoryGetFDInfoKhr,
     void *pNext         = default,
     DeviceMemory memory = default,
     ExternalMemoryHandleTypeFlags handleType = default
 )
 {
     SType      = sType;
     PNext      = pNext;
     Memory     = memory;
     HandleType = handleType;
 }
Esempio n. 6
0
 public ImportMemoryHostPointerInfoEXT
 (
     StructureType sType = StructureType.ImportMemoryHostPointerInfoExt,
     void *pNext         = default,
     ExternalMemoryHandleTypeFlags handleType = default,
     void *pHostPointer = default
 )
 {
     SType        = sType;
     PNext        = pNext;
     HandleType   = handleType;
     PHostPointer = pHostPointer;
 }
 public ImportMemoryFdInfoKHR
 (
     StructureType sType = StructureType.ImportMemoryFDInfoKhr,
     void *pNext         = default,
     ExternalMemoryHandleTypeFlags handleType = default,
     int fd = default
 )
 {
     SType      = sType;
     PNext      = pNext;
     HandleType = handleType;
     Fd         = fd;
 }
 public ImportMemoryWin32HandleInfoKHR
 (
     StructureType sType = StructureType.ImportMemoryWin32HandleInfoKhr,
     void *pNext         = default,
     ExternalMemoryHandleTypeFlags handleType = default,
     IntPtr handle = default,
     IntPtr name   = default
 )
 {
     SType      = sType;
     PNext      = pNext;
     HandleType = handleType;
     Handle     = handle;
     Name       = name;
 }
 public PhysicalDeviceExternalBufferInfo
 (
     StructureType sType     = StructureType.PhysicalDeviceExternalBufferInfo,
     void *pNext             = default,
     BufferCreateFlags flags = default,
     BufferUsageFlags usage  = default,
     ExternalMemoryHandleTypeFlags handleType = default
 )
 {
     SType      = sType;
     PNext      = pNext;
     Flags      = flags;
     Usage      = usage;
     HandleType = handleType;
 }
Esempio n. 10
0
 /// <summary>
 /// Retrieve Win32 handle to a device memory object.
 /// </summary>
 public IntPtr GetMemoryWin32Handle(ExternalMemoryHandleTypeFlags handleType)
 {
     unsafe
     {
         try
         {
             var    commandDelegate = this.commandCache.GetCommandDelegate <Interop.vkGetMemoryWin32HandleNV>("vkGetMemoryWin32HandleNV", "device");
             IntPtr result          = default(IntPtr);
             Result commandResult;
             commandResult = commandDelegate(this.parent.handle, this.handle, handleType, &result);
             if (SharpVkException.IsError(commandResult))
             {
                 throw SharpVkException.Create(commandResult);
             }
             return(result);
         }
         finally
         {
             Interop.HeapUtil.FreeLog();
         }
     }
 }
Esempio n. 11
0
 public partial Result GetMemoryHostPointerProperties <T0>([Count(Count = 0)] Device device, [Count(Count = 0)] ExternalMemoryHandleTypeFlags handleType, [Count(Count = 0)] ref T0 pHostPointer, [Count(Count = 0), Flow(FlowDirection.Out)] out MemoryHostPointerPropertiesEXT pMemoryHostPointerProperties) where T0 : unmanaged;
Esempio n. 12
0
 public unsafe partial Result GetMemoryHostPointerProperties([Count(Count = 0)] Device device, [Count(Count = 0)] ExternalMemoryHandleTypeFlags handleType, [Count(Count = 0)] void *pHostPointer, [Count(Count = 0), Flow(FlowDirection.Out)] out MemoryHostPointerPropertiesEXT pMemoryHostPointerProperties);
 public static unsafe Result GetMemoryZirconHandlePropertiesFuchsia(this FuchsiaExternalMemory thisApi, [Count(Count = 0)] Device device, [Count(Count = 0)] ExternalMemoryHandleTypeFlags handleType, [Count(Count = 0)] nint zirconHandle, [Count(Count = 0), Flow(FlowDirection.Out)] Span <MemoryZirconHandlePropertiesFUCHSIA> pMemoryZirconHandleProperties)
 {
     // SpanOverloader
     return(thisApi.GetMemoryZirconHandlePropertiesFuchsia(device, handleType, zirconHandle, out pMemoryZirconHandleProperties.GetPinnableReference()));
 }
Esempio n. 14
0
 /// <summary>To be added.</summary>
 public unsafe Result GetMemoryWin32HandleProperties([Count(Count = 0)] Device device, [Count(Count = 0)] ExternalMemoryHandleTypeFlags handleType, [Count(Count = 0)] int handle, [Count(Count = 0), Flow(FlowDirection.Out)] out MemoryWin32HandlePropertiesKHR pMemoryWin32HandleProperties)
 {
     // IntPtrOverloader
     return(GetMemoryWin32HandleProperties(device, handleType, new IntPtr(handle), out pMemoryWin32HandleProperties));
 }
Esempio n. 15
0
 public abstract unsafe Result GetMemoryWin32HandleProperties([Count(Count = 0)] Device device, [Count(Count = 0)] ExternalMemoryHandleTypeFlags handleType, [Count(Count = 0)] IntPtr handle, [Count(Count = 0), Flow(FlowDirection.Out)] MemoryWin32HandlePropertiesKHR *pMemoryWin32HandleProperties);
 /// <summary>To be documented.</summary>
 public static unsafe Result GetMemoryWin32HandleProperties(this KhrExternalMemoryWin32 thisApi, [Count(Count = 0)] Device device, [Count(Count = 0)] ExternalMemoryHandleTypeFlags handleType, [Count(Count = 0)] nint handle, [Count(Count = 0), Flow(FlowDirection.Out)] Span <MemoryWin32HandlePropertiesKHR> pMemoryWin32HandleProperties)
 {
     // SpanOverloader
     return(thisApi.GetMemoryWin32HandleProperties(device, handleType, handle, out pMemoryWin32HandleProperties.GetPinnableReference()));
 }
Esempio n. 17
0
 /// <summary>To be documented.</summary>
 public static unsafe Result GetMemoryHostPointerProperties <T0>(this ExtExternalMemoryHost thisApi, [Count(Count = 0)] Device device, [Count(Count = 0)] ExternalMemoryHandleTypeFlags handleType, [Count(Count = 0)] Span <T0> pHostPointer, [Count(Count = 0), Flow(FlowDirection.Out)] Span <MemoryHostPointerPropertiesEXT> pMemoryHostPointerProperties) where T0 : unmanaged
 {
     // SpanOverloader
     return(thisApi.GetMemoryHostPointerProperties(device, handleType, ref pHostPointer.GetPinnableReference(), out pMemoryHostPointerProperties.GetPinnableReference()));
 }
Esempio n. 18
0
 /// <summary>
 ///
 /// </summary>
 public ExternalImageFormatProperties(ImageFormatProperties imageFormatProperties, ExternalMemoryFeatureFlags externalMemoryFeatures, ExternalMemoryHandleTypeFlags exportFromImportedHandleTypes, ExternalMemoryHandleTypeFlags compatibleHandleTypes)
 {
     this.ImageFormatProperties         = imageFormatProperties;
     this.ExternalMemoryFeatures        = externalMemoryFeatures;
     this.ExportFromImportedHandleTypes = exportFromImportedHandleTypes;
     this.CompatibleHandleTypes         = compatibleHandleTypes;
 }
Esempio n. 19
0
 public abstract Result GetMemoryFdProperties([Count(Count = 0)] Device device, [Count(Count = 0)] ExternalMemoryHandleTypeFlags handleType, [Count(Count = 0)] int fd, [Count(Count = 0), Flow(FlowDirection.Out)] out MemoryFdPropertiesKHR pMemoryFdProperties);
Esempio n. 20
0
 /// <summary>
 /// Determine image capabilities compatible with external memory handle
 /// types.
 /// </summary>
 public ExternalImageFormatProperties GetExternalImageFormatProperties(Format format, ImageType type, ImageTiling tiling, ImageUsageFlags usage, ImageCreateFlags flags, ExternalMemoryHandleTypeFlags externalHandleType)
 {
     unsafe
     {
         try
         {
             var commandDelegate = this.commandCache.GetCommandDelegate <Interop.vkGetPhysicalDeviceExternalImageFormatPropertiesNV>("vkGetPhysicalDeviceExternalImageFormatPropertiesNV", "instance");
             ExternalImageFormatProperties result = default(ExternalImageFormatProperties);
             Result commandResult;
             commandResult = commandDelegate(this.handle, format, type, tiling, usage, flags, externalHandleType, &result);
             if (SharpVkException.IsError(commandResult))
             {
                 throw SharpVkException.Create(commandResult);
             }
             return(result);
         }
         finally
         {
             Interop.HeapUtil.FreeLog();
         }
     }
 }