Skip to content

Commit

Permalink
Regenerate source for v2.1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
expipiplus1 committed Apr 22, 2018
1 parent 9570c90 commit c9c29b6
Show file tree
Hide file tree
Showing 142 changed files with 4,977 additions and 2,014 deletions.
4 changes: 1 addition & 3 deletions src/Graphics/Vulkan.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@


module Graphics.Vulkan
( module Graphics.Vulkan.NamedType
, module Graphics.Vulkan.Dynamic
( module Graphics.Vulkan.NamedType
, module Graphics.Vulkan.Core10
, module Graphics.Vulkan.Core11
, module Graphics.Vulkan.Extensions
) where


import Graphics.Vulkan.NamedType
import Graphics.Vulkan.Dynamic
import Graphics.Vulkan.Core10
import Graphics.Vulkan.Core11
import Graphics.Vulkan.Extensions
Expand Down
2 changes: 1 addition & 1 deletion src/Graphics/Vulkan/Core10.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


module Graphics.Vulkan.Core10
( module Graphics.Vulkan.Core10.Core
( module Graphics.Vulkan.Core10.Core
, module Graphics.Vulkan.Core10.Version
, module Graphics.Vulkan.Core10.Constants
, module Graphics.Vulkan.Core10.DeviceInitialization
Expand Down
32 changes: 20 additions & 12 deletions src/Graphics/Vulkan/Core10/Buffer.hs
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ import Data.Word
( Word32
)
import Foreign.Ptr
( plusPtr
, Ptr
( Ptr
, plusPtr
)
import Foreign.Storable
( Storable(..)
, Storable
( Storable
, Storable(..)
)
import GHC.Read
( expectP
, choose
( choose
, expectP
)
import Graphics.Vulkan.NamedType
( (:::)
Expand All @@ -71,14 +71,14 @@ import Text.Read.Lex


import Graphics.Vulkan.Core10.Core
( VkStructureType(..)
, VkResult(..)
( VkResult(..)
, VkStructureType(..)
, VkFlags
)
import Graphics.Vulkan.Core10.DeviceInitialization
( VkDeviceSize
, VkAllocationCallbacks(..)
( VkAllocationCallbacks(..)
, VkDevice
, VkDeviceSize
)
import Graphics.Vulkan.Core10.MemoryManagement
( VkBuffer
Expand Down Expand Up @@ -384,7 +384,11 @@ pattern VK_BUFFER_CREATE_SPARSE_ALIASED_BIT = VkBufferCreateFlagBits 0x00000004
-- 'Graphics.Vulkan.Core10.MemoryManagement.VkBuffer',
-- 'VkBufferCreateInfo',
-- 'Graphics.Vulkan.Core10.DeviceInitialization.VkDevice'
foreign import ccall "vkCreateBuffer" vkCreateBuffer :: ("device" ::: VkDevice) -> ("pCreateInfo" ::: Ptr VkBufferCreateInfo) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> ("pBuffer" ::: Ptr VkBuffer) -> IO VkResult
foreign import ccall
#if !defined(SAFE_FOREIGN_CALLS)
unsafe
#endif
"vkCreateBuffer" vkCreateBuffer :: ("device" ::: VkDevice) -> ("pCreateInfo" ::: Ptr VkBufferCreateInfo) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> ("pBuffer" ::: Ptr VkBuffer) -> IO VkResult
-- | vkDestroyBuffer - Destroy a buffer object
--
-- = Parameters
Expand Down Expand Up @@ -432,7 +436,11 @@ foreign import ccall "vkCreateBuffer" vkCreateBuffer :: ("device" ::: VkDevice)
-- 'Graphics.Vulkan.Core10.DeviceInitialization.VkAllocationCallbacks',
-- 'Graphics.Vulkan.Core10.MemoryManagement.VkBuffer',
-- 'Graphics.Vulkan.Core10.DeviceInitialization.VkDevice'
foreign import ccall "vkDestroyBuffer" vkDestroyBuffer :: ("device" ::: VkDevice) -> ("buffer" ::: VkBuffer) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> IO ()
foreign import ccall
#if !defined(SAFE_FOREIGN_CALLS)
unsafe
#endif
"vkDestroyBuffer" vkDestroyBuffer :: ("device" ::: VkDevice) -> ("buffer" ::: VkBuffer) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> IO ()
-- | VkBufferCreateInfo - Structure specifying the parameters of a newly
-- created buffer object
--
Expand Down
30 changes: 19 additions & 11 deletions src/Graphics/Vulkan/Core10/BufferView.hs
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ import Data.Bits
, FiniteBits
)
import Foreign.Ptr
( plusPtr
, Ptr
( Ptr
, plusPtr
)
import Foreign.Storable
( Storable(..)
, Storable
( Storable
, Storable(..)
)
import GHC.Read
( expectP
, choose
( choose
, expectP
)
import Graphics.Vulkan.NamedType
( (:::)
Expand All @@ -49,14 +49,14 @@ import Text.Read.Lex

import Graphics.Vulkan.Core10.Core
( VkFormat(..)
, VkStructureType(..)
, VkResult(..)
, VkStructureType(..)
, VkFlags
)
import Graphics.Vulkan.Core10.DeviceInitialization
( VkDeviceSize
, VkAllocationCallbacks(..)
( VkAllocationCallbacks(..)
, VkDevice
, VkDeviceSize
)
import Graphics.Vulkan.Core10.MemoryManagement
( VkBuffer
Expand Down Expand Up @@ -147,7 +147,11 @@ type VkBufferView = Ptr VkBufferView_T
-- 'Graphics.Vulkan.Core10.DeviceInitialization.VkAllocationCallbacks',
-- 'VkBufferView', 'VkBufferViewCreateInfo',
-- 'Graphics.Vulkan.Core10.DeviceInitialization.VkDevice'
foreign import ccall "vkCreateBufferView" vkCreateBufferView :: ("device" ::: VkDevice) -> ("pCreateInfo" ::: Ptr VkBufferViewCreateInfo) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> ("pView" ::: Ptr VkBufferView) -> IO VkResult
foreign import ccall
#if !defined(SAFE_FOREIGN_CALLS)
unsafe
#endif
"vkCreateBufferView" vkCreateBufferView :: ("device" ::: VkDevice) -> ("pCreateInfo" ::: Ptr VkBufferViewCreateInfo) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> ("pView" ::: Ptr VkBufferView) -> IO VkResult
-- | vkDestroyBufferView - Destroy a buffer view object
--
-- = Parameters
Expand Down Expand Up @@ -194,7 +198,11 @@ foreign import ccall "vkCreateBufferView" vkCreateBufferView :: ("device" ::: Vk
--
-- 'Graphics.Vulkan.Core10.DeviceInitialization.VkAllocationCallbacks',
-- 'VkBufferView', 'Graphics.Vulkan.Core10.DeviceInitialization.VkDevice'
foreign import ccall "vkDestroyBufferView" vkDestroyBufferView :: ("device" ::: VkDevice) -> ("bufferView" ::: VkBufferView) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> IO ()
foreign import ccall
#if !defined(SAFE_FOREIGN_CALLS)
unsafe
#endif
"vkDestroyBufferView" vkDestroyBufferView :: ("device" ::: VkDevice) -> ("bufferView" ::: VkBufferView) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> IO ()
-- | VkBufferViewCreateInfo - Structure specifying parameters of a newly
-- created buffer view
--
Expand Down
44 changes: 32 additions & 12 deletions src/Graphics/Vulkan/Core10/CommandBuffer.hs
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ import Data.Word
( Word32
)
import Foreign.Ptr
( plusPtr
, Ptr
( Ptr
, plusPtr
)
import Foreign.Storable
( Storable(..)
, Storable
( Storable
, Storable(..)
)
import GHC.Read
( expectP
, choose
( choose
, expectP
)
import Graphics.Vulkan.NamedType
( (:::)
Expand All @@ -75,8 +75,8 @@ import Graphics.Vulkan.Core10.CommandPool
)
import Graphics.Vulkan.Core10.Core
( VkBool32(..)
, VkStructureType(..)
, VkResult(..)
, VkStructureType(..)
, VkFlags
)
import Graphics.Vulkan.Core10.DeviceInitialization
Expand Down Expand Up @@ -295,7 +295,11 @@ pattern VK_COMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_BIT = VkCommandBufferUsageFlagB
-- 'Graphics.Vulkan.Core10.Queue.VkCommandBuffer',
-- 'VkCommandBufferAllocateInfo',
-- 'Graphics.Vulkan.Core10.DeviceInitialization.VkDevice'
foreign import ccall "vkAllocateCommandBuffers" vkAllocateCommandBuffers :: ("device" ::: VkDevice) -> ("pAllocateInfo" ::: Ptr VkCommandBufferAllocateInfo) -> ("pCommandBuffers" ::: Ptr VkCommandBuffer) -> IO VkResult
foreign import ccall
#if !defined(SAFE_FOREIGN_CALLS)
unsafe
#endif
"vkAllocateCommandBuffers" vkAllocateCommandBuffers :: ("device" ::: VkDevice) -> ("pAllocateInfo" ::: Ptr VkCommandBufferAllocateInfo) -> ("pCommandBuffers" ::: Ptr VkCommandBuffer) -> IO VkResult
-- | vkFreeCommandBuffers - Free command buffers
--
-- = Parameters
Expand Down Expand Up @@ -351,7 +355,11 @@ foreign import ccall "vkAllocateCommandBuffers" vkAllocateCommandBuffers :: ("de
-- 'Graphics.Vulkan.Core10.Queue.VkCommandBuffer',
-- 'Graphics.Vulkan.Core10.CommandPool.VkCommandPool',
-- 'Graphics.Vulkan.Core10.DeviceInitialization.VkDevice'
foreign import ccall "vkFreeCommandBuffers" vkFreeCommandBuffers :: ("device" ::: VkDevice) -> ("commandPool" ::: VkCommandPool) -> ("commandBufferCount" ::: Word32) -> ("pCommandBuffers" ::: Ptr VkCommandBuffer) -> IO ()
foreign import ccall
#if !defined(SAFE_FOREIGN_CALLS)
unsafe
#endif
"vkFreeCommandBuffers" vkFreeCommandBuffers :: ("device" ::: VkDevice) -> ("commandPool" ::: VkCommandPool) -> ("commandBufferCount" ::: Word32) -> ("pCommandBuffers" ::: Ptr VkCommandBuffer) -> IO ()
-- | vkBeginCommandBuffer - Start recording a command buffer
--
-- = Parameters
Expand Down Expand Up @@ -413,7 +421,11 @@ foreign import ccall "vkFreeCommandBuffers" vkFreeCommandBuffers :: ("device" ::
--
-- 'Graphics.Vulkan.Core10.Queue.VkCommandBuffer',
-- 'VkCommandBufferBeginInfo'
foreign import ccall "vkBeginCommandBuffer" vkBeginCommandBuffer :: ("commandBuffer" ::: VkCommandBuffer) -> ("pBeginInfo" ::: Ptr VkCommandBufferBeginInfo) -> IO VkResult
foreign import ccall
#if !defined(SAFE_FOREIGN_CALLS)
unsafe
#endif
"vkBeginCommandBuffer" vkBeginCommandBuffer :: ("commandBuffer" ::: VkCommandBuffer) -> ("pBeginInfo" ::: Ptr VkCommandBufferBeginInfo) -> IO VkResult
-- | vkEndCommandBuffer - Finish recording a command buffer
--
-- = Parameters
Expand Down Expand Up @@ -481,7 +493,11 @@ foreign import ccall "vkBeginCommandBuffer" vkBeginCommandBuffer :: ("commandBuf
-- = See Also
--
-- 'Graphics.Vulkan.Core10.Queue.VkCommandBuffer'
foreign import ccall "vkEndCommandBuffer" vkEndCommandBuffer :: ("commandBuffer" ::: VkCommandBuffer) -> IO VkResult
foreign import ccall
#if !defined(SAFE_FOREIGN_CALLS)
unsafe
#endif
"vkEndCommandBuffer" vkEndCommandBuffer :: ("commandBuffer" ::: VkCommandBuffer) -> IO VkResult
-- | vkResetCommandBuffer - Reset a command buffer to the initial state
--
-- = Parameters
Expand Down Expand Up @@ -535,7 +551,11 @@ foreign import ccall "vkEndCommandBuffer" vkEndCommandBuffer :: ("commandBuffer"
--
-- 'Graphics.Vulkan.Core10.Queue.VkCommandBuffer',
-- 'VkCommandBufferResetFlags'
foreign import ccall "vkResetCommandBuffer" vkResetCommandBuffer :: ("commandBuffer" ::: VkCommandBuffer) -> ("flags" ::: VkCommandBufferResetFlags) -> IO VkResult
foreign import ccall
#if !defined(SAFE_FOREIGN_CALLS)
unsafe
#endif
"vkResetCommandBuffer" vkResetCommandBuffer :: ("commandBuffer" ::: VkCommandBuffer) -> ("flags" ::: VkCommandBufferResetFlags) -> IO VkResult
-- | VkCommandBufferAllocateInfo - Structure specifying the allocation
-- parameters for command buffer object
--
Expand Down
Loading

0 comments on commit c9c29b6

Please sign in to comment.