Skip to content

Commit

Permalink
Merge pull request #482 from expipiplus1/bump-vma
Browse files Browse the repository at this point in the history
Bump VMA
  • Loading branch information
expipiplus1 authored Oct 17, 2023
2 parents d22123a + 5a7ea54 commit 432af58
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 8 deletions.
2 changes: 1 addition & 1 deletion VulkanMemoryAllocator/VulkanMemoryAllocator
Submodule VulkanMemoryAllocator updated 98 files
+1 −0 .gitignore
+37 −48 CMakeLists.txt
+91 −47 Doxyfile
+24 −25 README.md
+ bin/Shader.frag.spv
+ bin/Shader.vert.spv
+9 −9 docs/html/allocation_annotation.html
+3 −3 docs/html/annotated.html
+21 −21 docs/html/choosing_memory_type.html
+3 −3 docs/html/classes.html
+16 −16 docs/html/configuration.html
+30 −30 docs/html/custom_memory_pools.html
+23 −23 docs/html/debugging_memory_usage.html
+14 −14 docs/html/defragmentation.html
+3 −3 docs/html/deprecated.html
+3 −3 docs/html/dir_d44c64559bbebec7f509842c48db8b23.html
+49 −15 docs/html/doxygen.css
+14 −14 docs/html/enabling_buffer_device_address.html
+3 −3 docs/html/files.html
+3 −3 docs/html/functions.html
+3 −3 docs/html/functions_vars.html
+8 −8 docs/html/general_considerations.html
+3 −4 docs/html/globals.html
+3 −3 docs/html/globals_defs.html
+3 −3 docs/html/globals_enum.html
+3 −3 docs/html/globals_eval.html
+3 −4 docs/html/globals_func.html
+3 −3 docs/html/globals_type.html
+177 −177 docs/html/group__group__alloc.html
+51 −51 docs/html/group__group__init.html
+20 −20 docs/html/group__group__stats.html
+40 −60 docs/html/group__group__virtual.html
+6 −6 docs/html/index.html
+12 −12 docs/html/memory_mapping.html
+3 −3 docs/html/modules.html
+12 −12 docs/html/opengl_interop.html
+3 −3 docs/html/pages.html
+18 −18 docs/html/quick_start.html
+11 −10 docs/html/resource_aliasing.html
+196 −197 docs/html/search/all_11.js
+63 −64 docs/html/search/functions_0.js
+11 −11 docs/html/statistics.html
+12 −12 docs/html/staying_within_budget.html
+8 −8 docs/html/struct_vma_allocation.html
+3 −3 docs/html/struct_vma_allocation_create_info-members.html
+20 −20 docs/html/struct_vma_allocation_create_info.html
+3 −3 docs/html/struct_vma_allocation_info-members.html
+22 −22 docs/html/struct_vma_allocation_info.html
+6 −6 docs/html/struct_vma_allocator.html
+3 −3 docs/html/struct_vma_allocator_create_info-members.html
+29 −29 docs/html/struct_vma_allocator_create_info.html
+3 −3 docs/html/struct_vma_allocator_info-members.html
+10 −10 docs/html/struct_vma_allocator_info.html
+3 −3 docs/html/struct_vma_budget-members.html
+12 −12 docs/html/struct_vma_budget.html
+5 −5 docs/html/struct_vma_defragmentation_context.html
+3 −3 docs/html/struct_vma_defragmentation_info-members.html
+12 −12 docs/html/struct_vma_defragmentation_info.html
+3 −3 docs/html/struct_vma_defragmentation_move-members.html
+7 −7 docs/html/struct_vma_defragmentation_move.html
+3 −3 docs/html/struct_vma_defragmentation_pass_move_info-members.html
+13 −13 docs/html/struct_vma_defragmentation_pass_move_info.html
+3 −3 docs/html/struct_vma_defragmentation_stats-members.html
+8 −8 docs/html/struct_vma_defragmentation_stats.html
+3 −3 docs/html/struct_vma_detailed_statistics-members.html
+12 −12 docs/html/struct_vma_detailed_statistics.html
+3 −3 docs/html/struct_vma_device_memory_callbacks-members.html
+9 −9 docs/html/struct_vma_device_memory_callbacks.html
+6 −6 docs/html/struct_vma_pool.html
+3 −3 docs/html/struct_vma_pool_create_info-members.html
+21 −21 docs/html/struct_vma_pool_create_info.html
+3 −3 docs/html/struct_vma_statistics-members.html
+11 −11 docs/html/struct_vma_statistics.html
+3 −3 docs/html/struct_vma_total_statistics-members.html
+5 −5 docs/html/struct_vma_total_statistics.html
+6 −6 docs/html/struct_vma_virtual_allocation.html
+3 −3 docs/html/struct_vma_virtual_allocation_create_info-members.html
+11 −11 docs/html/struct_vma_virtual_allocation_create_info.html
+3 −3 docs/html/struct_vma_virtual_allocation_info-members.html
+10 −10 docs/html/struct_vma_virtual_allocation_info.html
+6 −6 docs/html/struct_vma_virtual_block.html
+3 −3 docs/html/struct_vma_virtual_block_create_info-members.html
+9 −9 docs/html/struct_vma_virtual_block_create_info.html
+3 −3 docs/html/struct_vma_vulkan_functions-members.html
+13 −13 docs/html/struct_vma_vulkan_functions.html
+18 −16 docs/html/usage_patterns.html
+20 −20 docs/html/virtual_allocator.html
+98 −100 docs/html/vk__mem__alloc_8h.html
+14 −14 docs/html/vk_amd_device_coherent_memory.html
+15 −15 docs/html/vk_ext_memory_priority.html
+14 −14 docs/html/vk_khr_dedicated_allocation.html
+175 −88 include/vk_mem_alloc.h
+52 −86 src/CMakeLists.txt
+2 −1 src/VmaUsage.h
+1 −1 src/VulkanSample.cpp
+0 −10 src/cmake/Config.cmake.in
+0 −32 src/cmake/install_target.cmake
+8 −7 tools/GpuMemDumpVis/GpuMemDumpVis.py
2 changes: 1 addition & 1 deletion VulkanMemoryAllocator/VulkanMemoryAllocator.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cabal-version: 2.2
-- see: https://github.com/sol/hpack

