{-# LINE 1 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE Strict #-}
{-# LANGUAGE TypeFamilies #-}
module Graphics.Vulkan.Types.Struct.Sparse
(VkSparseBufferMemoryBindInfo, VkSparseImageFormatProperties,
VkSparseImageFormatProperties2, VkSparseImageFormatProperties2KHR,
VkSparseImageMemoryBind, VkSparseImageMemoryBindInfo,
VkSparseImageMemoryRequirements, VkSparseImageMemoryRequirements2,
VkSparseImageMemoryRequirements2KHR,
VkSparseImageOpaqueMemoryBindInfo, VkSparseMemoryBind)
where
import Graphics.Vulkan.Marshal
import Graphics.Vulkan.Marshal.Internal
import Graphics.Vulkan.Types.BaseTypes (VkDeviceSize)
import Graphics.Vulkan.Types.Enum.Image (VkImageAspectFlags)
import Graphics.Vulkan.Types.Enum.Sparse (VkSparseImageFormatFlags,
VkSparseMemoryBindFlags)
import Graphics.Vulkan.Types.Enum.StructureType (VkStructureType)
import Graphics.Vulkan.Types.Handles (VkBuffer, VkDeviceMemory,
VkImage)
import Graphics.Vulkan.Types.Struct.Extent (VkExtent3D)
import {-# SOURCE #-} Graphics.Vulkan.Types.Struct.Image (VkImageSubresource)
import Graphics.Vulkan.Types.Struct.Offset (VkOffset3D)
type VkSparseBufferMemoryBindInfo =
VkStruct VkSparseBufferMemoryBindInfo'
data VkSparseBufferMemoryBindInfo'
instance VulkanMarshal VkSparseBufferMemoryBindInfo where
type StructRep VkSparseBufferMemoryBindInfo =
'StructMeta "VkSparseBufferMemoryBindInfo"
VkSparseBufferMemoryBindInfo
(24)
{-# LINE 46 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
8
{-# LINE 47 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
'[('FieldMeta "buffer" VkBuffer 'False
(0)
{-# LINE 49 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True),
('FieldMeta "bindCount" Word32 'False
(8)
{-# LINE 54 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True),
('FieldMeta "pBinds" (Ptr VkSparseMemoryBind) 'False
(16)
{-# LINE 59 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True)]
'False
'False
'[]
type VkSparseImageFormatProperties =
VkStruct VkSparseImageFormatProperties'
data VkSparseImageFormatProperties'
instance VulkanMarshal VkSparseImageFormatProperties where
type StructRep VkSparseImageFormatProperties =
'StructMeta "VkSparseImageFormatProperties"
VkSparseImageFormatProperties
(20)
{-# LINE 83 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
4
{-# LINE 84 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
'[('FieldMeta "aspectMask" VkImageAspectFlags 'True
(0)
{-# LINE 86 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True),
('FieldMeta "imageGranularity" VkExtent3D 'False
(4)
{-# LINE 91 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True),
('FieldMeta "flags" VkSparseImageFormatFlags 'True
(16)
{-# LINE 96 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True)]
'False
'True
'[]
type VkSparseImageFormatProperties2 =
VkStruct VkSparseImageFormatProperties2'
data VkSparseImageFormatProperties2'
instance VulkanMarshal VkSparseImageFormatProperties2 where
type StructRep VkSparseImageFormatProperties2 =
'StructMeta "VkSparseImageFormatProperties2"
VkSparseImageFormatProperties2
(40)
{-# LINE 120 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
8
{-# LINE 121 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
'[('FieldMeta "sType" VkStructureType 'False
(0)
{-# LINE 123 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True),
('FieldMeta "pNext" (Ptr Void) 'False
(8)
{-# LINE 128 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True),
('FieldMeta "properties" VkSparseImageFormatProperties 'False
(16)
{-# LINE 133 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True)]
'False
'True
'[]
type VkSparseImageFormatProperties2KHR =
VkSparseImageFormatProperties2
type VkSparseImageMemoryBind = VkStruct VkSparseImageMemoryBind'
data VkSparseImageMemoryBind'
instance VulkanMarshal VkSparseImageMemoryBind where
type StructRep VkSparseImageMemoryBind =
'StructMeta "VkSparseImageMemoryBind" VkSparseImageMemoryBind
(64)
{-# LINE 162 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
8
{-# LINE 163 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
'[('FieldMeta "subresource" VkImageSubresource 'False
(0)
{-# LINE 165 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True),
('FieldMeta "offset" VkOffset3D 'False
(12)
{-# LINE 170 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True),
('FieldMeta "extent" VkExtent3D 'False
(24)
{-# LINE 175 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True),
('FieldMeta "memory" VkDeviceMemory 'True
(40)
{-# LINE 180 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True),
('FieldMeta "memoryOffset" VkDeviceSize 'False
(48)
{-# LINE 185 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True),
('FieldMeta "flags" VkSparseMemoryBindFlags 'True
(56)
{-# LINE 190 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True)]
'False
'False
'[]
type VkSparseImageMemoryBindInfo =
VkStruct VkSparseImageMemoryBindInfo'
data VkSparseImageMemoryBindInfo'
instance VulkanMarshal VkSparseImageMemoryBindInfo where
type StructRep VkSparseImageMemoryBindInfo =
'StructMeta "VkSparseImageMemoryBindInfo"
VkSparseImageMemoryBindInfo
(24)
{-# LINE 214 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
8
{-# LINE 215 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
'[('FieldMeta "image" VkImage 'False
(0)
{-# LINE 217 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True),
('FieldMeta "bindCount" Word32 'False
(8)
{-# LINE 222 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True),
('FieldMeta "pBinds" (Ptr VkSparseImageMemoryBind) 'False
(16)
{-# LINE 227 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True)]
'False
'False
'[]
type VkSparseImageMemoryRequirements =
VkStruct VkSparseImageMemoryRequirements'
data VkSparseImageMemoryRequirements'
instance VulkanMarshal VkSparseImageMemoryRequirements where
type StructRep VkSparseImageMemoryRequirements =
'StructMeta "VkSparseImageMemoryRequirements"
VkSparseImageMemoryRequirements
(48)
{-# LINE 253 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
8
{-# LINE 254 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
'[('FieldMeta "formatProperties" VkSparseImageFormatProperties
'False
(0)
{-# LINE 257 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True),
('FieldMeta "imageMipTailFirstLod" Word32 'False
(20)
{-# LINE 262 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True),
('FieldMeta "imageMipTailSize" VkDeviceSize 'False
(24)
{-# LINE 267 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True),
('FieldMeta "imageMipTailOffset" VkDeviceSize 'False
(32)
{-# LINE 272 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True),
('FieldMeta "imageMipTailStride" VkDeviceSize 'False
(40)
{-# LINE 277 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True)]
'False
'True
'[]
type VkSparseImageMemoryRequirements2 =
VkStruct VkSparseImageMemoryRequirements2'
data VkSparseImageMemoryRequirements2'
instance VulkanMarshal VkSparseImageMemoryRequirements2 where
type StructRep VkSparseImageMemoryRequirements2 =
'StructMeta "VkSparseImageMemoryRequirements2"
VkSparseImageMemoryRequirements2
(64)
{-# LINE 301 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
8
{-# LINE 302 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
'[('FieldMeta "sType" VkStructureType 'False
(0)
{-# LINE 304 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True),
('FieldMeta "pNext" (Ptr Void) 'False
(8)
{-# LINE 309 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True),
('FieldMeta "memoryRequirements" VkSparseImageMemoryRequirements
'False
(16)
{-# LINE 315 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True)]
'False
'True
'[]
type VkSparseImageMemoryRequirements2KHR =
VkSparseImageMemoryRequirements2
type VkSparseImageOpaqueMemoryBindInfo =
VkStruct VkSparseImageOpaqueMemoryBindInfo'
data VkSparseImageOpaqueMemoryBindInfo'
instance VulkanMarshal VkSparseImageOpaqueMemoryBindInfo where
type StructRep VkSparseImageOpaqueMemoryBindInfo =
'StructMeta "VkSparseImageOpaqueMemoryBindInfo"
VkSparseImageOpaqueMemoryBindInfo
(24)
{-# LINE 343 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
8
{-# LINE 344 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
'[('FieldMeta "image" VkImage 'False
(0)
{-# LINE 346 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True),
('FieldMeta "bindCount" Word32 'False
(8)
{-# LINE 351 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True),
('FieldMeta "pBinds" (Ptr VkSparseMemoryBind) 'False
(16)
{-# LINE 356 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True)]
'False
'False
'[]
type VkSparseMemoryBind = VkStruct VkSparseMemoryBind'
data VkSparseMemoryBind'
instance VulkanMarshal VkSparseMemoryBind where
type StructRep VkSparseMemoryBind =
'StructMeta "VkSparseMemoryBind" VkSparseMemoryBind
(40)
{-# LINE 380 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
8
{-# LINE 381 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
'[('FieldMeta "resourceOffset" VkDeviceSize 'False
(0)
{-# LINE 383 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True),
('FieldMeta "size" VkDeviceSize 'False
(8)
{-# LINE 388 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True),
('FieldMeta "memory" VkDeviceMemory 'True
(16)
{-# LINE 393 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True),
('FieldMeta "memoryOffset" VkDeviceSize 'False
(24)
{-# LINE 398 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True),
('FieldMeta "flags" VkSparseMemoryBindFlags 'True
(32)
{-# LINE 403 "src-gen/Graphics/Vulkan/Types/Struct/Sparse.hsc" #-}
1
'True
'True)]
'False
'False
'[]