namespace Brutal.VulkanApi { /// /// VkDeviceMemory - Opaque handle to a device memory object /// /// /// /// A Vulkan device operates on data in device memory via memory objects that /// are represented in the API by a VkDeviceMemory handle: /// /// /// // Provided by VK_VERSION_1_0 /// VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDeviceMemory) /// /// public readonly unsafe struct VkDeviceMemory : IVulkanHandle { /// public VkObjectType VkObjectType => VkObjectType.DeviceMemory; /// public nint VkHandle { get; } /// Construct from an existing pointer public VkDeviceMemory(nint handle) { VkHandle = handle; } /// public bool IsNull() { return VkHandle == 0; } public static VkDeviceMemory NullHandle = new(); } }