Skip to content

Commit

Permalink
Merge pull request #459 from ThreeOfTwelve/vulkan-update-v1.3.239
Browse files Browse the repository at this point in the history
Update Vulkan to v1.3.239
  • Loading branch information
expipiplus1 authored Jan 20, 2023
2 parents 7fdf4a1 + 98a7d87 commit f8a04a3
Show file tree
Hide file tree
Showing 44 changed files with 5,031 additions and 279 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.24.4] - 2023-01-20
- Bump API version to v1.3.239

## [3.24.3] - 2022-12-28
- Bump API version to v1.3.238

Expand Down
2 changes: 1 addition & 1 deletion generate-new/Vulkan-Docs
Submodule Vulkan-Docs updated 37 files
+79 −0 ChangeLog.adoc
+1 −1 Makefile
+276 −0 appendices/VK_HUAWEI_cluster_culling_shader.adoc
+2 −2 appendices/VK_KHR_create_renderpass2.adoc
+1 −1 appendices/VK_KHR_format_feature_flags2.adoc
+108 −0 chapters/VK_HUAWEI_cluster_culling_shader/clusterculling.adoc
+98 −0 chapters/VK_HUAWEI_cluster_culling_shader/drawing.adoc
+12 −9 chapters/VK_KHR_swapchain/wsi.adoc
+4 −2 chapters/commonvalidity/access_mask_2_common.adoc
+39 −0 chapters/commonvalidity/copy_bufferimage_to_imagebuffer_buffer_alignment_common.adoc
+0 −27 chapters/commonvalidity/copy_bufferimage_to_imagebuffer_common.adoc
+3 −1 chapters/commonvalidity/draw_common.adoc
+8 −0 chapters/commonvalidity/draw_indexed_common.adoc
+76 −0 chapters/commonvalidity/image_layout_transition_common.adoc
+0 −68 chapters/commonvalidity/image_memory_barrier_common.adoc
+4 −0 chapters/copies.adoc
+9 −9 chapters/descriptorsets.adoc
+8 −20 chapters/drawing.adoc
+30 −2 chapters/features.adoc
+17 −12 chapters/formats.adoc
+4 −2 chapters/fragops.adoc
+210 −1 chapters/interfaces.adoc
+52 −0 chapters/limits.adoc
+4 −4 chapters/memory.adoc
+35 −2 chapters/pipelines.adoc
+17 −0 chapters/renderpass.adoc
+12 −4 chapters/resources.adoc
+36 −0 chapters/shaders.adoc
+13 −0 chapters/synchronization.adoc
+7 −0 chapters/video_decode_h265_extensions.adoc
+1 −1 proposals/Roadmap.adoc
+1 −1 proposals/VK_EXT_mesh_shader.adoc
+178 −0 proposals/VK_HUAWEI_cluster_culling_shader.adoc
+2 −0 scripts/reg.py
+42 −0 scripts/stripAPI.py
+4 −0 vkspec.adoc
+74 −6 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.24.3"
version: "3.24.4"
synopsis: Bindings to the Vulkan graphics API.
description: Please see [the readme](https://github.com/expipiplus1/vulkan/#readme)
category: Graphics
Expand Down
9 changes: 9 additions & 0 deletions src/Vulkan/CStruct/Extends.hs
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,8 @@ import {-# SOURCE #-} Vulkan.Extensions.VK_EXT_blend_operation_advanced (Physica
import {-# SOURCE #-} Vulkan.Extensions.VK_EXT_border_color_swizzle (PhysicalDeviceBorderColorSwizzleFeaturesEXT)
import {-# SOURCE #-} Vulkan.Core12.Promoted_From_VK_KHR_buffer_device_address (PhysicalDeviceBufferDeviceAddressFeatures)
import {-# SOURCE #-} Vulkan.Extensions.VK_EXT_buffer_device_address (PhysicalDeviceBufferDeviceAddressFeaturesEXT)
import {-# SOURCE #-} Vulkan.Extensions.VK_HUAWEI_cluster_culling_shader (PhysicalDeviceClusterCullingShaderFeaturesHUAWEI)
import {-# SOURCE #-} Vulkan.Extensions.VK_HUAWEI_cluster_culling_shader (PhysicalDeviceClusterCullingShaderPropertiesHUAWEI)
import {-# SOURCE #-} Vulkan.Extensions.VK_AMD_device_coherent_memory (PhysicalDeviceCoherentMemoryFeaturesAMD)
import {-# SOURCE #-} Vulkan.Extensions.VK_EXT_color_write_enable (PhysicalDeviceColorWriteEnableFeaturesEXT)
import {-# SOURCE #-} Vulkan.Extensions.VK_NV_compute_shader_derivatives (PhysicalDeviceComputeShaderDerivativesFeaturesNV)
Expand Down Expand Up @@ -1117,6 +1119,7 @@ type family Extends (a :: [Type] -> Type) (b :: Type) :: Constraint where
Extends DeviceCreateInfo PhysicalDevicePortabilitySubsetFeaturesKHR = ()
Extends DeviceCreateInfo PhysicalDevice4444FormatsFeaturesEXT = ()
Extends DeviceCreateInfo PhysicalDeviceSubpassShadingFeaturesHUAWEI = ()
Extends DeviceCreateInfo PhysicalDeviceClusterCullingShaderFeaturesHUAWEI = ()
Extends DeviceCreateInfo PhysicalDeviceShaderImageAtomicInt64FeaturesEXT = ()
Extends DeviceCreateInfo PhysicalDeviceFragmentShadingRateFeaturesKHR = ()
Extends DeviceCreateInfo PhysicalDeviceShaderTerminateInvocationFeatures = ()
Expand Down Expand Up @@ -1350,6 +1353,7 @@ type family Extends (a :: [Type] -> Type) (b :: Type) :: Constraint where
Extends PhysicalDeviceFeatures2 PhysicalDevicePortabilitySubsetFeaturesKHR = ()
Extends PhysicalDeviceFeatures2 PhysicalDevice4444FormatsFeaturesEXT = ()
Extends PhysicalDeviceFeatures2 PhysicalDeviceSubpassShadingFeaturesHUAWEI = ()
Extends PhysicalDeviceFeatures2 PhysicalDeviceClusterCullingShaderFeaturesHUAWEI = ()
Extends PhysicalDeviceFeatures2 PhysicalDeviceShaderImageAtomicInt64FeaturesEXT = ()
Extends PhysicalDeviceFeatures2 PhysicalDeviceFragmentShadingRateFeaturesKHR = ()
Extends PhysicalDeviceFeatures2 PhysicalDeviceShaderTerminateInvocationFeatures = ()
Expand Down Expand Up @@ -1453,6 +1457,7 @@ type family Extends (a :: [Type] -> Type) (b :: Type) :: Constraint where
Extends PhysicalDeviceProperties2 PhysicalDeviceTexelBufferAlignmentProperties = ()
Extends PhysicalDeviceProperties2 PhysicalDeviceSubgroupSizeControlProperties = ()
Extends PhysicalDeviceProperties2 PhysicalDeviceSubpassShadingPropertiesHUAWEI = ()
Extends PhysicalDeviceProperties2 PhysicalDeviceClusterCullingShaderPropertiesHUAWEI = ()
Extends PhysicalDeviceProperties2 PhysicalDeviceLineRasterizationPropertiesEXT = ()
Extends PhysicalDeviceProperties2 PhysicalDeviceVulkan11Properties = ()
Extends PhysicalDeviceProperties2 PhysicalDeviceVulkan12Properties = ()
Expand Down Expand Up @@ -1948,6 +1953,7 @@ peekChainHead ty p c = case ty of
STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_REQUIRED_SUBGROUP_SIZE_CREATE_INFO -> go @PipelineShaderStageRequiredSubgroupSizeCreateInfo
STRUCTURE_TYPE_SUBPASS_SHADING_PIPELINE_CREATE_INFO_HUAWEI -> go @SubpassShadingPipelineCreateInfoHUAWEI
STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBPASS_SHADING_PROPERTIES_HUAWEI -> go @PhysicalDeviceSubpassShadingPropertiesHUAWEI
STRUCTURE_TYPE_PHYSICAL_DEVICE_CLUSTER_CULLING_SHADER_PROPERTIES_HUAWEI -> go @PhysicalDeviceClusterCullingShaderPropertiesHUAWEI
STRUCTURE_TYPE_MEMORY_OPAQUE_CAPTURE_ADDRESS_ALLOCATE_INFO -> go @MemoryOpaqueCaptureAddressAllocateInfo
STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_FEATURES_EXT -> go @PhysicalDeviceLineRasterizationFeaturesEXT
STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_PROPERTIES_EXT -> go @PhysicalDeviceLineRasterizationPropertiesEXT
Expand Down Expand Up @@ -1986,6 +1992,7 @@ peekChainHead ty p c = case ty of
STRUCTURE_TYPE_PHYSICAL_DEVICE_PORTABILITY_SUBSET_PROPERTIES_KHR -> go @PhysicalDevicePortabilitySubsetPropertiesKHR
STRUCTURE_TYPE_PHYSICAL_DEVICE_4444_FORMATS_FEATURES_EXT -> go @PhysicalDevice4444FormatsFeaturesEXT
STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBPASS_SHADING_FEATURES_HUAWEI -> go @PhysicalDeviceSubpassShadingFeaturesHUAWEI
STRUCTURE_TYPE_PHYSICAL_DEVICE_CLUSTER_CULLING_SHADER_FEATURES_HUAWEI -> go @PhysicalDeviceClusterCullingShaderFeaturesHUAWEI
STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_IMAGE_ATOMIC_INT64_FEATURES_EXT -> go @PhysicalDeviceShaderImageAtomicInt64FeaturesEXT
STRUCTURE_TYPE_FRAGMENT_SHADING_RATE_ATTACHMENT_INFO_KHR -> go @FragmentShadingRateAttachmentInfoKHR
STRUCTURE_TYPE_PIPELINE_FRAGMENT_SHADING_RATE_STATE_CREATE_INFO_KHR -> go @PipelineFragmentShadingRateStateCreateInfoKHR
Expand Down Expand Up @@ -2424,6 +2431,7 @@ infix 6 ::&
{-# complete (::&) :: PipelineShaderStageRequiredSubgroupSizeCreateInfo #-}
{-# complete (::&) :: SubpassShadingPipelineCreateInfoHUAWEI #-}
{-# complete (::&) :: PhysicalDeviceSubpassShadingPropertiesHUAWEI #-}
{-# complete (::&) :: PhysicalDeviceClusterCullingShaderPropertiesHUAWEI #-}
{-# complete (::&) :: MemoryOpaqueCaptureAddressAllocateInfo #-}
{-# complete (::&) :: PhysicalDeviceLineRasterizationFeaturesEXT #-}
{-# complete (::&) :: PhysicalDeviceLineRasterizationPropertiesEXT #-}
Expand Down Expand Up @@ -2462,6 +2470,7 @@ infix 6 ::&
{-# complete (::&) :: PhysicalDevicePortabilitySubsetPropertiesKHR #-}
{-# complete (::&) :: PhysicalDevice4444FormatsFeaturesEXT #-}
{-# complete (::&) :: PhysicalDeviceSubpassShadingFeaturesHUAWEI #-}
{-# complete (::&) :: PhysicalDeviceClusterCullingShaderFeaturesHUAWEI #-}
{-# complete (::&) :: PhysicalDeviceShaderImageAtomicInt64FeaturesEXT #-}
{-# complete (::&) :: FragmentShadingRateAttachmentInfoKHR #-}
{-# complete (::&) :: PipelineFragmentShadingRateStateCreateInfoKHR #-}
Expand Down
96 changes: 54 additions & 42 deletions src/Vulkan/Core10/CommandBufferBuilding.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2729,7 +2729,8 @@ foreign import ccall
-- dynamic state enabled then
-- 'Vulkan.Extensions.VK_EXT_discard_rectangles.cmdSetDiscardRectangleEXT'
-- /must/ have been called in the current command buffer prior to this
-- drawing command
-- drawing command for each discard rectangle in
-- 'Vulkan.Extensions.VK_EXT_discard_rectangles.PipelineDiscardRectangleStateCreateInfoEXT'::@discardRectangleCount@
--
-- - #VUID-vkCmdDraw-pDepthAttachment-06181# If the current render pass
-- instance was begun with
Expand Down Expand Up @@ -4542,7 +4543,8 @@ foreign import ccall
-- dynamic state enabled then
-- 'Vulkan.Extensions.VK_EXT_discard_rectangles.cmdSetDiscardRectangleEXT'
-- /must/ have been called in the current command buffer prior to this
-- drawing command
-- drawing command for each discard rectangle in
-- 'Vulkan.Extensions.VK_EXT_discard_rectangles.PipelineDiscardRectangleStateCreateInfoEXT'::@discardRectangleCount@
--
-- - #VUID-vkCmdDrawIndexed-pDepthAttachment-06181# If the current render
-- pass instance was begun with
Expand Down Expand Up @@ -5466,8 +5468,8 @@ foreign import ccall
--
-- - #VUID-vkCmdDrawIndexed-None-07312# An index buffer /must/ be bound
--
-- - #VUID-vkCmdDrawIndexed-robustBufferAccess2-07788# If
-- <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#features-robustBufferAccess2 robustBufferAccess2>
-- - #VUID-vkCmdDrawIndexed-robustBufferAccess2-07825# If
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#features-robustBufferAccess2 robustBufferAccess2>
-- is not enabled, (@indexSize@ × (@firstIndex@ + @indexCount@) +
-- @offset@) /must/ be less than or equal to the size of the bound
-- index buffer, with @indexSize@ being based on the type specified by
Expand Down Expand Up @@ -6356,7 +6358,8 @@ foreign import ccall
-- dynamic state enabled then
-- 'Vulkan.Extensions.VK_EXT_discard_rectangles.cmdSetDiscardRectangleEXT'
-- /must/ have been called in the current command buffer prior to this
-- drawing command
-- drawing command for each discard rectangle in
-- 'Vulkan.Extensions.VK_EXT_discard_rectangles.PipelineDiscardRectangleStateCreateInfoEXT'::@discardRectangleCount@
--
-- - #VUID-vkCmdDrawIndirect-pDepthAttachment-06181# If the current
-- render pass instance was begun with
Expand Down Expand Up @@ -8178,7 +8181,8 @@ foreign import ccall
-- dynamic state enabled then
-- 'Vulkan.Extensions.VK_EXT_discard_rectangles.cmdSetDiscardRectangleEXT'
-- /must/ have been called in the current command buffer prior to this
-- drawing command
-- drawing command for each discard rectangle in
-- 'Vulkan.Extensions.VK_EXT_discard_rectangles.PipelineDiscardRectangleStateCreateInfoEXT'::@discardRectangleCount@
--
-- - #VUID-vkCmdDrawIndexedIndirect-pDepthAttachment-06181# If the
-- current render pass instance was begun with
Expand Down Expand Up @@ -9104,6 +9108,14 @@ foreign import ccall
-- - #VUID-vkCmdDrawIndexedIndirect-None-07312# An index buffer /must/ be
-- bound
--
-- - #VUID-vkCmdDrawIndexedIndirect-robustBufferAccess2-07825# If
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#features-robustBufferAccess2 robustBufferAccess2>
-- is not enabled, (@indexSize@ × (@firstIndex@ + @indexCount@) +
-- @offset@) /must/ be less than or equal to the size of the bound
-- index buffer, with @indexSize@ being based on the type specified by
-- @indexType@, where the index buffer, @indexType@, and @offset@ are
-- specified via 'cmdBindIndexBuffer'
--
-- - #VUID-vkCmdDrawIndexedIndirect-drawCount-00528# If @drawCount@ is
-- greater than @1@, @stride@ /must/ be a multiple of @4@ and /must/ be
-- greater than or equal to
Expand Down Expand Up @@ -11466,19 +11478,6 @@ foreign import ccall
-- 'Vulkan.Core10.Enums.ImageAspectFlagBits.IMAGE_ASPECT_DEPTH_BIT' or
-- 'Vulkan.Core10.Enums.ImageAspectFlagBits.IMAGE_ASPECT_STENCIL_BIT'
--
-- - #VUID-vkCmdCopyBufferToImage-bufferOffset-01558# If @dstImage@ does
-- not have either a depth\/stencil or a
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-requiring-sampler-ycbcr-conversion multi-planar format>,
-- then for each element of @pRegions@, @bufferOffset@ /must/ be a
-- multiple of the format’s texel block size
--
-- - #VUID-vkCmdCopyBufferToImage-bufferOffset-01559# If @dstImage@ has a
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-requiring-sampler-ycbcr-conversion multi-planar format>,
-- then for each element of @pRegions@, @bufferOffset@ /must/ be a
-- multiple of the element size of the compatible format for the format
-- and the @aspectMask@ of the @imageSubresource@ as defined in
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-compatible-planes ???>
--
-- - #VUID-vkCmdCopyBufferToImage-srcImage-00199# If @dstImage@ is of
-- type 'Vulkan.Core10.Enums.ImageType.IMAGE_TYPE_1D', then for each
-- element of @pRegions@, @imageOffset.y@ /must/ be @0@ and
Expand Down Expand Up @@ -11507,11 +11506,6 @@ foreign import ccall
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-compatibility-classes texel block extent height>
-- of the 'Vulkan.Core10.Enums.Format.Format' of @dstImage@
--
-- - #VUID-vkCmdCopyBufferToImage-pRegions-07273# For each element of
-- @pRegions@, @bufferOffset@ /must/ be a multiple of the
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-compatibility-classes texel block size>
-- of the 'Vulkan.Core10.Enums.Format.Format' of @dstImage@
--
-- - #VUID-vkCmdCopyBufferToImage-pRegions-07274# For each element of
-- @pRegions@, @imageOffset.x@ /must/ be a multiple of the
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-compatibility-classes texel block extent width>
Expand Down Expand Up @@ -11582,6 +11576,24 @@ foreign import ccall
-- and then multiplied by the texel block size of @dstImage@ /must/ be
-- less than or equal to 231-1
--
-- - #VUID-vkCmdCopyBufferToImage-bufferOffset-01558# If @dstImage@ does
-- not have either a depth\/stencil or a
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-requiring-sampler-ycbcr-conversion multi-planar format>,
-- then for each element of @pRegions@, @bufferOffset@ /must/ be a
-- multiple of the format’s texel block size
--
-- - #VUID-vkCmdCopyBufferToImage-bufferOffset-01559# If @dstImage@ has a
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-requiring-sampler-ycbcr-conversion multi-planar format>,
-- then for each element of @pRegions@, @bufferOffset@ /must/ be a
-- multiple of the element size of the compatible format for the format
-- and the @aspectMask@ of the @imageSubresource@ as defined in
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-compatible-planes ???>
--
-- - #VUID-vkCmdCopyBufferToImage-pRegions-07273# For each element of
-- @pRegions@, @bufferOffset@ /must/ be a multiple of the
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-compatibility-classes texel block size>
-- of the 'Vulkan.Core10.Enums.Format.Format' of @dstImage@
--
-- - #VUID-vkCmdCopyBufferToImage-srcImage-04053# If @dstImage@ has a
-- depth\/stencil format, the @bufferOffset@ member of any element of
-- @pRegions@ /must/ be a multiple of @4@
Expand Down Expand Up @@ -11823,19 +11835,6 @@ foreign import ccall
-- @commandBuffer@’s command pool’s queue family, as described in
-- 'Vulkan.Core10.DeviceInitialization.QueueFamilyProperties'
--
-- - #VUID-vkCmdCopyImageToBuffer-bufferOffset-01558# If @srcImage@ does
-- not have either a depth\/stencil or a
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-requiring-sampler-ycbcr-conversion multi-planar format>,
-- then for each element of @pRegions@, @bufferOffset@ /must/ be a
-- multiple of the format’s texel block size
--
-- - #VUID-vkCmdCopyImageToBuffer-bufferOffset-01559# If @srcImage@ has a
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-requiring-sampler-ycbcr-conversion multi-planar format>,
-- then for each element of @pRegions@, @bufferOffset@ /must/ be a
-- multiple of the element size of the compatible format for the format
-- and the @aspectMask@ of the @imageSubresource@ as defined in
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-compatible-planes ???>
--
-- - #VUID-vkCmdCopyImageToBuffer-srcImage-00199# If @srcImage@ is of
-- type 'Vulkan.Core10.Enums.ImageType.IMAGE_TYPE_1D', then for each
-- element of @pRegions@, @imageOffset.y@ /must/ be @0@ and
Expand Down Expand Up @@ -11864,11 +11863,6 @@ foreign import ccall
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-compatibility-classes texel block extent height>
-- of the 'Vulkan.Core10.Enums.Format.Format' of @srcImage@
--
-- - #VUID-vkCmdCopyImageToBuffer-pRegions-07273# For each element of
-- @pRegions@, @bufferOffset@ /must/ be a multiple of the
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-compatibility-classes texel block size>
-- of the 'Vulkan.Core10.Enums.Format.Format' of @srcImage@
--
-- - #VUID-vkCmdCopyImageToBuffer-pRegions-07274# For each element of
-- @pRegions@, @imageOffset.x@ /must/ be a multiple of the
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-compatibility-classes texel block extent width>
Expand Down Expand Up @@ -11939,6 +11933,24 @@ foreign import ccall
-- and then multiplied by the texel block size of @srcImage@ /must/ be
-- less than or equal to 231-1
--
-- - #VUID-vkCmdCopyImageToBuffer-bufferOffset-01558# If @srcImage@ does
-- not have either a depth\/stencil or a
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-requiring-sampler-ycbcr-conversion multi-planar format>,
-- then for each element of @pRegions@, @bufferOffset@ /must/ be a
-- multiple of the format’s texel block size
--
-- - #VUID-vkCmdCopyImageToBuffer-bufferOffset-01559# If @srcImage@ has a
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-requiring-sampler-ycbcr-conversion multi-planar format>,
-- then for each element of @pRegions@, @bufferOffset@ /must/ be a
-- multiple of the element size of the compatible format for the format
-- and the @aspectMask@ of the @imageSubresource@ as defined in
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-compatible-planes ???>
--
-- - #VUID-vkCmdCopyImageToBuffer-pRegions-07273# For each element of
-- @pRegions@, @bufferOffset@ /must/ be a multiple of the
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-compatibility-classes texel block size>
-- of the 'Vulkan.Core10.Enums.Format.Format' of @srcImage@
--
-- - #VUID-vkCmdCopyImageToBuffer-srcImage-04053# If @srcImage@ has a
-- depth\/stencil format, the @bufferOffset@ member of any element of
-- @pRegions@ /must/ be a multiple of @4@
Expand Down
25 changes: 13 additions & 12 deletions src/Vulkan/Core10/DescriptorSet.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1135,6 +1135,19 @@ instance Zero DescriptorBufferInfo where
-- - #VUID-VkDescriptorImageInfo-imageView-06712# @imageView@ /must/ not
-- be a 2D array image view created from a 3D image
--
-- - #VUID-VkDescriptorImageInfo-imageView-07795# If @imageView@ is a 2D
-- view created from a 3D image, then @descriptorType@ /must/ be
-- 'Vulkan.Core10.Enums.DescriptorType.DESCRIPTOR_TYPE_STORAGE_IMAGE',
-- 'Vulkan.Core10.Enums.DescriptorType.DESCRIPTOR_TYPE_SAMPLED_IMAGE',
-- or
-- 'Vulkan.Core10.Enums.DescriptorType.DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER'
--
-- - #VUID-VkDescriptorImageInfo-imageView-07796# If @imageView@ is a 2D
-- view created from a 3D image, then the image /must/ have been
-- created with
-- 'Vulkan.Core10.Enums.ImageCreateFlagBits.IMAGE_CREATE_2D_VIEW_COMPATIBLE_BIT_EXT'
-- set
--
-- - #VUID-VkDescriptorImageInfo-descriptorType-06713# If the
-- <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#features-image2DViewOf3D image2DViewOf3D>
-- feature is not enabled and @descriptorType@ is
Expand Down Expand Up @@ -1647,18 +1660,6 @@ instance Zero DescriptorImageInfo where
-- been created with
-- 'Vulkan.Core10.Enums.ImageUsageFlagBits.IMAGE_USAGE_STORAGE_BIT' set
--
-- - #VUID-VkWriteDescriptorSet-descriptorType-06710# If @descriptorType@
-- is
-- 'Vulkan.Core10.Enums.DescriptorType.DESCRIPTOR_TYPE_STORAGE_IMAGE',
-- 'Vulkan.Core10.Enums.DescriptorType.DESCRIPTOR_TYPE_SAMPLED_IMAGE',
-- or
-- 'Vulkan.Core10.Enums.DescriptorType.DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER',
-- each @imageView@ member of each element of @pImageInfo@ that is a 2D
-- image view created from a 3D image /must/ have been created from an
-- image created with
-- 'Vulkan.Core10.Enums.ImageCreateFlagBits.IMAGE_CREATE_2D_VIEW_COMPATIBLE_BIT_EXT'
-- set
--
-- - #VUID-VkWriteDescriptorSet-descriptorType-02752# If @descriptorType@
-- is 'Vulkan.Core10.Enums.DescriptorType.DESCRIPTOR_TYPE_SAMPLER',
-- then @dstSet@ /must/ not have been allocated with a layout that
Expand Down
Loading

0 comments on commit f8a04a3

Please sign in to comment.