Skip to content

Commit f8a04a3

Browse files
authored
Merge pull request #459 from ThreeOfTwelve/vulkan-update-v1.3.239
Update Vulkan to v1.3.239
2 parents 7fdf4a1 + 98a7d87 commit f8a04a3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+5031
-279
lines changed

changelog.md

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## WIP
44

5+
## [3.24.4] - 2023-01-20
6+
- Bump API version to v1.3.239
7+
58
## [3.24.3] - 2022-12-28
69
- Bump API version to v1.3.238
710

package.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: vulkan
2-
version: "3.24.3"
2+
version: "3.24.4"
33
synopsis: Bindings to the Vulkan graphics API.
44
description: Please see [the readme](https://github.com/expipiplus1/vulkan/#readme)
55
category: Graphics

src/Vulkan/CStruct/Extends.hs

+9
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,8 @@ import {-# SOURCE #-} Vulkan.Extensions.VK_EXT_blend_operation_advanced (Physica
435435
import {-# SOURCE #-} Vulkan.Extensions.VK_EXT_border_color_swizzle (PhysicalDeviceBorderColorSwizzleFeaturesEXT)
436436
import {-# SOURCE #-} Vulkan.Core12.Promoted_From_VK_KHR_buffer_device_address (PhysicalDeviceBufferDeviceAddressFeatures)
437437
import {-# SOURCE #-} Vulkan.Extensions.VK_EXT_buffer_device_address (PhysicalDeviceBufferDeviceAddressFeaturesEXT)
438+
import {-# SOURCE #-} Vulkan.Extensions.VK_HUAWEI_cluster_culling_shader (PhysicalDeviceClusterCullingShaderFeaturesHUAWEI)
439+
import {-# SOURCE #-} Vulkan.Extensions.VK_HUAWEI_cluster_culling_shader (PhysicalDeviceClusterCullingShaderPropertiesHUAWEI)
438440
import {-# SOURCE #-} Vulkan.Extensions.VK_AMD_device_coherent_memory (PhysicalDeviceCoherentMemoryFeaturesAMD)
439441
import {-# SOURCE #-} Vulkan.Extensions.VK_EXT_color_write_enable (PhysicalDeviceColorWriteEnableFeaturesEXT)
440442
import {-# SOURCE #-} Vulkan.Extensions.VK_NV_compute_shader_derivatives (PhysicalDeviceComputeShaderDerivativesFeaturesNV)
@@ -1117,6 +1119,7 @@ type family Extends (a :: [Type] -> Type) (b :: Type) :: Constraint where
11171119
Extends DeviceCreateInfo PhysicalDevicePortabilitySubsetFeaturesKHR = ()
11181120
Extends DeviceCreateInfo PhysicalDevice4444FormatsFeaturesEXT = ()
11191121
Extends DeviceCreateInfo PhysicalDeviceSubpassShadingFeaturesHUAWEI = ()
1122+
Extends DeviceCreateInfo PhysicalDeviceClusterCullingShaderFeaturesHUAWEI = ()
11201123
Extends DeviceCreateInfo PhysicalDeviceShaderImageAtomicInt64FeaturesEXT = ()
11211124
Extends DeviceCreateInfo PhysicalDeviceFragmentShadingRateFeaturesKHR = ()
11221125
Extends DeviceCreateInfo PhysicalDeviceShaderTerminateInvocationFeatures = ()
@@ -1350,6 +1353,7 @@ type family Extends (a :: [Type] -> Type) (b :: Type) :: Constraint where
13501353
Extends PhysicalDeviceFeatures2 PhysicalDevicePortabilitySubsetFeaturesKHR = ()
13511354
Extends PhysicalDeviceFeatures2 PhysicalDevice4444FormatsFeaturesEXT = ()
13521355
Extends PhysicalDeviceFeatures2 PhysicalDeviceSubpassShadingFeaturesHUAWEI = ()
1356+
Extends PhysicalDeviceFeatures2 PhysicalDeviceClusterCullingShaderFeaturesHUAWEI = ()
13531357
Extends PhysicalDeviceFeatures2 PhysicalDeviceShaderImageAtomicInt64FeaturesEXT = ()
13541358
Extends PhysicalDeviceFeatures2 PhysicalDeviceFragmentShadingRateFeaturesKHR = ()
13551359
Extends PhysicalDeviceFeatures2 PhysicalDeviceShaderTerminateInvocationFeatures = ()
@@ -1453,6 +1457,7 @@ type family Extends (a :: [Type] -> Type) (b :: Type) :: Constraint where
14531457
Extends PhysicalDeviceProperties2 PhysicalDeviceTexelBufferAlignmentProperties = ()
14541458
Extends PhysicalDeviceProperties2 PhysicalDeviceSubgroupSizeControlProperties = ()
14551459
Extends PhysicalDeviceProperties2 PhysicalDeviceSubpassShadingPropertiesHUAWEI = ()
1460+
Extends PhysicalDeviceProperties2 PhysicalDeviceClusterCullingShaderPropertiesHUAWEI = ()
14561461
Extends PhysicalDeviceProperties2 PhysicalDeviceLineRasterizationPropertiesEXT = ()
14571462
Extends PhysicalDeviceProperties2 PhysicalDeviceVulkan11Properties = ()
14581463
Extends PhysicalDeviceProperties2 PhysicalDeviceVulkan12Properties = ()
@@ -1948,6 +1953,7 @@ peekChainHead ty p c = case ty of
19481953
STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_REQUIRED_SUBGROUP_SIZE_CREATE_INFO -> go @PipelineShaderStageRequiredSubgroupSizeCreateInfo
19491954
STRUCTURE_TYPE_SUBPASS_SHADING_PIPELINE_CREATE_INFO_HUAWEI -> go @SubpassShadingPipelineCreateInfoHUAWEI
19501955
STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBPASS_SHADING_PROPERTIES_HUAWEI -> go @PhysicalDeviceSubpassShadingPropertiesHUAWEI
1956+
STRUCTURE_TYPE_PHYSICAL_DEVICE_CLUSTER_CULLING_SHADER_PROPERTIES_HUAWEI -> go @PhysicalDeviceClusterCullingShaderPropertiesHUAWEI
19511957
STRUCTURE_TYPE_MEMORY_OPAQUE_CAPTURE_ADDRESS_ALLOCATE_INFO -> go @MemoryOpaqueCaptureAddressAllocateInfo
19521958
STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_FEATURES_EXT -> go @PhysicalDeviceLineRasterizationFeaturesEXT
19531959
STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_PROPERTIES_EXT -> go @PhysicalDeviceLineRasterizationPropertiesEXT
@@ -1986,6 +1992,7 @@ peekChainHead ty p c = case ty of
19861992
STRUCTURE_TYPE_PHYSICAL_DEVICE_PORTABILITY_SUBSET_PROPERTIES_KHR -> go @PhysicalDevicePortabilitySubsetPropertiesKHR
19871993
STRUCTURE_TYPE_PHYSICAL_DEVICE_4444_FORMATS_FEATURES_EXT -> go @PhysicalDevice4444FormatsFeaturesEXT
19881994
STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBPASS_SHADING_FEATURES_HUAWEI -> go @PhysicalDeviceSubpassShadingFeaturesHUAWEI
1995+
STRUCTURE_TYPE_PHYSICAL_DEVICE_CLUSTER_CULLING_SHADER_FEATURES_HUAWEI -> go @PhysicalDeviceClusterCullingShaderFeaturesHUAWEI
19891996
STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_IMAGE_ATOMIC_INT64_FEATURES_EXT -> go @PhysicalDeviceShaderImageAtomicInt64FeaturesEXT
19901997
STRUCTURE_TYPE_FRAGMENT_SHADING_RATE_ATTACHMENT_INFO_KHR -> go @FragmentShadingRateAttachmentInfoKHR
19911998
STRUCTURE_TYPE_PIPELINE_FRAGMENT_SHADING_RATE_STATE_CREATE_INFO_KHR -> go @PipelineFragmentShadingRateStateCreateInfoKHR
@@ -2424,6 +2431,7 @@ infix 6 ::&
24242431
{-# complete (::&) :: PipelineShaderStageRequiredSubgroupSizeCreateInfo #-}
24252432
{-# complete (::&) :: SubpassShadingPipelineCreateInfoHUAWEI #-}
24262433
{-# complete (::&) :: PhysicalDeviceSubpassShadingPropertiesHUAWEI #-}
2434+
{-# complete (::&) :: PhysicalDeviceClusterCullingShaderPropertiesHUAWEI #-}
24272435
{-# complete (::&) :: MemoryOpaqueCaptureAddressAllocateInfo #-}
24282436
{-# complete (::&) :: PhysicalDeviceLineRasterizationFeaturesEXT #-}
24292437
{-# complete (::&) :: PhysicalDeviceLineRasterizationPropertiesEXT #-}
@@ -2462,6 +2470,7 @@ infix 6 ::&
24622470
{-# complete (::&) :: PhysicalDevicePortabilitySubsetPropertiesKHR #-}
24632471
{-# complete (::&) :: PhysicalDevice4444FormatsFeaturesEXT #-}
24642472
{-# complete (::&) :: PhysicalDeviceSubpassShadingFeaturesHUAWEI #-}
2473+
{-# complete (::&) :: PhysicalDeviceClusterCullingShaderFeaturesHUAWEI #-}
24652474
{-# complete (::&) :: PhysicalDeviceShaderImageAtomicInt64FeaturesEXT #-}
24662475
{-# complete (::&) :: FragmentShadingRateAttachmentInfoKHR #-}
24672476
{-# complete (::&) :: PipelineFragmentShadingRateStateCreateInfoKHR #-}

src/Vulkan/Core10/CommandBufferBuilding.hs

+54-42
Original file line numberDiff line numberDiff line change
@@ -2729,7 +2729,8 @@ foreign import ccall
27292729
-- dynamic state enabled then
27302730
-- 'Vulkan.Extensions.VK_EXT_discard_rectangles.cmdSetDiscardRectangleEXT'
27312731
-- /must/ have been called in the current command buffer prior to this
2732-
-- drawing command
2732+
-- drawing command for each discard rectangle in
2733+
-- 'Vulkan.Extensions.VK_EXT_discard_rectangles.PipelineDiscardRectangleStateCreateInfoEXT'::@discardRectangleCount@
27332734
--
27342735
-- - #VUID-vkCmdDraw-pDepthAttachment-06181# If the current render pass
27352736
-- instance was begun with
@@ -4542,7 +4543,8 @@ foreign import ccall
45424543
-- dynamic state enabled then
45434544
-- 'Vulkan.Extensions.VK_EXT_discard_rectangles.cmdSetDiscardRectangleEXT'
45444545
-- /must/ have been called in the current command buffer prior to this
4545-
-- drawing command
4546+
-- drawing command for each discard rectangle in
4547+
-- 'Vulkan.Extensions.VK_EXT_discard_rectangles.PipelineDiscardRectangleStateCreateInfoEXT'::@discardRectangleCount@
45464548
--
45474549
-- - #VUID-vkCmdDrawIndexed-pDepthAttachment-06181# If the current render
45484550
-- pass instance was begun with
@@ -5466,8 +5468,8 @@ foreign import ccall
54665468
--
54675469
-- - #VUID-vkCmdDrawIndexed-None-07312# An index buffer /must/ be bound
54685470
--
5469-
-- - #VUID-vkCmdDrawIndexed-robustBufferAccess2-07788# If
5470-
-- <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#features-robustBufferAccess2 robustBufferAccess2>
5471+
-- - #VUID-vkCmdDrawIndexed-robustBufferAccess2-07825# If
5472+
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#features-robustBufferAccess2 robustBufferAccess2>
54715473
-- is not enabled, (@indexSize@ × (@firstIndex@ + @indexCount@) +
54725474
-- @offset@) /must/ be less than or equal to the size of the bound
54735475
-- index buffer, with @indexSize@ being based on the type specified by
@@ -6356,7 +6358,8 @@ foreign import ccall
63566358
-- dynamic state enabled then
63576359
-- 'Vulkan.Extensions.VK_EXT_discard_rectangles.cmdSetDiscardRectangleEXT'
63586360
-- /must/ have been called in the current command buffer prior to this
6359-
-- drawing command
6361+
-- drawing command for each discard rectangle in
6362+
-- 'Vulkan.Extensions.VK_EXT_discard_rectangles.PipelineDiscardRectangleStateCreateInfoEXT'::@discardRectangleCount@
63606363
--
63616364
-- - #VUID-vkCmdDrawIndirect-pDepthAttachment-06181# If the current
63626365
-- render pass instance was begun with
@@ -8178,7 +8181,8 @@ foreign import ccall
81788181
-- dynamic state enabled then
81798182
-- 'Vulkan.Extensions.VK_EXT_discard_rectangles.cmdSetDiscardRectangleEXT'
81808183
-- /must/ have been called in the current command buffer prior to this
8181-
-- drawing command
8184+
-- drawing command for each discard rectangle in
8185+
-- 'Vulkan.Extensions.VK_EXT_discard_rectangles.PipelineDiscardRectangleStateCreateInfoEXT'::@discardRectangleCount@
81828186
--
81838187
-- - #VUID-vkCmdDrawIndexedIndirect-pDepthAttachment-06181# If the
81848188
-- current render pass instance was begun with
@@ -9104,6 +9108,14 @@ foreign import ccall
91049108
-- - #VUID-vkCmdDrawIndexedIndirect-None-07312# An index buffer /must/ be
91059109
-- bound
91069110
--
9111+
-- - #VUID-vkCmdDrawIndexedIndirect-robustBufferAccess2-07825# If
9112+
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#features-robustBufferAccess2 robustBufferAccess2>
9113+
-- is not enabled, (@indexSize@ × (@firstIndex@ + @indexCount@) +
9114+
-- @offset@) /must/ be less than or equal to the size of the bound
9115+
-- index buffer, with @indexSize@ being based on the type specified by
9116+
-- @indexType@, where the index buffer, @indexType@, and @offset@ are
9117+
-- specified via 'cmdBindIndexBuffer'
9118+
--
91079119
-- - #VUID-vkCmdDrawIndexedIndirect-drawCount-00528# If @drawCount@ is
91089120
-- greater than @1@, @stride@ /must/ be a multiple of @4@ and /must/ be
91099121
-- greater than or equal to
@@ -11466,19 +11478,6 @@ foreign import ccall
1146611478
-- 'Vulkan.Core10.Enums.ImageAspectFlagBits.IMAGE_ASPECT_DEPTH_BIT' or
1146711479
-- 'Vulkan.Core10.Enums.ImageAspectFlagBits.IMAGE_ASPECT_STENCIL_BIT'
1146811480
--
11469-
-- - #VUID-vkCmdCopyBufferToImage-bufferOffset-01558# If @dstImage@ does
11470-
-- not have either a depth\/stencil or a
11471-
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-requiring-sampler-ycbcr-conversion multi-planar format>,
11472-
-- then for each element of @pRegions@, @bufferOffset@ /must/ be a
11473-
-- multiple of the format’s texel block size
11474-
--
11475-
-- - #VUID-vkCmdCopyBufferToImage-bufferOffset-01559# If @dstImage@ has a
11476-
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-requiring-sampler-ycbcr-conversion multi-planar format>,
11477-
-- then for each element of @pRegions@, @bufferOffset@ /must/ be a
11478-
-- multiple of the element size of the compatible format for the format
11479-
-- and the @aspectMask@ of the @imageSubresource@ as defined in
11480-
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-compatible-planes ???>
11481-
--
1148211481
-- - #VUID-vkCmdCopyBufferToImage-srcImage-00199# If @dstImage@ is of
1148311482
-- type 'Vulkan.Core10.Enums.ImageType.IMAGE_TYPE_1D', then for each
1148411483
-- element of @pRegions@, @imageOffset.y@ /must/ be @0@ and
@@ -11507,11 +11506,6 @@ foreign import ccall
1150711506
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-compatibility-classes texel block extent height>
1150811507
-- of the 'Vulkan.Core10.Enums.Format.Format' of @dstImage@
1150911508
--
11510-
-- - #VUID-vkCmdCopyBufferToImage-pRegions-07273# For each element of
11511-
-- @pRegions@, @bufferOffset@ /must/ be a multiple of the
11512-
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-compatibility-classes texel block size>
11513-
-- of the 'Vulkan.Core10.Enums.Format.Format' of @dstImage@
11514-
--
1151511509
-- - #VUID-vkCmdCopyBufferToImage-pRegions-07274# For each element of
1151611510
-- @pRegions@, @imageOffset.x@ /must/ be a multiple of the
1151711511
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-compatibility-classes texel block extent width>
@@ -11582,6 +11576,24 @@ foreign import ccall
1158211576
-- and then multiplied by the texel block size of @dstImage@ /must/ be
1158311577
-- less than or equal to 231-1
1158411578
--
11579+
-- - #VUID-vkCmdCopyBufferToImage-bufferOffset-01558# If @dstImage@ does
11580+
-- not have either a depth\/stencil or a
11581+
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-requiring-sampler-ycbcr-conversion multi-planar format>,
11582+
-- then for each element of @pRegions@, @bufferOffset@ /must/ be a
11583+
-- multiple of the format’s texel block size
11584+
--
11585+
-- - #VUID-vkCmdCopyBufferToImage-bufferOffset-01559# If @dstImage@ has a
11586+
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-requiring-sampler-ycbcr-conversion multi-planar format>,
11587+
-- then for each element of @pRegions@, @bufferOffset@ /must/ be a
11588+
-- multiple of the element size of the compatible format for the format
11589+
-- and the @aspectMask@ of the @imageSubresource@ as defined in
11590+
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-compatible-planes ???>
11591+
--
11592+
-- - #VUID-vkCmdCopyBufferToImage-pRegions-07273# For each element of
11593+
-- @pRegions@, @bufferOffset@ /must/ be a multiple of the
11594+
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-compatibility-classes texel block size>
11595+
-- of the 'Vulkan.Core10.Enums.Format.Format' of @dstImage@
11596+
--
1158511597
-- - #VUID-vkCmdCopyBufferToImage-srcImage-04053# If @dstImage@ has a
1158611598
-- depth\/stencil format, the @bufferOffset@ member of any element of
1158711599
-- @pRegions@ /must/ be a multiple of @4@
@@ -11823,19 +11835,6 @@ foreign import ccall
1182311835
-- @commandBuffer@’s command pool’s queue family, as described in
1182411836
-- 'Vulkan.Core10.DeviceInitialization.QueueFamilyProperties'
1182511837
--
11826-
-- - #VUID-vkCmdCopyImageToBuffer-bufferOffset-01558# If @srcImage@ does
11827-
-- not have either a depth\/stencil or a
11828-
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-requiring-sampler-ycbcr-conversion multi-planar format>,
11829-
-- then for each element of @pRegions@, @bufferOffset@ /must/ be a
11830-
-- multiple of the format’s texel block size
11831-
--
11832-
-- - #VUID-vkCmdCopyImageToBuffer-bufferOffset-01559# If @srcImage@ has a
11833-
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-requiring-sampler-ycbcr-conversion multi-planar format>,
11834-
-- then for each element of @pRegions@, @bufferOffset@ /must/ be a
11835-
-- multiple of the element size of the compatible format for the format
11836-
-- and the @aspectMask@ of the @imageSubresource@ as defined in
11837-
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-compatible-planes ???>
11838-
--
1183911838
-- - #VUID-vkCmdCopyImageToBuffer-srcImage-00199# If @srcImage@ is of
1184011839
-- type 'Vulkan.Core10.Enums.ImageType.IMAGE_TYPE_1D', then for each
1184111840
-- element of @pRegions@, @imageOffset.y@ /must/ be @0@ and
@@ -11864,11 +11863,6 @@ foreign import ccall
1186411863
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-compatibility-classes texel block extent height>
1186511864
-- of the 'Vulkan.Core10.Enums.Format.Format' of @srcImage@
1186611865
--
11867-
-- - #VUID-vkCmdCopyImageToBuffer-pRegions-07273# For each element of
11868-
-- @pRegions@, @bufferOffset@ /must/ be a multiple of the
11869-
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-compatibility-classes texel block size>
11870-
-- of the 'Vulkan.Core10.Enums.Format.Format' of @srcImage@
11871-
--
1187211866
-- - #VUID-vkCmdCopyImageToBuffer-pRegions-07274# For each element of
1187311867
-- @pRegions@, @imageOffset.x@ /must/ be a multiple of the
1187411868
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-compatibility-classes texel block extent width>
@@ -11939,6 +11933,24 @@ foreign import ccall
1193911933
-- and then multiplied by the texel block size of @srcImage@ /must/ be
1194011934
-- less than or equal to 231-1
1194111935
--
11936+
-- - #VUID-vkCmdCopyImageToBuffer-bufferOffset-01558# If @srcImage@ does
11937+
-- not have either a depth\/stencil or a
11938+
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-requiring-sampler-ycbcr-conversion multi-planar format>,
11939+
-- then for each element of @pRegions@, @bufferOffset@ /must/ be a
11940+
-- multiple of the format’s texel block size
11941+
--
11942+
-- - #VUID-vkCmdCopyImageToBuffer-bufferOffset-01559# If @srcImage@ has a
11943+
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-requiring-sampler-ycbcr-conversion multi-planar format>,
11944+
-- then for each element of @pRegions@, @bufferOffset@ /must/ be a
11945+
-- multiple of the element size of the compatible format for the format
11946+
-- and the @aspectMask@ of the @imageSubresource@ as defined in
11947+
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-compatible-planes ???>
11948+
--
11949+
-- - #VUID-vkCmdCopyImageToBuffer-pRegions-07273# For each element of
11950+
-- @pRegions@, @bufferOffset@ /must/ be a multiple of the
11951+
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#formats-compatibility-classes texel block size>
11952+
-- of the 'Vulkan.Core10.Enums.Format.Format' of @srcImage@
11953+
--
1194211954
-- - #VUID-vkCmdCopyImageToBuffer-srcImage-04053# If @srcImage@ has a
1194311955
-- depth\/stencil format, the @bufferOffset@ member of any element of
1194411956
-- @pRegions@ /must/ be a multiple of @4@

src/Vulkan/Core10/DescriptorSet.hs

+13-12
Original file line numberDiff line numberDiff line change
@@ -1135,6 +1135,19 @@ instance Zero DescriptorBufferInfo where
11351135
-- - #VUID-VkDescriptorImageInfo-imageView-06712# @imageView@ /must/ not
11361136
-- be a 2D array image view created from a 3D image
11371137
--
1138+
-- - #VUID-VkDescriptorImageInfo-imageView-07795# If @imageView@ is a 2D
1139+
-- view created from a 3D image, then @descriptorType@ /must/ be
1140+
-- 'Vulkan.Core10.Enums.DescriptorType.DESCRIPTOR_TYPE_STORAGE_IMAGE',
1141+
-- 'Vulkan.Core10.Enums.DescriptorType.DESCRIPTOR_TYPE_SAMPLED_IMAGE',
1142+
-- or
1143+
-- 'Vulkan.Core10.Enums.DescriptorType.DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER'
1144+
--
1145+
-- - #VUID-VkDescriptorImageInfo-imageView-07796# If @imageView@ is a 2D
1146+
-- view created from a 3D image, then the image /must/ have been
1147+
-- created with
1148+
-- 'Vulkan.Core10.Enums.ImageCreateFlagBits.IMAGE_CREATE_2D_VIEW_COMPATIBLE_BIT_EXT'
1149+
-- set
1150+
--
11381151
-- - #VUID-VkDescriptorImageInfo-descriptorType-06713# If the
11391152
-- <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#features-image2DViewOf3D image2DViewOf3D>
11401153
-- feature is not enabled and @descriptorType@ is
@@ -1647,18 +1660,6 @@ instance Zero DescriptorImageInfo where
16471660
-- been created with
16481661
-- 'Vulkan.Core10.Enums.ImageUsageFlagBits.IMAGE_USAGE_STORAGE_BIT' set
16491662
--
1650-
-- - #VUID-VkWriteDescriptorSet-descriptorType-06710# If @descriptorType@
1651-
-- is
1652-
-- 'Vulkan.Core10.Enums.DescriptorType.DESCRIPTOR_TYPE_STORAGE_IMAGE',
1653-
-- 'Vulkan.Core10.Enums.DescriptorType.DESCRIPTOR_TYPE_SAMPLED_IMAGE',
1654-
-- or
1655-
-- 'Vulkan.Core10.Enums.DescriptorType.DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER',
1656-
-- each @imageView@ member of each element of @pImageInfo@ that is a 2D
1657-
-- image view created from a 3D image /must/ have been created from an
1658-
-- image created with
1659-
-- 'Vulkan.Core10.Enums.ImageCreateFlagBits.IMAGE_CREATE_2D_VIEW_COMPATIBLE_BIT_EXT'
1660-
-- set
1661-
--
16621663
-- - #VUID-VkWriteDescriptorSet-descriptorType-02752# If @descriptorType@
16631664
-- is 'Vulkan.Core10.Enums.DescriptorType.DESCRIPTOR_TYPE_SAMPLER',
16641665
-- then @dstSet@ /must/ not have been allocated with a layout that

0 commit comments

Comments
 (0)