Ejemplo n.º 1
0
        internal static unsafe ImageFormatProperties2 MarshalFrom(Interop.ImageFormatProperties2 *value)
        {
            ImageFormatProperties2 result = new ImageFormatProperties2();

            result.ImageFormatProperties = value->ImageFormatProperties;
            return(result);
        }
Ejemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="pointer">
        /// </param>
        internal static unsafe ImageFormatProperties2 MarshalFrom(SharpVk.Interop.ImageFormatProperties2 *pointer)
        {
            ImageFormatProperties2 result = default(ImageFormatProperties2);

            result.ImageFormatProperties = pointer->ImageFormatProperties;
            return(result);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Lists physical device's image format capabilities.
 /// </summary>
 public ImageFormatProperties2 GetImageFormatProperties2(PhysicalDeviceImageFormatInfo2 imageFormatInfo)
 {
     unsafe
     {
         try
         {
             var commandDelegate           = this.commandCache.GetCommandDelegate <Interop.vkGetPhysicalDeviceImageFormatProperties2KHR>("vkGetPhysicalDeviceImageFormatProperties2KHR", "instance");
             ImageFormatProperties2 result = default(ImageFormatProperties2);
             Result commandResult;
             Interop.PhysicalDeviceImageFormatInfo2 marshalledImageFormatInfo;
             imageFormatInfo.MarshalTo(&marshalledImageFormatInfo);
             Interop.ImageFormatProperties2 marshalledImageFormatProperties;
             commandResult = commandDelegate(this.handle, &marshalledImageFormatInfo, &marshalledImageFormatProperties);
             if (SharpVkException.IsError(commandResult))
             {
                 throw SharpVkException.Create(commandResult);
             }
             result = ImageFormatProperties2.MarshalFrom(&marshalledImageFormatProperties);
             return(result);
         }
         finally
         {
             Interop.HeapUtil.FreeLog();
         }
     }
 }