module Graphics.Vulkan.Types.Struct.Cmd
(VkCmdProcessCommandsInfoNVX(..),
VkCmdReserveSpaceForCommandsInfoNVX(..))
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 (VkDeviceSize)
import Graphics.Vulkan.Types.Enum.StructureType (VkStructureType)
import Graphics.Vulkan.Types.Handles (VkBuffer,
VkCommandBuffer,
VkIndirectCommandsLayoutNVX,
VkObjectTableNVX)
import Graphics.Vulkan.Types.Struct.IndirectCommands (VkIndirectCommandsTokenNVX)
import System.IO.Unsafe (unsafeDupablePerformIO)
data VkCmdProcessCommandsInfoNVX = VkCmdProcessCommandsInfoNVX# Addr#
ByteArray#
instance Eq VkCmdProcessCommandsInfoNVX where
(VkCmdProcessCommandsInfoNVX# a _) ==
x@(VkCmdProcessCommandsInfoNVX# b _)
= EQ == cmpBytes# (sizeOf x) a b
instance Ord VkCmdProcessCommandsInfoNVX where
(VkCmdProcessCommandsInfoNVX# a _) `compare`
x@(VkCmdProcessCommandsInfoNVX# b _) = cmpBytes# (sizeOf x) a b
instance Storable VkCmdProcessCommandsInfoNVX where
sizeOf ~_ = (96)
alignment ~_ = (8)
peek = peekVkData#
poke = pokeVkData#
instance VulkanMarshalPrim VkCmdProcessCommandsInfoNVX where
unsafeAddr (VkCmdProcessCommandsInfoNVX# a _) = a
unsafeByteArray (VkCmdProcessCommandsInfoNVX# _ b) = b
unsafeFromByteArrayOffset off b
= VkCmdProcessCommandsInfoNVX#
(plusAddr# (byteArrayContents# b) off)
b
instance VulkanMarshal VkCmdProcessCommandsInfoNVX where
type StructFields VkCmdProcessCommandsInfoNVX =
'["sType", "pNext", "objectTable", "indirectCommandsLayout",
"indirectCommandsTokenCount", "pIndirectCommandsTokens",
"maxSequencesCount", "targetCommandBuffer", "sequencesCountBuffer",
"sequencesCountOffset", "sequencesIndexBuffer",
"sequencesIndexOffset"]
type CUnionType VkCmdProcessCommandsInfoNVX = 'False
type ReturnedOnly VkCmdProcessCommandsInfoNVX = 'False
type StructExtends VkCmdProcessCommandsInfoNVX = '[]
instance
HasField "sType" VkCmdProcessCommandsInfoNVX where
type FieldType "sType" VkCmdProcessCommandsInfoNVX =
VkStructureType
type FieldOptional "sType" VkCmdProcessCommandsInfoNVX = 'False
type FieldOffset "sType" VkCmdProcessCommandsInfoNVX =
(0)
type FieldIsArray "sType" VkCmdProcessCommandsInfoNVX = 'False
fieldOptional = False
fieldOffset
= (0)
instance
CanReadField "sType" VkCmdProcessCommandsInfoNVX where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (0))
readField p
= peekByteOff p (0)
instance
CanWriteField "sType" VkCmdProcessCommandsInfoNVX where
writeField p
= pokeByteOff p (0)
instance
HasField "pNext" VkCmdProcessCommandsInfoNVX where
type FieldType "pNext" VkCmdProcessCommandsInfoNVX = Ptr Void
type FieldOptional "pNext" VkCmdProcessCommandsInfoNVX = 'False
type FieldOffset "pNext" VkCmdProcessCommandsInfoNVX =
(8)
type FieldIsArray "pNext" VkCmdProcessCommandsInfoNVX = 'False
fieldOptional = False
fieldOffset
= (8)
instance
CanReadField "pNext" VkCmdProcessCommandsInfoNVX where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (8))
readField p
= peekByteOff p (8)
instance
CanWriteField "pNext" VkCmdProcessCommandsInfoNVX where
writeField p
= pokeByteOff p (8)
instance
HasField "objectTable" VkCmdProcessCommandsInfoNVX where
type FieldType "objectTable" VkCmdProcessCommandsInfoNVX =
VkObjectTableNVX
type FieldOptional "objectTable" VkCmdProcessCommandsInfoNVX =
'False
type FieldOffset "objectTable" VkCmdProcessCommandsInfoNVX =
(16)
type FieldIsArray "objectTable" VkCmdProcessCommandsInfoNVX =
'False
fieldOptional = False
fieldOffset
= (16)
instance
CanReadField "objectTable" VkCmdProcessCommandsInfoNVX where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (16))
readField p
= peekByteOff p (16)
instance
CanWriteField "objectTable" VkCmdProcessCommandsInfoNVX where
writeField p
= pokeByteOff p (16)
instance
HasField "indirectCommandsLayout" VkCmdProcessCommandsInfoNVX where
type FieldType "indirectCommandsLayout" VkCmdProcessCommandsInfoNVX
= VkIndirectCommandsLayoutNVX
type FieldOptional "indirectCommandsLayout"
VkCmdProcessCommandsInfoNVX
= 'False
type FieldOffset "indirectCommandsLayout"
VkCmdProcessCommandsInfoNVX
=
(24)
type FieldIsArray "indirectCommandsLayout"
VkCmdProcessCommandsInfoNVX
= 'False
fieldOptional = False
fieldOffset
= (24)
instance
CanReadField "indirectCommandsLayout" VkCmdProcessCommandsInfoNVX
where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (24))
readField p
= peekByteOff p (24)
instance
CanWriteField "indirectCommandsLayout" VkCmdProcessCommandsInfoNVX
where
writeField p
= pokeByteOff p (24)
instance
HasField "indirectCommandsTokenCount" VkCmdProcessCommandsInfoNVX
where
type FieldType "indirectCommandsTokenCount"
VkCmdProcessCommandsInfoNVX
= Word32
type FieldOptional "indirectCommandsTokenCount"
VkCmdProcessCommandsInfoNVX
= 'False
type FieldOffset "indirectCommandsTokenCount"
VkCmdProcessCommandsInfoNVX
=
(32)
type FieldIsArray "indirectCommandsTokenCount"
VkCmdProcessCommandsInfoNVX
= 'False
fieldOptional = False
fieldOffset
= (32)
instance
CanReadField "indirectCommandsTokenCount"
VkCmdProcessCommandsInfoNVX
where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (32))
readField p
= peekByteOff p (32)
instance
CanWriteField "indirectCommandsTokenCount"
VkCmdProcessCommandsInfoNVX
where
writeField p
= pokeByteOff p (32)
instance
HasField "pIndirectCommandsTokens" VkCmdProcessCommandsInfoNVX
where
type FieldType "pIndirectCommandsTokens"
VkCmdProcessCommandsInfoNVX
= Ptr VkIndirectCommandsTokenNVX
type FieldOptional "pIndirectCommandsTokens"
VkCmdProcessCommandsInfoNVX
= 'False
type FieldOffset "pIndirectCommandsTokens"
VkCmdProcessCommandsInfoNVX
=
(40)
type FieldIsArray "pIndirectCommandsTokens"
VkCmdProcessCommandsInfoNVX
= 'False
fieldOptional = False
fieldOffset
= (40)
instance
CanReadField "pIndirectCommandsTokens" VkCmdProcessCommandsInfoNVX
where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (40))
readField p
= peekByteOff p (40)
instance
CanWriteField "pIndirectCommandsTokens" VkCmdProcessCommandsInfoNVX
where
writeField p
= pokeByteOff p (40)
instance
HasField "maxSequencesCount" VkCmdProcessCommandsInfoNVX where
type FieldType "maxSequencesCount" VkCmdProcessCommandsInfoNVX =
Word32
type FieldOptional "maxSequencesCount" VkCmdProcessCommandsInfoNVX
= 'False
type FieldOffset "maxSequencesCount" VkCmdProcessCommandsInfoNVX =
(48)
type FieldIsArray "maxSequencesCount" VkCmdProcessCommandsInfoNVX =
'False
fieldOptional = False
fieldOffset
= (48)
instance
CanReadField "maxSequencesCount" VkCmdProcessCommandsInfoNVX where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (48))
readField p
= peekByteOff p (48)
instance
CanWriteField "maxSequencesCount" VkCmdProcessCommandsInfoNVX where
writeField p
= pokeByteOff p (48)
instance
HasField "targetCommandBuffer" VkCmdProcessCommandsInfoNVX where
type FieldType "targetCommandBuffer" VkCmdProcessCommandsInfoNVX =
VkCommandBuffer
type FieldOptional "targetCommandBuffer"
VkCmdProcessCommandsInfoNVX
= 'True
type FieldOffset "targetCommandBuffer" VkCmdProcessCommandsInfoNVX
=
(56)
type FieldIsArray "targetCommandBuffer" VkCmdProcessCommandsInfoNVX
= 'False
fieldOptional = True
fieldOffset
= (56)
instance
CanReadField "targetCommandBuffer" VkCmdProcessCommandsInfoNVX
where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (56))
readField p
= peekByteOff p (56)
instance
CanWriteField "targetCommandBuffer" VkCmdProcessCommandsInfoNVX
where
writeField p
= pokeByteOff p (56)
instance
HasField "sequencesCountBuffer" VkCmdProcessCommandsInfoNVX where
type FieldType "sequencesCountBuffer" VkCmdProcessCommandsInfoNVX =
VkBuffer
type FieldOptional "sequencesCountBuffer"
VkCmdProcessCommandsInfoNVX
= 'True
type FieldOffset "sequencesCountBuffer" VkCmdProcessCommandsInfoNVX
=
(64)
type FieldIsArray "sequencesCountBuffer"
VkCmdProcessCommandsInfoNVX
= 'False
fieldOptional = True
fieldOffset
= (64)
instance
CanReadField "sequencesCountBuffer" VkCmdProcessCommandsInfoNVX
where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (64))
readField p
= peekByteOff p (64)
instance
CanWriteField "sequencesCountBuffer" VkCmdProcessCommandsInfoNVX
where
writeField p
= pokeByteOff p (64)
instance
HasField "sequencesCountOffset" VkCmdProcessCommandsInfoNVX where
type FieldType "sequencesCountOffset" VkCmdProcessCommandsInfoNVX =
VkDeviceSize
type FieldOptional "sequencesCountOffset"
VkCmdProcessCommandsInfoNVX
= 'True
type FieldOffset "sequencesCountOffset" VkCmdProcessCommandsInfoNVX
=
(72)
type FieldIsArray "sequencesCountOffset"
VkCmdProcessCommandsInfoNVX
= 'False
fieldOptional = True
fieldOffset
= (72)
instance
CanReadField "sequencesCountOffset" VkCmdProcessCommandsInfoNVX
where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (72))
readField p
= peekByteOff p (72)
instance
CanWriteField "sequencesCountOffset" VkCmdProcessCommandsInfoNVX
where
writeField p
= pokeByteOff p (72)
instance
HasField "sequencesIndexBuffer" VkCmdProcessCommandsInfoNVX where
type FieldType "sequencesIndexBuffer" VkCmdProcessCommandsInfoNVX =
VkBuffer
type FieldOptional "sequencesIndexBuffer"
VkCmdProcessCommandsInfoNVX
= 'True
type FieldOffset "sequencesIndexBuffer" VkCmdProcessCommandsInfoNVX
=
(80)
type FieldIsArray "sequencesIndexBuffer"
VkCmdProcessCommandsInfoNVX
= 'False
fieldOptional = True
fieldOffset
= (80)
instance
CanReadField "sequencesIndexBuffer" VkCmdProcessCommandsInfoNVX
where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (80))
readField p
= peekByteOff p (80)
instance
CanWriteField "sequencesIndexBuffer" VkCmdProcessCommandsInfoNVX
where
writeField p
= pokeByteOff p (80)
instance
HasField "sequencesIndexOffset" VkCmdProcessCommandsInfoNVX where
type FieldType "sequencesIndexOffset" VkCmdProcessCommandsInfoNVX =
VkDeviceSize
type FieldOptional "sequencesIndexOffset"
VkCmdProcessCommandsInfoNVX
= 'True
type FieldOffset "sequencesIndexOffset" VkCmdProcessCommandsInfoNVX
=
(88)
type FieldIsArray "sequencesIndexOffset"
VkCmdProcessCommandsInfoNVX
= 'False
fieldOptional = True
fieldOffset
= (88)
instance
CanReadField "sequencesIndexOffset" VkCmdProcessCommandsInfoNVX
where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (88))
readField p
= peekByteOff p (88)
instance
CanWriteField "sequencesIndexOffset" VkCmdProcessCommandsInfoNVX
where
writeField p
= pokeByteOff p (88)
instance Show VkCmdProcessCommandsInfoNVX where
showsPrec d x
= showString "VkCmdProcessCommandsInfoNVX {" .
showString "sType = " .
showsPrec d (getField @"sType" x) .
showString ", " .
showString "pNext = " .
showsPrec d (getField @"pNext" x) .
showString ", " .
showString "objectTable = " .
showsPrec d (getField @"objectTable" x) .
showString ", " .
showString "indirectCommandsLayout = " .
showsPrec d (getField @"indirectCommandsLayout" x) .
showString ", " .
showString "indirectCommandsTokenCount = " .
showsPrec d (getField @"indirectCommandsTokenCount" x) .
showString ", " .
showString "pIndirectCommandsTokens = " .
showsPrec d (getField @"pIndirectCommandsTokens" x) .
showString ", " .
showString "maxSequencesCount = " .
showsPrec d (getField @"maxSequencesCount" x) .
showString ", " .
showString "targetCommandBuffer = " .
showsPrec d
(getField @"targetCommandBuffer" x)
.
showString ", " .
showString "sequencesCountBuffer = " .
showsPrec d
(getField @"sequencesCountBuffer"
x)
.
showString ", " .
showString
"sequencesCountOffset = "
.
showsPrec d
(getField
@"sequencesCountOffset"
x)
.
showString ", " .
showString
"sequencesIndexBuffer = "
.
showsPrec d
(getField
@"sequencesIndexBuffer"
x)
.
showString ", " .
showString
"sequencesIndexOffset = "
.
showsPrec d
(getField
@"sequencesIndexOffset"
x)
. showChar '}'
data VkCmdReserveSpaceForCommandsInfoNVX = VkCmdReserveSpaceForCommandsInfoNVX# Addr#
ByteArray#
instance Eq VkCmdReserveSpaceForCommandsInfoNVX where
(VkCmdReserveSpaceForCommandsInfoNVX# a _) ==
x@(VkCmdReserveSpaceForCommandsInfoNVX# b _)
= EQ == cmpBytes# (sizeOf x) a b
instance Ord VkCmdReserveSpaceForCommandsInfoNVX where
(VkCmdReserveSpaceForCommandsInfoNVX# a _) `compare`
x@(VkCmdReserveSpaceForCommandsInfoNVX# b _)
= cmpBytes# (sizeOf x) a b
instance Storable VkCmdReserveSpaceForCommandsInfoNVX where
sizeOf ~_ = (40)
alignment ~_
= (8)
peek = peekVkData#
poke = pokeVkData#
instance VulkanMarshalPrim VkCmdReserveSpaceForCommandsInfoNVX
where
unsafeAddr (VkCmdReserveSpaceForCommandsInfoNVX# a _) = a
unsafeByteArray (VkCmdReserveSpaceForCommandsInfoNVX# _ b) = b
unsafeFromByteArrayOffset off b
= VkCmdReserveSpaceForCommandsInfoNVX#
(plusAddr# (byteArrayContents# b) off)
b
instance VulkanMarshal VkCmdReserveSpaceForCommandsInfoNVX where
type StructFields VkCmdReserveSpaceForCommandsInfoNVX =
'["sType", "pNext", "objectTable", "indirectCommandsLayout",
"maxSequencesCount"]
type CUnionType VkCmdReserveSpaceForCommandsInfoNVX = 'False
type ReturnedOnly VkCmdReserveSpaceForCommandsInfoNVX = 'False
type StructExtends VkCmdReserveSpaceForCommandsInfoNVX = '[]
instance
HasField "sType" VkCmdReserveSpaceForCommandsInfoNVX where
type FieldType "sType" VkCmdReserveSpaceForCommandsInfoNVX =
VkStructureType
type FieldOptional "sType" VkCmdReserveSpaceForCommandsInfoNVX =
'False
type FieldOffset "sType" VkCmdReserveSpaceForCommandsInfoNVX =
(0)
type FieldIsArray "sType" VkCmdReserveSpaceForCommandsInfoNVX =
'False
fieldOptional = False
fieldOffset
= (0)
instance
CanReadField "sType" VkCmdReserveSpaceForCommandsInfoNVX where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (0))
readField p
= peekByteOff p (0)
instance
CanWriteField "sType" VkCmdReserveSpaceForCommandsInfoNVX where
writeField p
= pokeByteOff p (0)
instance
HasField "pNext" VkCmdReserveSpaceForCommandsInfoNVX where
type FieldType "pNext" VkCmdReserveSpaceForCommandsInfoNVX =
Ptr Void
type FieldOptional "pNext" VkCmdReserveSpaceForCommandsInfoNVX =
'False
type FieldOffset "pNext" VkCmdReserveSpaceForCommandsInfoNVX =
(8)
type FieldIsArray "pNext" VkCmdReserveSpaceForCommandsInfoNVX =
'False
fieldOptional = False
fieldOffset
= (8)
instance
CanReadField "pNext" VkCmdReserveSpaceForCommandsInfoNVX where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (8))
readField p
= peekByteOff p (8)
instance
CanWriteField "pNext" VkCmdReserveSpaceForCommandsInfoNVX where
writeField p
= pokeByteOff p (8)
instance
HasField "objectTable" VkCmdReserveSpaceForCommandsInfoNVX where
type FieldType "objectTable" VkCmdReserveSpaceForCommandsInfoNVX =
VkObjectTableNVX
type FieldOptional "objectTable"
VkCmdReserveSpaceForCommandsInfoNVX
= 'False
type FieldOffset "objectTable" VkCmdReserveSpaceForCommandsInfoNVX
=
(16)
type FieldIsArray "objectTable" VkCmdReserveSpaceForCommandsInfoNVX
= 'False
fieldOptional = False
fieldOffset
= (16)
instance
CanReadField "objectTable" VkCmdReserveSpaceForCommandsInfoNVX
where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (16))
readField p
= peekByteOff p (16)
instance
CanWriteField "objectTable" VkCmdReserveSpaceForCommandsInfoNVX
where
writeField p
= pokeByteOff p (16)
instance
HasField "indirectCommandsLayout"
VkCmdReserveSpaceForCommandsInfoNVX
where
type FieldType "indirectCommandsLayout"
VkCmdReserveSpaceForCommandsInfoNVX
= VkIndirectCommandsLayoutNVX
type FieldOptional "indirectCommandsLayout"
VkCmdReserveSpaceForCommandsInfoNVX
= 'False
type FieldOffset "indirectCommandsLayout"
VkCmdReserveSpaceForCommandsInfoNVX
=
(24)
type FieldIsArray "indirectCommandsLayout"
VkCmdReserveSpaceForCommandsInfoNVX
= 'False
fieldOptional = False
fieldOffset
= (24)
instance
CanReadField "indirectCommandsLayout"
VkCmdReserveSpaceForCommandsInfoNVX
where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (24))
readField p
= peekByteOff p (24)
instance
CanWriteField "indirectCommandsLayout"
VkCmdReserveSpaceForCommandsInfoNVX
where
writeField p
= pokeByteOff p (24)
instance
HasField "maxSequencesCount" VkCmdReserveSpaceForCommandsInfoNVX
where
type FieldType "maxSequencesCount"
VkCmdReserveSpaceForCommandsInfoNVX
= Word32
type FieldOptional "maxSequencesCount"
VkCmdReserveSpaceForCommandsInfoNVX
= 'False
type FieldOffset "maxSequencesCount"
VkCmdReserveSpaceForCommandsInfoNVX
=
(32)
type FieldIsArray "maxSequencesCount"
VkCmdReserveSpaceForCommandsInfoNVX
= 'False
fieldOptional = False
fieldOffset
= (32)
instance
CanReadField "maxSequencesCount"
VkCmdReserveSpaceForCommandsInfoNVX
where
getField x
= unsafeDupablePerformIO
(peekByteOff (unsafePtr x) (32))
readField p
= peekByteOff p (32)
instance
CanWriteField "maxSequencesCount"
VkCmdReserveSpaceForCommandsInfoNVX
where
writeField p
= pokeByteOff p (32)
instance Show VkCmdReserveSpaceForCommandsInfoNVX where
showsPrec d x
= showString "VkCmdReserveSpaceForCommandsInfoNVX {" .
showString "sType = " .
showsPrec d (getField @"sType" x) .
showString ", " .
showString "pNext = " .
showsPrec d (getField @"pNext" x) .
showString ", " .
showString "objectTable = " .
showsPrec d (getField @"objectTable" x) .
showString ", " .
showString "indirectCommandsLayout = " .
showsPrec d (getField @"indirectCommandsLayout" x) .
showString ", " .
showString "maxSequencesCount = " .
showsPrec d (getField @"maxSequencesCount" x) . showChar '}'