Skip to content

Commit

Permalink
Merge pull request #296 from ThreeOfTwelve/vulkan-update-v1.2.181
Browse files Browse the repository at this point in the history
Update Vulkan to v1.2.181
  • Loading branch information
expipiplus1 authored Jun 14, 2021
2 parents 4381ffd + f3492b4 commit 107e54a
Show file tree
Hide file tree
Showing 14 changed files with 62 additions and 77 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## WIP

## [3.10.4] - 2021-06-14
- Bump API version to v1.2.181

## [3.10.3] - 2021-06-07
- Bump API version to v1.2.180

Expand Down
2 changes: 1 addition & 1 deletion generate-new/Vulkan-Docs
Submodule Vulkan-Docs updated 43 files
+55 −0 ChangeLog.txt
+1 −1 Makefile
+2 −1 appendices/VK_EXT_custom_border_color.txt
+0 −4 appendices/VK_EXT_debug_report.txt
+0 −4 appendices/VK_EXT_debug_utils.txt
+16 −15 appendices/VK_EXT_global_priority_query.txt
+2 −1 appendices/VK_KHR_shader_subgroup_uniform_control_flow.txt
+2 −2 appendices/VK_NV_acquire_winrt_display.txt
+4 −4 appendices/VK_QCOM_rotated_copy_commands.txt
+5 −5 appendices/compressedtex.txt
+42 −20 appendices/spirvenv.txt
+3 −3 chapters/VK_EXT_validation_features.txt
+3 −3 chapters/VK_KHR_pipeline_executable_properties/pipelines.txt
+8 −0 chapters/accelstructures.txt
+4 −4 chapters/cmdbuffers.txt
+2 −1 chapters/commonvalidity/build_acceleration_structure_common.txt
+13 −10 chapters/commonvalidity/draw_common.txt
+2 −2 chapters/descriptorsets.txt
+29 −24 chapters/devsandqueues.txt
+20 −17 chapters/features.txt
+4 −2 chapters/formats.txt
+43 −32 chapters/fxvertex.txt
+47 −0 chapters/initialization.txt
+11 −4 chapters/interfaces.txt
+2 −2 chapters/limits.txt
+36 −17 chapters/pipelines.txt
+4 −5 chapters/primsrast.txt
+7 −7 chapters/raytraversal.txt
+2 −1 chapters/renderpass.txt
+19 −15 chapters/resources.txt
+0 −6 chapters/shaders.txt
+71 −69 chapters/synchronization.txt
+2 −1 chapters/vertexpostproc.txt
+5 −5 chapters/video_decode_extensions.txt
+1 −1 chapters/video_decode_h264_extensions.txt
+2 −2 chapters/video_encode_extensions.txt
+15 −16 chapters/video_extensions.txt
+38 −247 images/DecodeSessionDpbDecodeWithClone.svg
+36 −234 images/DecodeSessionDpbDecodeWithOutputToReferencePictureSlot.svg
+36 −234 images/DecodeSessionDpbDecodeWithOutputToVkImageViewNoReferencePictureSlotUpdate.svg
+1 −0 proposals/template.asciidoc
+11 −3 registry.txt
+43 −2 xml/vk.xml
2 changes: 1 addition & 1 deletion package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: vulkan
version: "3.10.3"
version: "3.10.4"
synopsis: Bindings to the Vulkan graphics API.
category: Graphics
maintainer: Joe Hermaszewski <[email protected]>
Expand Down
28 changes: 28 additions & 0 deletions src/Vulkan/Core10/DeviceInitialization.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1379,6 +1379,34 @@ instance Zero ApplicationInfo where
-- | VkInstanceCreateInfo - Structure specifying parameters of a newly
-- created instance
--
-- = Description
--
-- To capture events that occur while creating or destroying an instance,
-- an application can link a
-- 'Vulkan.Extensions.VK_EXT_debug_report.DebugReportCallbackCreateInfoEXT'
-- structure or a
-- 'Vulkan.Extensions.VK_EXT_debug_utils.DebugUtilsMessengerCreateInfoEXT'
-- structure to the @pNext@ element of the 'InstanceCreateInfo' structure
-- given to 'createInstance'. This callback is only valid for the duration
-- of the 'createInstance' and the 'destroyInstance' call. Use
-- 'Vulkan.Extensions.VK_EXT_debug_report.createDebugReportCallbackEXT' or
-- 'Vulkan.Extensions.VK_EXT_debug_utils.createDebugUtilsMessengerEXT' to
-- create persistent callback objects.
--
-- == Valid Usage
--
-- - #VUID-VkInstanceCreateInfo-pNext-04925# If the @pNext@ chain of
-- 'InstanceCreateInfo' includes a
-- 'Vulkan.Extensions.VK_EXT_debug_report.DebugReportCallbackCreateInfoEXT'
-- structure, the list of enabled extensions in
-- @ppEnabledExtensionNames@ /must/ contain VK_EXT_debug_report.
--
-- - #VUID-VkInstanceCreateInfo-pNext-04926# If the @pNext@ chain of
-- 'InstanceCreateInfo' includes a
-- 'Vulkan.Extensions.VK_EXT_debug_utils.DebugUtilsMessengerCreateInfoEXT'
-- structure, the list of enabled extensions in
-- @ppEnabledExtensionNames@ /must/ contain VK_EXT_debug_utils.
--
-- == Valid Usage (Implicit)
--
-- - #VUID-VkInstanceCreateInfo-sType-sType# @sType@ /must/ be
Expand Down
12 changes: 8 additions & 4 deletions src/Vulkan/Core10/Enums/FormatFeatureFlagBits.hs
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,10 @@ type FormatFeatureFlags = FormatFeatureFlagBits
-- using this format as a source.
--
-- - 'FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER_BIT'
-- specifies that the format can do linear sampler filtering
-- (min\/magFilter) whilst sampler Y′CBCR conversion is enabled.
-- specifies that an application /can/ define a
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#samplers-YCbCr-conversion sampler Y′CBCR conversion>
-- using this format as a source with @chromaFilter@ set to
-- 'Vulkan.Core10.Enums.Filter.FILTER_LINEAR'.
--
-- - 'FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BIT'
-- specifies that the format can have different chroma, min, and mag
Expand Down Expand Up @@ -403,8 +405,10 @@ pattern FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPL
pattern FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BIT =
FormatFeatureFlagBits 0x00080000
-- | 'FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER_BIT'
-- specifies that the format can do linear sampler filtering
-- (min\/magFilter) whilst sampler Y′CBCR conversion is enabled.
-- specifies that an application /can/ define a
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#samplers-YCbCr-conversion sampler Y′CBCR conversion>
-- using this format as a source with @chromaFilter@ set to
-- 'Vulkan.Core10.Enums.Filter.FILTER_LINEAR'.
pattern FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER_BIT = FormatFeatureFlagBits 0x00040000
-- | 'FORMAT_FEATURE_MIDPOINT_CHROMA_SAMPLES_BIT' specifies that an
-- application /can/ define a
Expand Down
45 changes: 4 additions & 41 deletions src/Vulkan/Core10/PipelineCache.hs
Original file line number Diff line number Diff line change
Expand Up @@ -297,47 +297,10 @@ foreign import ccall
-- retrieve the same data unless a command that modifies the contents of
-- the cache is called between them.
--
-- Applications /can/ store the data retrieved from the pipeline cache, and
-- use these data, possibly in a future run of the application, to populate
-- new pipeline cache objects. The results of pipeline compiles, however,
-- /may/ depend on the vendor ID, device ID, driver version, and other
-- details of the device. To enable applications to detect when previously
-- retrieved data is incompatible with the device, the initial bytes
-- written to @pData@ /must/ be a header consisting of the following
-- members:
--
-- +--------+----------------------------------------+------------------------------------------------------------------------------------+
-- | Offset | Size | Meaning |
-- +========+========================================+====================================================================================+
-- | 0 | 4 | length in bytes of the entire pipeline cache header written as a stream of bytes, |
-- | | | with the least significant byte first |
-- +--------+----------------------------------------+------------------------------------------------------------------------------------+
-- | 4 | 4 | a 'Vulkan.Core10.Enums.PipelineCacheHeaderVersion.PipelineCacheHeaderVersion' |
-- | | | value written as a stream of bytes, with the least significant byte first |
-- +--------+----------------------------------------+------------------------------------------------------------------------------------+
-- | 8 | 4 | a vendor ID equal to |
-- | | | 'Vulkan.Core10.DeviceInitialization.PhysicalDeviceProperties'::@vendorID@ written |
-- | | | as a stream of bytes, with the least significant byte first |
-- +--------+----------------------------------------+------------------------------------------------------------------------------------+
-- | 12 | 4 | a device ID equal to |
-- | | | 'Vulkan.Core10.DeviceInitialization.PhysicalDeviceProperties'::@deviceID@ written |
-- | | | as a stream of bytes, with the least significant byte first |
-- +--------+----------------------------------------+------------------------------------------------------------------------------------+
-- | 16 | 'Vulkan.Core10.APIConstants.UUID_SIZE' | a pipeline cache ID equal to |
-- | | | 'Vulkan.Core10.DeviceInitialization.PhysicalDeviceProperties'::@pipelineCacheUUID@ |
-- +--------+----------------------------------------+------------------------------------------------------------------------------------+
--
-- Layout for pipeline cache header version
-- 'Vulkan.Core10.Enums.PipelineCacheHeaderVersion.PIPELINE_CACHE_HEADER_VERSION_ONE'
--
-- The first four bytes encode the length of the entire pipeline cache
-- header, in bytes. This value includes all fields in the header including
-- the pipeline cache version field and the size of the length field.
--
-- The next four bytes encode the pipeline cache version, as described for
-- 'Vulkan.Core10.Enums.PipelineCacheHeaderVersion.PipelineCacheHeaderVersion'.
-- A consumer of the pipeline cache /should/ use the cache version to
-- interpret the remainder of the cache header.
-- The initial bytes written to @pData@ /must/ be a header as described in
-- the
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#pipelines-cache-header Pipeline Cache Header>
-- section.
--
-- If @pDataSize@ is less than what is necessary to store this header,
-- nothing will be written to @pData@ and zero will be written to
Expand Down
5 changes: 0 additions & 5 deletions src/Vulkan/Core10/Shader.hs
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,6 @@ foreign import ccall
-- and
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#pipelines-graphics Graphics Pipelines>.
--
-- If the shader stage fails to compile
-- 'Vulkan.Core10.Enums.Result.ERROR_INVALID_SHADER_NV' will be generated
-- and the compile log will be reported back to the application by
-- @VK_EXT_debug_report@ if enabled.
--
-- == Valid Usage (Implicit)
--
-- - #VUID-vkCreateShaderModule-device-parameter# @device@ /must/ be a
Expand Down
6 changes: 1 addition & 5 deletions src/Vulkan/Extensions/VK_EXT_debug_report.hs
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,7 @@
-- application /can/ link a 'DebugReportCallbackCreateInfoEXT' structure to
-- the @pNext@ element of the
-- 'Vulkan.Core10.DeviceInitialization.InstanceCreateInfo' structure given
-- to 'Vulkan.Core10.DeviceInitialization.createInstance'. This callback is
-- only valid for the duration of the
-- 'Vulkan.Core10.DeviceInitialization.createInstance' and the
-- 'Vulkan.Core10.DeviceInitialization.destroyInstance' call. Use
-- 'createDebugReportCallbackEXT' to create persistent callback objects.
-- to 'Vulkan.Core10.DeviceInitialization.createInstance'.
--
-- Example uses: Create three callback objects. One will log errors and
-- warnings to the debug console using Windows @OutputDebugString@. The
Expand Down
6 changes: 1 addition & 5 deletions src/Vulkan/Extensions/VK_EXT_debug_report.hs-boot
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,7 @@
-- application /can/ link a 'DebugReportCallbackCreateInfoEXT' structure to
-- the @pNext@ element of the
-- 'Vulkan.Core10.DeviceInitialization.InstanceCreateInfo' structure given
-- to 'Vulkan.Core10.DeviceInitialization.createInstance'. This callback is
-- only valid for the duration of the
-- 'Vulkan.Core10.DeviceInitialization.createInstance' and the
-- 'Vulkan.Core10.DeviceInitialization.destroyInstance' call. Use
-- 'createDebugReportCallbackEXT' to create persistent callback objects.
-- to 'Vulkan.Core10.DeviceInitialization.createInstance'.
--
-- Example uses: Create three callback objects. One will log errors and
-- warnings to the debug console using Windows @OutputDebugString@. The
Expand Down
6 changes: 1 addition & 5 deletions src/Vulkan/Extensions/VK_EXT_debug_utils.hs
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,7 @@
-- application /can/ link a 'DebugUtilsMessengerCreateInfoEXT' structure to
-- the @pNext@ element of the
-- 'Vulkan.Core10.DeviceInitialization.InstanceCreateInfo' structure given
-- to 'Vulkan.Core10.DeviceInitialization.createInstance'. This callback is
-- only valid for the duration of the
-- 'Vulkan.Core10.DeviceInitialization.createInstance' and the
-- 'Vulkan.Core10.DeviceInitialization.destroyInstance' call. Use
-- 'createDebugUtilsMessengerEXT' to create persistent callback objects.
-- to 'Vulkan.Core10.DeviceInitialization.createInstance'.
--
-- Example uses: Create three callback objects. One will log errors and
-- warnings to the debug console using Windows @OutputDebugString@. The
Expand Down
6 changes: 1 addition & 5 deletions src/Vulkan/Extensions/VK_EXT_debug_utils.hs-boot
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,7 @@
-- application /can/ link a 'DebugUtilsMessengerCreateInfoEXT' structure to
-- the @pNext@ element of the
-- 'Vulkan.Core10.DeviceInitialization.InstanceCreateInfo' structure given
-- to 'Vulkan.Core10.DeviceInitialization.createInstance'. This callback is
-- only valid for the duration of the
-- 'Vulkan.Core10.DeviceInitialization.createInstance' and the
-- 'Vulkan.Core10.DeviceInitialization.destroyInstance' call. Use
-- 'createDebugUtilsMessengerEXT' to create persistent callback objects.
-- to 'Vulkan.Core10.DeviceInitialization.createInstance'.
--
-- Example uses: Create three callback objects. One will log errors and
-- warnings to the debug console using Windows @OutputDebugString@. The
Expand Down
12 changes: 10 additions & 2 deletions src/Vulkan/Extensions/VK_KHR_acceleration_structure.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1461,6 +1461,10 @@ foreign import ccall
--
-- = Description
--
-- This command copies the @pInfo->src@ acceleration structure to the
-- @pInfo->dst@ acceleration structure in the manner specified by
-- @pInfo->mode@.
--
-- Accesses to @pInfo->src@ and @pInfo->dst@ /must/ be
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#synchronization-dependencies synchronized>
-- with the
Expand Down Expand Up @@ -6771,14 +6775,18 @@ newtype CopyAccelerationStructureModeKHR = CopyAccelerationStructureModeKHR Int3
-- | 'COPY_ACCELERATION_STRUCTURE_MODE_CLONE_KHR' creates a direct copy of
-- the acceleration structure specified in @src@ into the one specified by
-- @dst@. The @dst@ acceleration structure /must/ have been created with
-- the same parameters as @src@.
-- the same parameters as @src@. If @src@ contains references to other
-- acceleration structures, @dst@ will reference the same acceleration
-- structures.
pattern COPY_ACCELERATION_STRUCTURE_MODE_CLONE_KHR = CopyAccelerationStructureModeKHR 0
-- | 'COPY_ACCELERATION_STRUCTURE_MODE_COMPACT_KHR' creates a more compact
-- version of an acceleration structure @src@ into @dst@. The acceleration
-- structure @dst@ /must/ have been created with a size at least as large
-- as that returned by 'cmdWriteAccelerationStructuresPropertiesKHR' or
-- 'writeAccelerationStructuresPropertiesKHR' after the build of the
-- acceleration structure specified by @src@.
-- acceleration structure specified by @src@. If @src@ contains references
-- to other acceleration structures, @dst@ will reference the same
-- acceleration structures.
pattern COPY_ACCELERATION_STRUCTURE_MODE_COMPACT_KHR = CopyAccelerationStructureModeKHR 1
-- | 'COPY_ACCELERATION_STRUCTURE_MODE_SERIALIZE_KHR' serializes the
-- acceleration structure to a semi-opaque format which can be reloaded on
Expand Down
4 changes: 2 additions & 2 deletions src/Vulkan/Version.hs
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ import Data.Bits (shiftR)
import Data.Word (Word32)

pattern HEADER_VERSION :: Word32
pattern HEADER_VERSION = 180
pattern HEADER_VERSION = 181


pattern HEADER_VERSION_COMPLETE :: Word32
pattern HEADER_VERSION_COMPLETE = MAKE_API_VERSION 1 2 180
pattern HEADER_VERSION_COMPLETE = MAKE_API_VERSION 1 2 181


pattern MAKE_API_VERSION :: Word32 -> Word32 -> Word32 -> Word32
Expand Down
2 changes: 1 addition & 1 deletion vulkan.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: vulkan
version: 3.10.3
version: 3.10.4
synopsis: Bindings to the Vulkan graphics API.
category: Graphics
homepage: https://github.com/expipiplus1/vulkan#readme
Expand Down

0 comments on commit 107e54a

Please sign in to comment.