Пример #1
0
 internal static unsafe extern Result vkGetMemoryWin32HandleNV(IntPtr device, UInt64 memory, ExternalMemoryHandleTypeFlagsNv handleType, IntPtr *pHandle);
Пример #2
0
        public static IntPtr GetMemoryWin32HandleNV(this Device device, DeviceMemory memory, ExternalMemoryHandleTypeFlagsNv handleType)
        {
            Result result;
            IntPtr pHandle;

            unsafe
            {
                pHandle = new IntPtr();
                result  = Windows.Interop.NativeMethods.vkGetMemoryWin32HandleNV(device.M, memory != null ? memory.M : default(UInt64), handleType, &pHandle);
                if (result != Result.Success)
                {
                    throw new ResultException(result);
                }

                return(pHandle);
            }
        }
Пример #3
0
 internal static unsafe extern Result vkGetPhysicalDeviceExternalImageFormatPropertiesNV(IntPtr physicalDevice, Format format, ImageType type, ImageTiling tiling, ImageUsageFlags usage, ImageCreateFlags flags, ExternalMemoryHandleTypeFlagsNv externalHandleType, ExternalImageFormatPropertiesNv *pExternalImageFormatProperties);