Skip to content

Commit

Permalink
Merge pull request #219 from expipiplus1/joe-162-clean
Browse files Browse the repository at this point in the history
Bump spec version to 1.2.162 and other things
  • Loading branch information
expipiplus1 authored Nov 25, 2020
2 parents 68d47e9 + 41592b1 commit cc120a0
Show file tree
Hide file tree
Showing 756 changed files with 82,123 additions and 16,797 deletions.
6 changes: 3 additions & 3 deletions VulkanMemoryAllocator/VulkanMemoryAllocator.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ cabal-version: 2.2
--
-- see: https://github.com/sol/hpack
--
-- hash: 092e2d884bd8854f8d4ff976ae245ec1b5534fa63efae7f0283056bbb3f999d0
-- hash: fcf45270da7fe44091b7dee466087cd52abed25e68532b85a04a30915dd1da94

name: VulkanMemoryAllocator
version: 0.3.9
version: 0.3.10
synopsis: Bindings to the VulkanMemoryAllocator library
category: Graphics
homepage: https://github.com/expipiplus1/vulkan#readme
Expand Down Expand Up @@ -65,7 +65,7 @@ library
, bytestring
, transformers
, vector
, vulkan ==3.6.*
, vulkan >=3.6 && <3.8
if flag(safe-foreign-calls)
cpp-options: -DSAFE_FOREIGN_CALLS
if flag(vma-ndebug)
Expand Down
4 changes: 4 additions & 0 deletions VulkanMemoryAllocator/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## WIP

## [0.3.10] - 2020-11-24

- Documentation fixes

## [0.3.9] - 2020-11-15

- Derive `FiniteBits` for bitmasks
Expand Down
4 changes: 2 additions & 2 deletions VulkanMemoryAllocator/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: VulkanMemoryAllocator
version: "0.3.9"
version: "0.3.10"
synopsis: Bindings to the VulkanMemoryAllocator library
category: Graphics
maintainer: Joe Hermaszewski <[email protected]>
Expand All @@ -20,7 +20,7 @@ library:
src/lib.cpp
dependencies:
- base <5
- vulkan == 3.6.*
- vulkan >= 3.6 && < 3.8
- bytestring
- transformers
- vector
Expand Down
381 changes: 200 additions & 181 deletions VulkanMemoryAllocator/src/VulkanMemoryAllocator.hs

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,10 @@ packages:
./utils
./examples
./generate-new/

source-repository-package
type: git
location: https://github.com/expipiplus1/brittany.git
tag: b80f77c36bda563665c616abbdb1eaaf35b1da1c

allow-newer: strict
9 changes: 9 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,18 @@

## WIP

## [3.7] - 2020-11-24
- Bump API version to v1.2.162
- This is a breaking change to anyone using VK_KHR_ray_tracing (which no
longer exists)
- Add bracketing functions for `withRayTracingPipelinesKHR` and
`withRayTracingPipelinesNV`
- Add all possible storable instances for Vulkan structs
- Remove tuples from the constructors of `ClearColorValue`
- Unpack top level tuple in `TransformMatrixKHR`, the `matrix` record accessor
has been split into `matrixRow0`, `matrixRow1`, and `matrixRow2`
- Add extension documentation to extension modules.
- Tweak ordering of documentation in Haddocks to make it more user-friendly

## [3.6.15] - 2020-11-16
- Bump API version to v1.2.161
Expand Down
2 changes: 1 addition & 1 deletion examples/hlsl/Render.hs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ myRecordCommandBuffer Frame {..} imageIndex = do
{ renderPass = srRenderPass
, framebuffer = srFramebuffers ! fromIntegral imageIndex
, renderArea = Rect2D { offset = zero, extent = siImageExtent }
, clearValues = [Color (Float32 (0.3, 0.4, 0.8, 1))]
, clearValues = [Color (Float32 0.3 0.4 0.8 1)]
}
cmdUseRenderPass' renderPassBeginInfo SUBPASS_CONTENTS_INLINE $ do
cmdSetViewport'
Expand Down
2 changes: 1 addition & 1 deletion examples/offscreen/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ render = do
{ renderPass = renderPass
, framebuffer = framebuffer
, renderArea = Rect2D zero (Extent2D width height)
, clearValues = [Color (Float32 (0.1, 0.1, 0.1, 1))]
, clearValues = [Color (Float32 0.1 0.1 0.1 1)]
}
cmdUseRenderPass commandBuffer
renderPassBeginInfo
Expand Down
4 changes: 2 additions & 2 deletions examples/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ executables:
- unliftio
- vector
- vulkan
- vulkan-utils
- vulkan-utils >= 0.3