name: VulkanMemoryAllocator
version: 0.10.5.1
version: 0.11
synopsis: Bindings to the VulkanMemoryAllocator library
category: Graphics
homepage: https://github.com/expipiplus1/vulkan#readme
Expand Down
3 changes: 3 additions & 0 deletions VulkanMemoryAllocator/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## WIP

## [0.11] - 2023-10-17
- Bump VMA

## [0.10.5.1] - 2023-10-17
- Raise upper bound on `vulkan`

Expand Down
2 changes: 1 addition & 1 deletion VulkanMemoryAllocator/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: VulkanMemoryAllocator
version: "0.10.5.1"
version: "0.11"
synopsis: Bindings to the VulkanMemoryAllocator library
category: Graphics
maintainer: Ellie Hermaszewska <[email protected]>
Expand Down
35 changes: 30 additions & 5 deletions VulkanMemoryAllocator/src/VulkanMemoryAllocator.hs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ module VulkanMemoryAllocator ( createAllocator
, AllocationCreateInfo(..)
, PoolCreateInfo(..)
, AllocationInfo(..)
, PFN_vmaCheckDefragmentationBreakFunction
, FN_vmaCheckDefragmentationBreakFunction
, DefragmentationInfo(..)
, DefragmentationMove(..)
, DefragmentationPassMoveInfo(..)
Expand Down Expand Up @@ -5545,6 +5547,11 @@ instance Zero AllocationInfo where
Nothing


type FN_vmaCheckDefragmentationBreakFunction = ("pUserData" ::: Ptr ()) -> IO Bool32
-- No documentation found for TopLevel "PFN_vmaCheckDefragmentationBreakFunction"
type PFN_vmaCheckDefragmentationBreakFunction = FunPtr FN_vmaCheckDefragmentationBreakFunction


-- | VmaDefragmentationInfo
--
-- Parameters for defragmentation.
Expand All @@ -5567,22 +5574,31 @@ data DefragmentationInfo = DefragmentationInfo
--
-- @0@ means no limit.
maxAllocationsPerPass :: Word32
, -- | Optional custom callback for stopping 'beginDefragmentation'.
--
-- Have to return true for breaking current defragmentation pass.
pfnBreakCallback :: PFN_vmaCheckDefragmentationBreakFunction
, -- | Optional data to pass to custom callback for stopping pass of
-- defragmentation.
breakCallbackUserData :: Ptr ()
}
deriving (Typeable, Eq)
deriving (Typeable)
#if defined(GENERIC_INSTANCES)
deriving instance Generic (DefragmentationInfo)
#endif
deriving instance Show DefragmentationInfo

