module Graphics.Vulkan.Types.Struct.Command
(VkCommandBufferAllocateInfo(..), VkCommandBufferBeginInfo(..),
VkCommandBufferInheritanceInfo(..), VkCommandPoolCreateInfo(..))
where
import Foreign.Storable (Storable (..))
import GHC.Base (Addr#, ByteArray#,
byteArrayContents#,
plusAddr#)
import Graphics.Vulkan.Marshal
import Graphics.Vulkan.Marshal.Internal
import Graphics.Vulkan.Types.BaseTypes (VkBool32)
import Graphics.Vulkan.Types.Enum.Command (VkCommandBufferLevel, VkCommandBufferUsageFlags,
VkCommandPoolCreateFlags)
import Graphics.Vulkan.Types.Enum.Query (VkQueryControlFlags, VkQueryPipelineStatisticFlags)
import Graphics.Vulkan.Types.Enum.StructureType (VkStructureType)
import Graphics.Vulkan.Types.Handles (VkCommandPool,
VkFramebuffer,
VkRenderPass)
import System.IO.Unsafe (unsafeDupablePerformIO)
data VkCommandBufferAllocateInfo = VkCommandBufferAllocateInfo# Addr#
ByteArray#
instance Eq VkCommandBufferAllocateInfo where
(VkCommandBufferAllocateInfo# a _) ==
x@(VkCommandBufferAllocateInfo# b _)
= EQ == cmpBytes# (sizeOf x) a b
instance Ord VkCommandBufferAllocateInfo where
(VkCommandBufferAllocateInfo# a _) `compare`
x@(VkCommandBufferAllocateInfo# b _) = cmpBytes# (sizeOf x) a b
instance Storable VkCommandBufferAllocateInfo where
sizeOf ~_ = (32)
alignment ~_ = (8)
peek = peekVkData#
poke = pokeVkData#
instance VulkanMarshalPrim VkCommandBufferAllocateInfo where
unsafeAddr (VkCommandBufferAllocateInfo# a _) = a
unsafeByteArray (VkCommandBufferAllocateInfo# _ b) = b
unsafeFromByteArrayOffset off b
= VkCommandBufferAllocateInfo#
(plusAddr# (byteArrayContents# b) off)
b
instance VulkanMarshal VkCommandBufferAllocateInfo where
type StructFields VkCommandBufferAllocateInfo =
'["sType", "pNext", "commandPool", "level", "commandBufferCount"]
type CUnionType VkCommandBufferAllocateInfo = 'False
type ReturnedOnly VkCommandBufferAllocateInfo = 'False
type StructExtends VkCommandBufferAllocateInfo = '[]
instance
HasField "sType" VkCommandBufferAllocateInfo where
type FieldType "sType" VkCommandBufferAllocateInfo =
VkStructureType
type FieldOptional "sType" VkCommandBufferAllocateInfo = 'False
type FieldOffset "sType" VkCommandBufferAllocateInfo =
(0)
type FieldIsArray "sType" VkCommandBufferAllocateInfo = 'False
fieldOptional = False
fieldOffset
= (0)
instance
CanReadField "sType" VkCommandBufferAllocateInfo where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (0))
readField p
= peekByteOff p (0)
instance
CanWriteField "sType" VkCommandBufferAllocateInfo where
writeField p
= pokeByteOff p (0)
instance
HasField "pNext" VkCommandBufferAllocateInfo where
type FieldType "pNext" VkCommandBufferAllocateInfo = Ptr Void
type FieldOptional "pNext" VkCommandBufferAllocateInfo = 'False
type FieldOffset "pNext" VkCommandBufferAllocateInfo =
(8)
type FieldIsArray "pNext" VkCommandBufferAllocateInfo = 'False
fieldOptional = False
fieldOffset
= (8)
instance
CanReadField "pNext" VkCommandBufferAllocateInfo where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (8))
readField p
= peekByteOff p (8)
instance
CanWriteField "pNext" VkCommandBufferAllocateInfo where
writeField p
= pokeByteOff p (8)
instance
HasField "commandPool" VkCommandBufferAllocateInfo where
type FieldType "commandPool" VkCommandBufferAllocateInfo =
VkCommandPool
type FieldOptional "commandPool" VkCommandBufferAllocateInfo =
'False
type FieldOffset "commandPool" VkCommandBufferAllocateInfo =
(16)
type FieldIsArray "commandPool" VkCommandBufferAllocateInfo =
'False
fieldOptional = False
fieldOffset
= (16)
instance
CanReadField "commandPool" VkCommandBufferAllocateInfo where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (16))
readField p
= peekByteOff p (16)
instance
CanWriteField "commandPool" VkCommandBufferAllocateInfo where
writeField p
= pokeByteOff p (16)
instance
HasField "level" VkCommandBufferAllocateInfo where
type FieldType "level" VkCommandBufferAllocateInfo =
VkCommandBufferLevel
type FieldOptional "level" VkCommandBufferAllocateInfo = 'False
type FieldOffset "level" VkCommandBufferAllocateInfo =
(24)
type FieldIsArray "level" VkCommandBufferAllocateInfo = 'False
fieldOptional = False
fieldOffset
= (24)
instance
CanReadField "level" VkCommandBufferAllocateInfo where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (24))
readField p
= peekByteOff p (24)
instance
CanWriteField "level" VkCommandBufferAllocateInfo where
writeField p
= pokeByteOff p (24)
instance
HasField "commandBufferCount" VkCommandBufferAllocateInfo where
type FieldType "commandBufferCount" VkCommandBufferAllocateInfo =
Word32
type FieldOptional "commandBufferCount" VkCommandBufferAllocateInfo
= 'False
type FieldOffset "commandBufferCount" VkCommandBufferAllocateInfo =
(28)
type FieldIsArray "commandBufferCount" VkCommandBufferAllocateInfo
= 'False
fieldOptional = False
fieldOffset
= (28)
instance
CanReadField "commandBufferCount" VkCommandBufferAllocateInfo where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (28))
readField p
= peekByteOff p (28)
instance
CanWriteField "commandBufferCount" VkCommandBufferAllocateInfo
where
writeField p
= pokeByteOff p (28)
instance Show VkCommandBufferAllocateInfo where
showsPrec d x
= showString "VkCommandBufferAllocateInfo {" .
showString "sType = " .
showsPrec d (getField @"sType" x) .
showString ", " .
showString "pNext = " .
showsPrec d (getField @"pNext" x) .
showString ", " .
showString "commandPool = " .
showsPrec d (getField @"commandPool" x) .
showString ", " .
showString "level = " .
showsPrec d (getField @"level" x) .
showString ", " .
showString "commandBufferCount = " .
showsPrec d (getField @"commandBufferCount" x) .
showChar '}'
data VkCommandBufferBeginInfo = VkCommandBufferBeginInfo# Addr#
ByteArray#
instance Eq VkCommandBufferBeginInfo where
(VkCommandBufferBeginInfo# a _) ==
x@(VkCommandBufferBeginInfo# b _) = EQ == cmpBytes# (sizeOf x) a b
instance Ord VkCommandBufferBeginInfo where
(VkCommandBufferBeginInfo# a _) `compare`
x@(VkCommandBufferBeginInfo# b _) = cmpBytes# (sizeOf x) a b
instance Storable VkCommandBufferBeginInfo where
sizeOf ~_ = (32)
alignment ~_ = (8)
peek = peekVkData#
poke = pokeVkData#
instance VulkanMarshalPrim VkCommandBufferBeginInfo where
unsafeAddr (VkCommandBufferBeginInfo# a _) = a
unsafeByteArray (VkCommandBufferBeginInfo# _ b) = b
unsafeFromByteArrayOffset off b
= VkCommandBufferBeginInfo# (plusAddr# (byteArrayContents# b) off)
b
instance VulkanMarshal VkCommandBufferBeginInfo where
type StructFields VkCommandBufferBeginInfo =
'["sType", "pNext", "flags", "pInheritanceInfo"]
type CUnionType VkCommandBufferBeginInfo = 'False
type ReturnedOnly VkCommandBufferBeginInfo = 'False
type StructExtends VkCommandBufferBeginInfo = '[]
instance
HasField "sType" VkCommandBufferBeginInfo where
type FieldType "sType" VkCommandBufferBeginInfo = VkStructureType
type FieldOptional "sType" VkCommandBufferBeginInfo = 'False
type FieldOffset "sType" VkCommandBufferBeginInfo =
(0)
type FieldIsArray "sType" VkCommandBufferBeginInfo = 'False
fieldOptional = False
fieldOffset = (0)
instance
CanReadField "sType" VkCommandBufferBeginInfo where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (0))
readField p
= peekByteOff p (0)
instance
CanWriteField "sType" VkCommandBufferBeginInfo where
writeField p
= pokeByteOff p (0)
instance
HasField "pNext" VkCommandBufferBeginInfo where
type FieldType "pNext" VkCommandBufferBeginInfo = Ptr Void
type FieldOptional "pNext" VkCommandBufferBeginInfo = 'False
type FieldOffset "pNext" VkCommandBufferBeginInfo =
(8)
type FieldIsArray "pNext" VkCommandBufferBeginInfo = 'False
fieldOptional = False
fieldOffset = (8)
instance
CanReadField "pNext" VkCommandBufferBeginInfo where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (8))
readField p
= peekByteOff p (8)
instance
CanWriteField "pNext" VkCommandBufferBeginInfo where
writeField p
= pokeByteOff p (8)
instance
HasField "flags" VkCommandBufferBeginInfo where
type FieldType "flags" VkCommandBufferBeginInfo =
VkCommandBufferUsageFlags
type FieldOptional "flags" VkCommandBufferBeginInfo = 'True
type FieldOffset "flags" VkCommandBufferBeginInfo =
(16)
type FieldIsArray "flags" VkCommandBufferBeginInfo = 'False
fieldOptional = True
fieldOffset = (16)
instance
CanReadField "flags" VkCommandBufferBeginInfo where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (16))
readField p
= peekByteOff p (16)
instance
CanWriteField "flags" VkCommandBufferBeginInfo where
writeField p
= pokeByteOff p (16)
instance
HasField "pInheritanceInfo" VkCommandBufferBeginInfo where
type FieldType "pInheritanceInfo" VkCommandBufferBeginInfo =
Ptr VkCommandBufferInheritanceInfo
type FieldOptional "pInheritanceInfo" VkCommandBufferBeginInfo =
'True
type FieldOffset "pInheritanceInfo" VkCommandBufferBeginInfo =
(24)
type FieldIsArray "pInheritanceInfo" VkCommandBufferBeginInfo =
'False
fieldOptional = True
fieldOffset
= (24)
instance
CanReadField "pInheritanceInfo" VkCommandBufferBeginInfo where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (24))
readField p
= peekByteOff p (24)
instance
CanWriteField "pInheritanceInfo" VkCommandBufferBeginInfo where
writeField p
= pokeByteOff p (24)
instance Show VkCommandBufferBeginInfo where
showsPrec d x
= showString "VkCommandBufferBeginInfo {" .
showString "sType = " .
showsPrec d (getField @"sType" x) .
showString ", " .
showString "pNext = " .
showsPrec d (getField @"pNext" x) .
showString ", " .
showString "flags = " .
showsPrec d (getField @"flags" x) .
showString ", " .
showString "pInheritanceInfo = " .
showsPrec d (getField @"pInheritanceInfo" x) . showChar '}'
data VkCommandBufferInheritanceInfo = VkCommandBufferInheritanceInfo# Addr#
ByteArray#
instance Eq VkCommandBufferInheritanceInfo where
(VkCommandBufferInheritanceInfo# a _) ==
x@(VkCommandBufferInheritanceInfo# b _)
= EQ == cmpBytes# (sizeOf x) a b
instance Ord VkCommandBufferInheritanceInfo where
(VkCommandBufferInheritanceInfo# a _) `compare`
x@(VkCommandBufferInheritanceInfo# b _) = cmpBytes# (sizeOf x) a b
instance Storable VkCommandBufferInheritanceInfo where
sizeOf ~_ = (56)
alignment ~_
= (8)
peek = peekVkData#
poke = pokeVkData#
instance VulkanMarshalPrim VkCommandBufferInheritanceInfo where
unsafeAddr (VkCommandBufferInheritanceInfo# a _) = a
unsafeByteArray (VkCommandBufferInheritanceInfo# _ b) = b
unsafeFromByteArrayOffset off b
= VkCommandBufferInheritanceInfo#
(plusAddr# (byteArrayContents# b) off)
b
instance VulkanMarshal VkCommandBufferInheritanceInfo where
type StructFields VkCommandBufferInheritanceInfo =
'["sType", "pNext", "renderPass", "subpass", "framebuffer",
"occlusionQueryEnable", "queryFlags", "pipelineStatistics"]
type CUnionType VkCommandBufferInheritanceInfo = 'False
type ReturnedOnly VkCommandBufferInheritanceInfo = 'False
type StructExtends VkCommandBufferInheritanceInfo = '[]
instance
HasField "sType" VkCommandBufferInheritanceInfo where
type FieldType "sType" VkCommandBufferInheritanceInfo =
VkStructureType
type FieldOptional "sType" VkCommandBufferInheritanceInfo = 'False
type FieldOffset "sType" VkCommandBufferInheritanceInfo =
(0)
type FieldIsArray "sType" VkCommandBufferInheritanceInfo = 'False
fieldOptional = False
fieldOffset
= (0)
instance
CanReadField "sType" VkCommandBufferInheritanceInfo where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (0))
readField p
= peekByteOff p (0)
instance
CanWriteField "sType" VkCommandBufferInheritanceInfo where
writeField p
= pokeByteOff p (0)
instance
HasField "pNext" VkCommandBufferInheritanceInfo where
type FieldType "pNext" VkCommandBufferInheritanceInfo = Ptr Void
type FieldOptional "pNext" VkCommandBufferInheritanceInfo = 'False
type FieldOffset "pNext" VkCommandBufferInheritanceInfo =
(8)
type FieldIsArray "pNext" VkCommandBufferInheritanceInfo = 'False
fieldOptional = False
fieldOffset
= (8)
instance
CanReadField "pNext" VkCommandBufferInheritanceInfo where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (8))
readField p
= peekByteOff p (8)
instance
CanWriteField "pNext" VkCommandBufferInheritanceInfo where
writeField p
= pokeByteOff p (8)
instance
HasField "renderPass" VkCommandBufferInheritanceInfo where
type FieldType "renderPass" VkCommandBufferInheritanceInfo =
VkRenderPass
type FieldOptional "renderPass" VkCommandBufferInheritanceInfo =
'True
type FieldOffset "renderPass" VkCommandBufferInheritanceInfo =
(16)
type FieldIsArray "renderPass" VkCommandBufferInheritanceInfo =
'False
fieldOptional = True
fieldOffset
= (16)
instance
CanReadField "renderPass" VkCommandBufferInheritanceInfo where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (16))
readField p
= peekByteOff p (16)
instance
CanWriteField "renderPass" VkCommandBufferInheritanceInfo where
writeField p
= pokeByteOff p (16)
instance
HasField "subpass" VkCommandBufferInheritanceInfo where
type FieldType "subpass" VkCommandBufferInheritanceInfo = Word32
type FieldOptional "subpass" VkCommandBufferInheritanceInfo =
'False
type FieldOffset "subpass" VkCommandBufferInheritanceInfo =
(24)
type FieldIsArray "subpass" VkCommandBufferInheritanceInfo = 'False
fieldOptional = False
fieldOffset
= (24)
instance
CanReadField "subpass" VkCommandBufferInheritanceInfo where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (24))
readField p
= peekByteOff p (24)
instance
CanWriteField "subpass" VkCommandBufferInheritanceInfo where
writeField p
= pokeByteOff p (24)
instance
HasField "framebuffer" VkCommandBufferInheritanceInfo where
type FieldType "framebuffer" VkCommandBufferInheritanceInfo =
VkFramebuffer
type FieldOptional "framebuffer" VkCommandBufferInheritanceInfo =
'True
type FieldOffset "framebuffer" VkCommandBufferInheritanceInfo =
(32)
type FieldIsArray "framebuffer" VkCommandBufferInheritanceInfo =
'False
fieldOptional = True
fieldOffset
= (32)
instance
CanReadField "framebuffer" VkCommandBufferInheritanceInfo where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (32))
readField p
= peekByteOff p (32)
instance
CanWriteField "framebuffer" VkCommandBufferInheritanceInfo where
writeField p
= pokeByteOff p (32)
instance
HasField "occlusionQueryEnable" VkCommandBufferInheritanceInfo
where
type FieldType "occlusionQueryEnable"
VkCommandBufferInheritanceInfo
= VkBool32
type FieldOptional "occlusionQueryEnable"
VkCommandBufferInheritanceInfo
= 'False
type FieldOffset "occlusionQueryEnable"
VkCommandBufferInheritanceInfo
=
(40)
type FieldIsArray "occlusionQueryEnable"
VkCommandBufferInheritanceInfo
= 'False
fieldOptional = False
fieldOffset
= (40)
instance
CanReadField "occlusionQueryEnable" VkCommandBufferInheritanceInfo
where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (40))
readField p
= peekByteOff p (40)
instance
CanWriteField "occlusionQueryEnable" VkCommandBufferInheritanceInfo
where
writeField p
= pokeByteOff p (40)
instance
HasField "queryFlags" VkCommandBufferInheritanceInfo where
type FieldType "queryFlags" VkCommandBufferInheritanceInfo =
VkQueryControlFlags
type FieldOptional "queryFlags" VkCommandBufferInheritanceInfo =
'True
type FieldOffset "queryFlags" VkCommandBufferInheritanceInfo =
(44)
type FieldIsArray "queryFlags" VkCommandBufferInheritanceInfo =
'False
fieldOptional = True
fieldOffset
= (44)
instance
CanReadField "queryFlags" VkCommandBufferInheritanceInfo where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (44))
readField p
= peekByteOff p (44)
instance
CanWriteField "queryFlags" VkCommandBufferInheritanceInfo where
writeField p
= pokeByteOff p (44)
instance
HasField "pipelineStatistics" VkCommandBufferInheritanceInfo where
type FieldType "pipelineStatistics" VkCommandBufferInheritanceInfo
= VkQueryPipelineStatisticFlags
type FieldOptional "pipelineStatistics"
VkCommandBufferInheritanceInfo
= 'True
type FieldOffset "pipelineStatistics"
VkCommandBufferInheritanceInfo
=
(48)
type FieldIsArray "pipelineStatistics"
VkCommandBufferInheritanceInfo
= 'False
fieldOptional = True
fieldOffset
= (48)
instance
CanReadField "pipelineStatistics" VkCommandBufferInheritanceInfo
where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (48))
readField p
= peekByteOff p (48)
instance
CanWriteField "pipelineStatistics" VkCommandBufferInheritanceInfo
where
writeField p
= pokeByteOff p (48)
instance Show VkCommandBufferInheritanceInfo where
showsPrec d x
= showString "VkCommandBufferInheritanceInfo {" .
showString "sType = " .
showsPrec d (getField @"sType" x) .
showString ", " .
showString "pNext = " .
showsPrec d (getField @"pNext" x) .
showString ", " .
showString "renderPass = " .
showsPrec d (getField @"renderPass" x) .
showString ", " .
showString "subpass = " .
showsPrec d (getField @"subpass" x) .
showString ", " .
showString "framebuffer = " .
showsPrec d (getField @"framebuffer" x) .
showString ", " .
showString "occlusionQueryEnable = " .
showsPrec d (getField @"occlusionQueryEnable" x) .
showString ", " .
showString "queryFlags = " .
showsPrec d (getField @"queryFlags" x) .
showString ", " .
showString "pipelineStatistics = " .
showsPrec d
(getField @"pipelineStatistics" x)
. showChar '}'
data VkCommandPoolCreateInfo = VkCommandPoolCreateInfo# Addr#
ByteArray#
instance Eq VkCommandPoolCreateInfo where
(VkCommandPoolCreateInfo# a _) == x@(VkCommandPoolCreateInfo# b _)
= EQ == cmpBytes# (sizeOf x) a b
instance Ord VkCommandPoolCreateInfo where
(VkCommandPoolCreateInfo# a _) `compare`
x@(VkCommandPoolCreateInfo# b _) = cmpBytes# (sizeOf x) a b
instance Storable VkCommandPoolCreateInfo where
sizeOf ~_ = (24)
alignment ~_ = (8)
peek = peekVkData#
poke = pokeVkData#
instance VulkanMarshalPrim VkCommandPoolCreateInfo where
unsafeAddr (VkCommandPoolCreateInfo# a _) = a
unsafeByteArray (VkCommandPoolCreateInfo# _ b) = b
unsafeFromByteArrayOffset off b
= VkCommandPoolCreateInfo# (plusAddr# (byteArrayContents# b) off) b
instance VulkanMarshal VkCommandPoolCreateInfo where
type StructFields VkCommandPoolCreateInfo =
'["sType", "pNext", "flags", "queueFamilyIndex"]
type CUnionType VkCommandPoolCreateInfo = 'False
type ReturnedOnly VkCommandPoolCreateInfo = 'False
type StructExtends VkCommandPoolCreateInfo = '[]
instance
HasField "sType" VkCommandPoolCreateInfo where
type FieldType "sType" VkCommandPoolCreateInfo = VkStructureType
type FieldOptional "sType" VkCommandPoolCreateInfo = 'False
type FieldOffset "sType" VkCommandPoolCreateInfo =
(0)
type FieldIsArray "sType" VkCommandPoolCreateInfo = 'False
fieldOptional = False
fieldOffset = (0)
instance
CanReadField "sType" VkCommandPoolCreateInfo where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (0))
readField p
= peekByteOff p (0)
instance
CanWriteField "sType" VkCommandPoolCreateInfo where
writeField p
= pokeByteOff p (0)
instance
HasField "pNext" VkCommandPoolCreateInfo where
type FieldType "pNext" VkCommandPoolCreateInfo = Ptr Void
type FieldOptional "pNext" VkCommandPoolCreateInfo = 'False
type FieldOffset "pNext" VkCommandPoolCreateInfo =
(8)
type FieldIsArray "pNext" VkCommandPoolCreateInfo = 'False
fieldOptional = False
fieldOffset = (8)
instance
CanReadField "pNext" VkCommandPoolCreateInfo where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (8))
readField p
= peekByteOff p (8)
instance
CanWriteField "pNext" VkCommandPoolCreateInfo where
writeField p
= pokeByteOff p (8)
instance
HasField "flags" VkCommandPoolCreateInfo where
type FieldType "flags" VkCommandPoolCreateInfo =
VkCommandPoolCreateFlags
type FieldOptional "flags" VkCommandPoolCreateInfo = 'True
type FieldOffset "flags" VkCommandPoolCreateInfo =
(16)
type FieldIsArray "flags" VkCommandPoolCreateInfo = 'False
fieldOptional = True
fieldOffset = (16)
instance
CanReadField "flags" VkCommandPoolCreateInfo where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (16))
readField p
= peekByteOff p (16)
instance
CanWriteField "flags" VkCommandPoolCreateInfo where
writeField p
= pokeByteOff p (16)
instance
HasField "queueFamilyIndex" VkCommandPoolCreateInfo where
type FieldType "queueFamilyIndex" VkCommandPoolCreateInfo = Word32
type FieldOptional "queueFamilyIndex" VkCommandPoolCreateInfo =
'False
type FieldOffset "queueFamilyIndex" VkCommandPoolCreateInfo =
(20)
type FieldIsArray "queueFamilyIndex" VkCommandPoolCreateInfo =
'False
fieldOptional = False
fieldOffset
= (20)
instance
CanReadField "queueFamilyIndex" VkCommandPoolCreateInfo where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (20))
readField p
= peekByteOff p (20)
instance
CanWriteField "queueFamilyIndex" VkCommandPoolCreateInfo where
writeField p
= pokeByteOff p (20)
instance Show VkCommandPoolCreateInfo where
showsPrec d x
= showString "VkCommandPoolCreateInfo {" .
showString "sType = " .
showsPrec d (getField @"sType" x) .
showString ", " .
showString "pNext = " .
showsPrec d (getField @"pNext" x) .
showString ", " .
showString "flags = " .
showsPrec d (getField @"flags" x) .
showString ", " .
showString "queueFamilyIndex = " .
showsPrec d (getField @"queueFamilyIndex" x) . showChar '}'