예제 #1
0
        internal static unsafe PhysicalDeviceMemoryProperties2 MarshalFrom(Interop.PhysicalDeviceMemoryProperties2 *value)
        {
            PhysicalDeviceMemoryProperties2 result = new PhysicalDeviceMemoryProperties2();

            result.MemoryProperties = PhysicalDeviceMemoryProperties.MarshalFrom(&value->MemoryProperties);
            return(result);
        }
        /// <summary>
        ///
        /// </summary>
        internal static unsafe PhysicalDeviceMemoryProperties2 MarshalFrom(SharpVk.Interop.PhysicalDeviceMemoryProperties2 *pointer)
        {
            PhysicalDeviceMemoryProperties2 result = default(PhysicalDeviceMemoryProperties2);

            result.MemoryProperties = SharpVk.PhysicalDeviceMemoryProperties.MarshalFrom(&pointer->MemoryProperties);
            return(result);
        }
예제 #3
0
 /// <summary>
 /// Reports memory information for the specified physical device.
 /// </summary>
 public PhysicalDeviceMemoryProperties2 GetMemoryProperties2()
 {
     unsafe
     {
         try
         {
             var commandDelegate = this.commandCache.GetCommandDelegate <Interop.vkGetPhysicalDeviceMemoryProperties2KHR>("vkGetPhysicalDeviceMemoryProperties2KHR", "instance");
             PhysicalDeviceMemoryProperties2         result = default(PhysicalDeviceMemoryProperties2);
             Interop.PhysicalDeviceMemoryProperties2 marshalledMemoryProperties;
             commandDelegate(this.handle, &marshalledMemoryProperties);
             result = PhysicalDeviceMemoryProperties2.MarshalFrom(&marshalledMemoryProperties);
             return(result);
         }
         finally
         {
             Interop.HeapUtil.FreeLog();
         }
     }
 }