instance ToCStruct DefragmentationInfo where
withCStruct x f = allocaBytes 32 $ \p -> pokeCStruct p x (f p)
withCStruct x f = allocaBytes 48 $ \p -> pokeCStruct p x (f p)
pokeCStruct p DefragmentationInfo{..} f = do
poke ((p `plusPtr` 0 :: Ptr DefragmentationFlags)) (flags)
poke ((p `plusPtr` 8 :: Ptr Pool)) (pool)
poke ((p `plusPtr` 16 :: Ptr DeviceSize)) (maxBytesPerPass)
poke ((p `plusPtr` 24 :: Ptr Word32)) (maxAllocationsPerPass)
poke ((p `plusPtr` 32 :: Ptr PFN_vmaCheckDefragmentationBreakFunction)) (pfnBreakCallback)
poke ((p `plusPtr` 40 :: Ptr (Ptr ()))) (breakCallbackUserData)
f
cStructSize = 32
cStructSize = 48
cStructAlignment = 8
pokeZeroCStruct p f = do
poke ((p `plusPtr` 0 :: Ptr DefragmentationFlags)) (zero)
Expand All @@ -5596,11 +5612,18 @@ instance FromCStruct DefragmentationInfo where
pool <- peek @Pool ((p `plusPtr` 8 :: Ptr Pool))
maxBytesPerPass <- peek @DeviceSize ((p `plusPtr` 16 :: Ptr DeviceSize))
maxAllocationsPerPass <- peek @Word32 ((p `plusPtr` 24 :: Ptr Word32))
pfnBreakCallback <- peek @PFN_vmaCheckDefragmentationBreakFunction ((p `plusPtr` 32 :: Ptr PFN_vmaCheckDefragmentationBreakFunction))
pBreakCallbackUserData <- peek @(Ptr ()) ((p `plusPtr` 40 :: Ptr (Ptr ())))
pure $ DefragmentationInfo
flags pool maxBytesPerPass maxAllocationsPerPass
flags
pool
maxBytesPerPass
maxAllocationsPerPass
pfnBreakCallback
pBreakCallbackUserData

instance Storable DefragmentationInfo where
sizeOf ~_ = 32
sizeOf ~_ = 48
alignment ~_ = 8
peek = peekCStruct
poke ptr poked = pokeCStruct ptr poked (pure ())
Expand All @@ -5611,6 +5634,8 @@ instance Zero DefragmentationInfo where
zero
zero
zero
zero
zero


-- | VmaDefragmentationMove
Expand Down
2 changes: 2 additions & 0 deletions generate-new/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ In an environment with `doxygen` (`nix-shell -p doxygen`), in the
sed -i -e 's|^GENERATE_DOCBOOK.*|GENERATE_DOCBOOK=YES|' \
-e 's|^BRIEF_MEMBER_DESC.*|BRIEF_MEMBER_DESC=NO|' \
-e 's|^PREDEFINED *=|PREDEFINED = VMA_STATS_STRING_ENABLED=1 |' \
-e 's|^PREDEFINED *=|PREDEFINED = VMA_EXTENDS_VK_STRUCT(s)=s |' \
-e 's|@CMAKE_SOURCE_DIR@/||' \
Doxyfile &&
doxygen Doxyfile)
```
Expand Down

0 comments on commit 432af58

Please sign in to comment.