hlsl:
main: Main.hs
Expand All @@ -131,7 +131,7 @@ executables:
- unliftio
- vector
- vulkan
- vulkan-utils
- vulkan-utils >= 0.3
- file-embed
- extra
- filepath
Expand Down
2 changes: 1 addition & 1 deletion examples/resize/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ draw = do
{ renderPass = fRenderPass
, framebuffer = fFramebuffers imageIndex
, renderArea = Rect2D zero fImageExtent
, clearValues = [Color (Float32 (0.1, 0.1, 0.1, 1))]
, clearValues = [Color (Float32 0.1 0.1 0.1 1)]
}
cmdSetViewport'
0
Expand Down
2 changes: 1 addition & 1 deletion examples/sdl-triangle/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ createCommandBuffers dev renderPass graphicsPipeline graphicsQueueFamilyIndex fr
, renderArea = Rect2D { offset = zero
, extent = swapchainExtent
}
, clearValues = [Color (Float32 (0.1, 0.1, 0.1, 0))]
, clearValues = [Color (Float32 0.1 0.1 0.1 0)]
}
cmdUseRenderPass buffer renderPassBeginInfo SUBPASS_CONTENTS_INLINE
$ do
Expand Down
6 changes: 3 additions & 3 deletions examples/vulkan-examples.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cabal-version: 2.2
--
-- see: https://github.com/sol/hpack
--
-- hash: c641a1d3b72c0ffdef54bfcca0660561a30596c0e2e2e2f46676e51ffe52da17
-- hash: 07469fd86a282e5431bb11f41a2b513268d1238cb7897b4d75f8a5ecda9438f5

name: vulkan-examples
version: 0.1.0.0
Expand Down Expand Up @@ -102,7 +102,7 @@ executable hlsl
, unliftio
, vector
, vulkan
, vulkan-utils
, vulkan-utils >=0.3
if os(windows)
ghc-options: -optl-mconsole
if impl(ghc < 8.10.0)
Expand Down Expand Up @@ -238,7 +238,7 @@ executable timeline-semaphore
, unliftio
, vector
, vulkan
, vulkan-utils
, vulkan-utils >=0.3
if os(windows)
ghc-options: -optl-mconsole
default-language: Haskell2010
2 changes: 1 addition & 1 deletion generate-new/Vulkan-Docs
Submodule Vulkan-Docs updated 51 files
+33 −0 ChangeLog.txt
+1 −1 Makefile
+539 −0 appendices/VK_KHR_acceleration_structure.txt
+8 −15 appendices/VK_KHR_deferred_host_operations.txt
+139 −0 appendices/VK_KHR_ray_query.txt
+0 −432 appendices/VK_KHR_ray_tracing.txt
+384 −0 appendices/VK_KHR_ray_tracing_pipeline.txt
+18 −12 appendices/glossary.txt
+24 −24 appendices/memorymodel.txt
+71 −11 appendices/spirvenv.txt
+8 −8 chapters/VK_EXT_pipeline_creation_feedback/pipelines.txt
+15 −50 chapters/VK_KHR_deferred_host_operations/deferred_host_operations.txt
+43 −6 chapters/VK_NV_ray_tracing/raytracing-descriptors.txt
+213 −106 chapters/VK_NV_ray_tracing/raytracing-host-rtas.txt
+237 −88 chapters/VK_NV_ray_tracing/raytracing-pipelines.txt
+342 −283 chapters/VK_NV_ray_tracing/raytracing-resources.txt
+826 −428 chapters/VK_NV_ray_tracing/raytracing.txt
+189 −46 chapters/commonvalidity/build_acceleration_structure_common.txt
+189 −0 chapters/commonvalidity/build_acceleration_structure_device_common.txt
+21 −0 chapters/commonvalidity/build_acceleration_structure_nonindirect_common.txt
+8 −4 chapters/commonvalidity/copy_acceleration_structure_common.txt
+0 −12 chapters/commonvalidity/copy_acceleration_structure_to_buffer_common.txt
+0 −16 chapters/commonvalidity/copy_buffer_to_acceleration_structure_common.txt
+5 −0 chapters/commonvalidity/create_ray_tracing_pipelines_common.txt
+13 −0 chapters/commonvalidity/deferred_operations_common.txt
+0 −3 chapters/commonvalidity/ray_tracing_pipeline_create_info_common.txt
+0 −5 chapters/commonvalidity/trace_rays_common.txt
+80 −78 chapters/commonvalidity/trace_rays_common_khr.txt
+1 −2 chapters/commonvalidity/write_acceleration_structure_properties_common.txt
+5 −2 chapters/debugging.txt
+115 −28 chapters/descriptorsets.txt
+4 −4 chapters/drawing.txt
+153 −65 chapters/features.txt
+14 −4 chapters/formats.txt
+8 −8 chapters/fundamentals.txt
+6 −2 chapters/initialization.txt
+47 −34 chapters/interfaces.txt
+151 −49 chapters/limits.txt
+51 −31 chapters/pipelines.txt
+7 −8 chapters/queries.txt
+46 −19 chapters/raytraversal.txt
+8 −0 chapters/renderpass.txt
+19 −10 chapters/resources.txt
+6 −6 chapters/shaders.txt
+90 −36 chapters/synchronization.txt
+1 −1 images/ray_tracing_execution.svg
+2 −2 scripts/genvk.py
+9 −5 scripts/testSpecVersion.py
+2 −2 style/markup.txt
+7 −3 vkspec.txt
+811 −686 xml/vk.xml
6 changes: 5 additions & 1 deletion generate-new/generate-new.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cabal-version: 1.12
--
-- see: https://github.com/sol/hpack
--
-- hash: 5239514d98fffcdddcdbabbf880d348e859b4eccc99e9610c0ec8a389c06b434
-- hash: f003049e4e28f45438397824d96b59f210dce0b5135c67e24548bd9019a968f5

