{-# LINE 1 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE Strict #-}
{-# LANGUAGE TypeFamilies #-}
module Graphics.Vulkan.Types.Struct.Memory
(VkMemoryAllocateFlagsInfo, VkMemoryAllocateFlagsInfoKHR,
VkMemoryAllocateInfo, VkMemoryBarrier,
VkMemoryDedicatedAllocateInfo, VkMemoryDedicatedAllocateInfoKHR,
VkMemoryDedicatedRequirements, VkMemoryDedicatedRequirementsKHR,
VkMemoryFdPropertiesKHR, VkMemoryGetFdInfoKHR, VkMemoryHeap,
VkMemoryHostPointerPropertiesEXT,
VkMemoryOpaqueCaptureAddressAllocateInfo,
VkMemoryOpaqueCaptureAddressAllocateInfoKHR,
VkMemoryPriorityAllocateInfoEXT, VkMemoryRequirements,
VkMemoryRequirements2, VkMemoryRequirements2KHR, VkMemoryType)
where
import Graphics.Vulkan.Marshal
import Graphics.Vulkan.Marshal.Internal
import Graphics.Vulkan.Types.BaseTypes (VkBool32, VkDeviceSize)
import Graphics.Vulkan.Types.Enum.AccessFlags (VkAccessFlags)
import Graphics.Vulkan.Types.Enum.External (VkExternalMemoryHandleTypeFlagBits)
import Graphics.Vulkan.Types.Enum.Memory (VkMemoryAllocateFlags,
VkMemoryHeapFlags,
VkMemoryPropertyFlags)
import Graphics.Vulkan.Types.Enum.StructureType (VkStructureType)
import Graphics.Vulkan.Types.Handles (VkBuffer, VkDeviceMemory,
VkImage)
type VkMemoryAllocateFlagsInfo =
VkStruct VkMemoryAllocateFlagsInfo'
data VkMemoryAllocateFlagsInfo'
instance VulkanMarshal VkMemoryAllocateFlagsInfo where
type StructRep VkMemoryAllocateFlagsInfo =
'StructMeta "VkMemoryAllocateFlagsInfo" VkMemoryAllocateFlagsInfo
(24)
{-# LINE 49 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
8
{-# LINE 50 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
'[('FieldMeta "sType" VkStructureType 'False
(0)
{-# LINE 52 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True),
('FieldMeta "pNext" (Ptr Void) 'False
(8)
{-# LINE 57 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True),
('FieldMeta "flags" VkMemoryAllocateFlags 'True
(16)
{-# LINE 62 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True),
('FieldMeta "deviceMask" Word32 'False
(20)
{-# LINE 67 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True)]
'False
'False
'[VkMemoryAllocateInfo]
type VkMemoryAllocateFlagsInfoKHR = VkMemoryAllocateFlagsInfo
type VkMemoryAllocateInfo = VkStruct VkMemoryAllocateInfo'
data VkMemoryAllocateInfo'
instance VulkanMarshal VkMemoryAllocateInfo where
type StructRep VkMemoryAllocateInfo =
'StructMeta "VkMemoryAllocateInfo" VkMemoryAllocateInfo
(32)
{-# LINE 93 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
8
{-# LINE 94 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
'[('FieldMeta "sType" VkStructureType 'False
(0)
{-# LINE 96 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True),
('FieldMeta "pNext" (Ptr Void) 'False
(8)
{-# LINE 101 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True),
('FieldMeta "allocationSize" VkDeviceSize 'False
(16)
{-# LINE 106 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True),
('FieldMeta "memoryTypeIndex" Word32 'False
(24)
{-# LINE 111 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True)]
'False
'False
'[]
type VkMemoryBarrier = VkStruct VkMemoryBarrier'
data VkMemoryBarrier'
instance VulkanMarshal VkMemoryBarrier where
type StructRep VkMemoryBarrier =
'StructMeta "VkMemoryBarrier" VkMemoryBarrier
(24)
{-# LINE 134 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
8
{-# LINE 135 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
'[('FieldMeta "sType" VkStructureType 'False
(0)
{-# LINE 137 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True),
('FieldMeta "pNext" (Ptr Void) 'False
(8)
{-# LINE 142 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True),
('FieldMeta "srcAccessMask" VkAccessFlags 'True
(16)
{-# LINE 147 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True),
('FieldMeta "dstAccessMask" VkAccessFlags 'True
(20)
{-# LINE 152 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True)]
'False
'False
'[]
type VkMemoryDedicatedAllocateInfo =
VkStruct VkMemoryDedicatedAllocateInfo'
data VkMemoryDedicatedAllocateInfo'
instance VulkanMarshal VkMemoryDedicatedAllocateInfo where
type StructRep VkMemoryDedicatedAllocateInfo =
'StructMeta "VkMemoryDedicatedAllocateInfo"
VkMemoryDedicatedAllocateInfo
(32)
{-# LINE 177 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
8
{-# LINE 178 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
'[('FieldMeta "sType" VkStructureType 'False
(0)
{-# LINE 180 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True),
('FieldMeta "pNext" (Ptr Void) 'False
(8)
{-# LINE 185 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True),
('FieldMeta "image" VkImage 'True
(16)
{-# LINE 190 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True),
('FieldMeta "buffer" VkBuffer 'True
(24)
{-# LINE 195 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True)]
'False
'False
'[VkMemoryAllocateInfo]
type VkMemoryDedicatedAllocateInfoKHR =
VkMemoryDedicatedAllocateInfo
type VkMemoryDedicatedRequirements =
VkStruct VkMemoryDedicatedRequirements'
data VkMemoryDedicatedRequirements'
instance VulkanMarshal VkMemoryDedicatedRequirements where
type StructRep VkMemoryDedicatedRequirements =
'StructMeta "VkMemoryDedicatedRequirements"
VkMemoryDedicatedRequirements
(24)
{-# LINE 224 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
8
{-# LINE 225 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
'[('FieldMeta "sType" VkStructureType 'False
(0)
{-# LINE 227 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True),
('FieldMeta "pNext" (Ptr Void) 'False
(8)
{-# LINE 232 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True),
('FieldMeta "prefersDedicatedAllocation" VkBool32 'False
(16)
{-# LINE 237 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True),
('FieldMeta "requiresDedicatedAllocation" VkBool32 'False
(20)
{-# LINE 242 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True)]
'False
'True
'[VkMemoryRequirements2]
type VkMemoryDedicatedRequirementsKHR =
VkMemoryDedicatedRequirements
type VkMemoryFdPropertiesKHR = VkStruct VkMemoryFdPropertiesKHR'
data VkMemoryFdPropertiesKHR'
instance VulkanMarshal VkMemoryFdPropertiesKHR where
type StructRep VkMemoryFdPropertiesKHR =
'StructMeta "VkMemoryFdPropertiesKHR" VkMemoryFdPropertiesKHR
(24)
{-# LINE 268 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
8
{-# LINE 269 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
'[('FieldMeta "sType" VkStructureType 'False
(0)
{-# LINE 271 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True),
('FieldMeta "pNext" (Ptr Void) 'False
(8)
{-# LINE 276 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True),
('FieldMeta "memoryTypeBits" Word32 'False
(16)
{-# LINE 281 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True)]
'False
'True
'[]
type VkMemoryGetFdInfoKHR = VkStruct VkMemoryGetFdInfoKHR'
data VkMemoryGetFdInfoKHR'
instance VulkanMarshal VkMemoryGetFdInfoKHR where
type StructRep VkMemoryGetFdInfoKHR =
'StructMeta "VkMemoryGetFdInfoKHR" VkMemoryGetFdInfoKHR
(32)
{-# LINE 304 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
8
{-# LINE 305 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
'[('FieldMeta "sType" VkStructureType 'False
(0)
{-# LINE 307 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True),
('FieldMeta "pNext" (Ptr Void) 'False
(8)
{-# LINE 312 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True),
('FieldMeta "memory" VkDeviceMemory 'False
(16)
{-# LINE 317 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True),
('FieldMeta "handleType" VkExternalMemoryHandleTypeFlagBits 'False
(24)
{-# LINE 322 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True)]
'False
'False
'[]
type VkMemoryHeap = VkStruct VkMemoryHeap'
data VkMemoryHeap'
instance VulkanMarshal VkMemoryHeap where
type StructRep VkMemoryHeap =
'StructMeta "VkMemoryHeap" VkMemoryHeap
(16)
{-# LINE 343 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
8
{-# LINE 344 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
'[('FieldMeta "size" VkDeviceSize 'False
(0)
{-# LINE 346 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True),
('FieldMeta "flags" VkMemoryHeapFlags 'True
(8)
{-# LINE 351 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True)]
'False
'True
'[]
type VkMemoryHostPointerPropertiesEXT =
VkStruct VkMemoryHostPointerPropertiesEXT'
data VkMemoryHostPointerPropertiesEXT'
instance VulkanMarshal VkMemoryHostPointerPropertiesEXT where
type StructRep VkMemoryHostPointerPropertiesEXT =
'StructMeta "VkMemoryHostPointerPropertiesEXT"
VkMemoryHostPointerPropertiesEXT
(24)
{-# LINE 375 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
8
{-# LINE 376 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
'[('FieldMeta "sType" VkStructureType 'False
(0)
{-# LINE 378 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True),
('FieldMeta "pNext" (Ptr Void) 'False
(8)
{-# LINE 383 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True),
('FieldMeta "memoryTypeBits" Word32 'False
(16)
{-# LINE 388 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True)]
'False
'True
'[]
type VkMemoryOpaqueCaptureAddressAllocateInfo =
VkStruct VkMemoryOpaqueCaptureAddressAllocateInfo'
data VkMemoryOpaqueCaptureAddressAllocateInfo'
instance VulkanMarshal VkMemoryOpaqueCaptureAddressAllocateInfo
where
type StructRep VkMemoryOpaqueCaptureAddressAllocateInfo =
'StructMeta "VkMemoryOpaqueCaptureAddressAllocateInfo"
VkMemoryOpaqueCaptureAddressAllocateInfo
(24)
{-# LINE 413 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
8
{-# LINE 414 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
'[('FieldMeta "sType" VkStructureType 'False
(0)
{-# LINE 416 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True),
('FieldMeta "pNext" (Ptr Void) 'False
(8)
{-# LINE 421 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True),
('FieldMeta "opaqueCaptureAddress" Word64 'False
(16)
{-# LINE 426 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True)]
'False
'False
'[VkMemoryAllocateInfo]
type VkMemoryOpaqueCaptureAddressAllocateInfoKHR =
VkMemoryOpaqueCaptureAddressAllocateInfo
type VkMemoryPriorityAllocateInfoEXT =
VkStruct VkMemoryPriorityAllocateInfoEXT'
data VkMemoryPriorityAllocateInfoEXT'
instance VulkanMarshal VkMemoryPriorityAllocateInfoEXT where
type StructRep VkMemoryPriorityAllocateInfoEXT =
'StructMeta "VkMemoryPriorityAllocateInfoEXT"
VkMemoryPriorityAllocateInfoEXT
(24)
{-# LINE 454 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
8
{-# LINE 455 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
'[('FieldMeta "sType" VkStructureType 'False
(0)
{-# LINE 457 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True),
('FieldMeta "pNext" (Ptr Void) 'False
(8)
{-# LINE 462 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True),
('FieldMeta "priority" (
Float
{-# LINE 467 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
) 'False
(16)
{-# LINE 469 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True)]
'False
'False
'[VkMemoryAllocateInfo]
type VkMemoryRequirements = VkStruct VkMemoryRequirements'
data VkMemoryRequirements'
instance VulkanMarshal VkMemoryRequirements where
type StructRep VkMemoryRequirements =
'StructMeta "VkMemoryRequirements" VkMemoryRequirements
(24)
{-# LINE 491 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
8
{-# LINE 492 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
'[('FieldMeta "size" VkDeviceSize 'False
(0)
{-# LINE 494 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True),
('FieldMeta "alignment" VkDeviceSize 'False
(8)
{-# LINE 499 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True),
('FieldMeta "memoryTypeBits" Word32 'False
(16)
{-# LINE 504 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True)]
'False
'True
'[]
type VkMemoryRequirements2 = VkStruct VkMemoryRequirements2'
data VkMemoryRequirements2'
instance VulkanMarshal VkMemoryRequirements2 where
type StructRep VkMemoryRequirements2 =
'StructMeta "VkMemoryRequirements2" VkMemoryRequirements2
(40)
{-# LINE 526 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
8
{-# LINE 527 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
'[('FieldMeta "sType" VkStructureType 'False
(0)
{-# LINE 529 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True),
('FieldMeta "pNext" (Ptr Void) 'False
(8)
{-# LINE 534 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True),
('FieldMeta "memoryRequirements" VkMemoryRequirements 'False
(16)
{-# LINE 539 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True)]
'False
'True
'[]
type VkMemoryRequirements2KHR = VkMemoryRequirements2
type VkMemoryType = VkStruct VkMemoryType'
data VkMemoryType'
instance VulkanMarshal VkMemoryType where
type StructRep VkMemoryType =
'StructMeta "VkMemoryType" VkMemoryType
(8)
{-# LINE 563 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
4
{-# LINE 564 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
'[('FieldMeta "propertyFlags" VkMemoryPropertyFlags 'True
(0)
{-# LINE 566 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True),
('FieldMeta "heapIndex" Word32 'False
(4)
{-# LINE 571 "src-gen/Graphics/Vulkan/Types/Struct/Memory.hsc" #-}
1
'True
'True)]
'False
'True
'[]