Exemple #1
0
        internal static unsafe PhysicalDeviceProperties2 MarshalFrom(Interop.PhysicalDeviceProperties2 *value)
        {
            PhysicalDeviceProperties2 result = new PhysicalDeviceProperties2();

            result.Properties = PhysicalDeviceProperties.MarshalFrom(&value->Properties);
            return(result);
        }
Exemple #2
0
 /// <summary>
 /// Returns properties of a physical device.
 /// </summary>
 public PhysicalDeviceProperties GetProperties()
 {
     unsafe
     {
         try
         {
             PhysicalDeviceProperties         result = default(PhysicalDeviceProperties);
             Interop.PhysicalDeviceProperties marshalledProperties;
             Interop.Commands.vkGetPhysicalDeviceProperties(this.handle, &marshalledProperties);
             result = PhysicalDeviceProperties.MarshalFrom(&marshalledProperties);
             return(result);
         }
         finally
         {
             Interop.HeapUtil.FreeLog();
         }
     }
 }