Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        internal static unsafe PhysicalDeviceProperties2 MarshalFrom(SharpVk.Interop.PhysicalDeviceProperties2 *pointer)
        {
            PhysicalDeviceProperties2 result = default(PhysicalDeviceProperties2);

            result.Properties = SharpVk.PhysicalDeviceProperties.MarshalFrom(&pointer->Properties);
            return(result);
        }
Exemple #2
0
        internal static unsafe PhysicalDeviceProperties2 MarshalFrom(Interop.PhysicalDeviceProperties2 *value)
        {
            PhysicalDeviceProperties2 result = new PhysicalDeviceProperties2();

            result.Properties = PhysicalDeviceProperties.MarshalFrom(&value->Properties);
            return(result);
        }
Exemple #3
0
 /// <summary>
 /// Returns properties of a physical device.
 /// </summary>
 public PhysicalDeviceProperties2 GetProperties2()
 {
     unsafe
     {
         try
         {
             var commandDelegate = this.commandCache.GetCommandDelegate <Interop.vkGetPhysicalDeviceProperties2KHR>("vkGetPhysicalDeviceProperties2KHR", "instance");
             PhysicalDeviceProperties2         result = default(PhysicalDeviceProperties2);
             Interop.PhysicalDeviceProperties2 marshalledProperties;
             commandDelegate(this.handle, &marshalledProperties);
             result = PhysicalDeviceProperties2.MarshalFrom(&marshalledProperties);
             return(result);
         }
         finally
         {
             Interop.HeapUtil.FreeLog();
         }
     }
 }