name: generate-new
version: 0.0.0
Expand Down Expand Up @@ -61,6 +61,7 @@ library
Render.Spec.Extends
Render.Spec.Versions
Render.SpecInfo
Render.State
Render.Stmts
Render.Stmts.Alloc
Render.Stmts.Poke
Expand Down Expand Up @@ -91,6 +92,7 @@ library
, ascii-progress
, async-pool
, base
, brittany
, bytestring
, casing
, containers
Expand Down Expand Up @@ -150,6 +152,7 @@ executable vk
, ascii-progress
, async-pool
, base
, brittany
, bytestring
, casing
, containers
Expand Down Expand Up @@ -211,6 +214,7 @@ executable vma
, ascii-progress
, async-pool
, base
, brittany
, bytestring
, casing
, containers
Expand Down
1 change: 1 addition & 0 deletions generate-new/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ dependencies:
- async-pool
- base
- bytestring
- brittany
- casing
- containers
- data-default
Expand Down
45 changes: 45 additions & 0 deletions generate-new/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,51 @@ The docbook documentation will be in `docs/docbook`.

During development unfinished bits not to forget are listed here.

### 1.2.162

- [x] optionalness on VkWriteDescriptorSetAccelerationStructureKHR->pAccelerationStructures
- [x] VkAccelerationStructureVersionKHR
- [x] VkAccelerationStructureInstanceKHR
- [x] VkAccelerationStructureBuildGeometryInfoKHR
- [x] VkAccelerationStructureBuildGeometryInfoKHR->pGeometries (esp optionalness)
- [x] VkAccelerationStructureBuildGeometryInfoKHR->ppGeometries (esp optionalness)
- [x] (this maps to the same name as pGeometries!)
- This has been removed from the Haskell bindings
- [x] VkAccelerationStructureCreateInfoKHR->offset
- [x] VkAccelerationStructureVersionInfoKHR->pVersionData
- [x] vkCmdBuildAccelerationStructuresIndirectKHR,
- The `Ptr Word32` type has leaked through, this should be `Vector (Vector Word32)`
- [x] Fix this non-critical issue
- [ ] It's correct now, but it doesn't check the length of the array
- [x] vkCmdBuildAccelerationStructuresKHR, vkBuildAccelerationStructuresKHR
- [x] This is still incorrect as one can't pass multiple
`AccelerationStructureBuildRangeInfoKHR`'s per
`AccelerationStructureBuildGeometryInfoKHR`. It's no more broken than
before though.
- [ ] Fixed, although there's no length checking
- [x] vkGetAccelerationStructureBuildSizesKHR
- [ ] It's correct, but it doesn't check the length of the
`maxPrimitiveCount` array like it would with a sibling array of same length
- [x] pNext is now optional, this breaks the Zero instances

Optional TODOs:

- [x] cmdTraceRaysKHR is not using the storable instance of StridedDeviceAddressRegionKHR
- same for destroyAccelerationStructureKHR not using allocation callbacks
- These are due to the `indirectStruct` case of the `normal` poker
- This is no problem, commands have to allocate structs on the stack anyway
- [x] likewise for `pokeCStruct` of `RayTracingPipelineCreateInfoKHR{..}`
- This one is because we're not looking past pointers when checking for
direct dependents
- Fixed
- [x] Documentation on bracketing functions still mentions the "first"
argument, this should be chagned to "last"
- [ ] AccelerationStructureGeometryAabbsDataKHR could use a simple poke for its
DeviceOrHostAddressConstKHR (is this true for the union in
AccelerationStructureGeometryKHR too)
- [x] Now is the time to remove the top level tuple from TransformMatrixKHR


# VMA TODOs

## TODO
Expand Down
Loading

0 comments on commit cc120a0

Please sign in to comment.