Class EXTImageCompressionControl
- Name String
VK_EXT_image_compression_control- Extension Type
- Device extension
- Registered Extension Number
- 339
- Revision
- 1
- Extension and Version Dependencies
VK_KHR_get_physical_device_properties2or Version 1.1- Contact
- Jan-Harald Fredriksen janharaldfredriksen-arm
- Extension Proposal
- VK_EXT_image_compression_control
Other Extension Metadata
- Last Modified Date
- 2022-05-02
- IP Status
- No known IP claims.
- Contributors
- Jan-Harald Fredriksen, Arm
- Graeme Leese, Broadcom
- Andrew Garrard, Imagination
- Lisa Wu, Arm
- Peter Kohaut, Arm
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intExtendsVkResult.static final StringThe extension name.static final intThe extension specification version.static final intVkImageCompressionFlagBitsEXT - Bitmask specifying image compression controlsstatic final intVkImageCompressionFlagBitsEXT - Bitmask specifying image compression controlsstatic final intVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesstatic final intVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesstatic final intVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesstatic final intVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesstatic final intVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesstatic final intVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesstatic final intVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesstatic final intVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesstatic final intVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesstatic final intVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesstatic final intVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesstatic final intVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesstatic final intVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesstatic final intVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesstatic final intVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesstatic final intVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesstatic final intVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesstatic final intVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesstatic final intVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesstatic final intVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesstatic final intVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesstatic final intVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesstatic final intVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesstatic final intVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesstatic final intVkImageCompressionFlagBitsEXT - Bitmask specifying image compression controlsstatic final intVkImageCompressionFlagBitsEXT - Bitmask specifying image compression controlsstatic final intVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesstatic final intExtendsVkStructureType.static final intExtendsVkStructureType.static final intExtendsVkStructureType.static final intExtendsVkStructureType.static final intExtendsVkStructureType. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidnvkGetImageSubresourceLayout2EXT(org.lwjgl.vulkan.VkDevice device, long image, long pSubresource, long pLayout) Unsafe version of:GetImageSubresourceLayout2EXTstatic voidvkGetImageSubresourceLayout2EXT(org.lwjgl.vulkan.VkDevice device, long image, VkImageSubresource2 pSubresource, VkSubresourceLayout2 pLayout)
-
Field Details
-
VK_EXT_IMAGE_COMPRESSION_CONTROL_SPEC_VERSION
public static final int VK_EXT_IMAGE_COMPRESSION_CONTROL_SPEC_VERSIONThe extension specification version.- See Also:
-
VK_EXT_IMAGE_COMPRESSION_CONTROL_EXTENSION_NAME
The extension name.- See Also:
-
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_COMPRESSION_CONTROL_FEATURES_EXT
public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_COMPRESSION_CONTROL_FEATURES_EXTExtendsVkStructureType.Enum values:
- See Also:
-
VK_STRUCTURE_TYPE_IMAGE_COMPRESSION_CONTROL_EXT
public static final int VK_STRUCTURE_TYPE_IMAGE_COMPRESSION_CONTROL_EXTExtendsVkStructureType.Enum values:
- See Also:
-
VK_STRUCTURE_TYPE_SUBRESOURCE_LAYOUT_2_EXT
public static final int VK_STRUCTURE_TYPE_SUBRESOURCE_LAYOUT_2_EXTExtendsVkStructureType.Enum values:
- See Also:
-
VK_STRUCTURE_TYPE_IMAGE_SUBRESOURCE_2_EXT
public static final int VK_STRUCTURE_TYPE_IMAGE_SUBRESOURCE_2_EXTExtendsVkStructureType.Enum values:
- See Also:
-
VK_STRUCTURE_TYPE_IMAGE_COMPRESSION_PROPERTIES_EXT
public static final int VK_STRUCTURE_TYPE_IMAGE_COMPRESSION_PROPERTIES_EXTExtendsVkStructureType.Enum values:
- See Also:
-
VK_ERROR_COMPRESSION_EXHAUSTED_EXT
public static final int VK_ERROR_COMPRESSION_EXHAUSTED_EXTExtendsVkResult.- See Also:
-
VK_IMAGE_COMPRESSION_DEFAULT_EXT
public static final int VK_IMAGE_COMPRESSION_DEFAULT_EXTVkImageCompressionFlagBitsEXT - Bitmask specifying image compression controlsDescription
IMAGE_COMPRESSION_DEFAULT_EXTspecifies that the default image compression setting is used. Implementations must not apply fixed-rate compression.IMAGE_COMPRESSION_FIXED_RATE_DEFAULT_EXTspecifies that the implementation may choose any supported fixed-rate compression setting in an implementation-defined manner based on the properties of the image.IMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXTspecifies that fixed-rate compression may be used and that the allowed compression rates are specified byVkImageCompressionControlEXT::pFixedRateFlags.IMAGE_COMPRESSION_DISABLED_EXTspecifies that all lossless and fixed-rate compression should be disabled.
If
VkImageCompressionControlEXT::flagsisIMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT, then theith member of thepFixedRateFlagsarray specifies the allowed compression rates for the image’sith plane.Note
If
IMAGE_COMPRESSION_DISABLED_EXTis included inVkImageCompressionControlEXT::flags, both lossless and fixed-rate compression will be disabled. This is likely to have a negative impact on performance and is only intended to be used for debugging purposes.- See Also:
-
VK_IMAGE_COMPRESSION_FIXED_RATE_DEFAULT_EXT
public static final int VK_IMAGE_COMPRESSION_FIXED_RATE_DEFAULT_EXTVkImageCompressionFlagBitsEXT - Bitmask specifying image compression controlsDescription
IMAGE_COMPRESSION_DEFAULT_EXTspecifies that the default image compression setting is used. Implementations must not apply fixed-rate compression.IMAGE_COMPRESSION_FIXED_RATE_DEFAULT_EXTspecifies that the implementation may choose any supported fixed-rate compression setting in an implementation-defined manner based on the properties of the image.IMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXTspecifies that fixed-rate compression may be used and that the allowed compression rates are specified byVkImageCompressionControlEXT::pFixedRateFlags.IMAGE_COMPRESSION_DISABLED_EXTspecifies that all lossless and fixed-rate compression should be disabled.
If
VkImageCompressionControlEXT::flagsisIMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT, then theith member of thepFixedRateFlagsarray specifies the allowed compression rates for the image’sith plane.Note
If
IMAGE_COMPRESSION_DISABLED_EXTis included inVkImageCompressionControlEXT::flags, both lossless and fixed-rate compression will be disabled. This is likely to have a negative impact on performance and is only intended to be used for debugging purposes.- See Also:
-
VK_IMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT
public static final int VK_IMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXTVkImageCompressionFlagBitsEXT - Bitmask specifying image compression controlsDescription
IMAGE_COMPRESSION_DEFAULT_EXTspecifies that the default image compression setting is used. Implementations must not apply fixed-rate compression.IMAGE_COMPRESSION_FIXED_RATE_DEFAULT_EXTspecifies that the implementation may choose any supported fixed-rate compression setting in an implementation-defined manner based on the properties of the image.IMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXTspecifies that fixed-rate compression may be used and that the allowed compression rates are specified byVkImageCompressionControlEXT::pFixedRateFlags.IMAGE_COMPRESSION_DISABLED_EXTspecifies that all lossless and fixed-rate compression should be disabled.
If
VkImageCompressionControlEXT::flagsisIMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT, then theith member of thepFixedRateFlagsarray specifies the allowed compression rates for the image’sith plane.Note
If
IMAGE_COMPRESSION_DISABLED_EXTis included inVkImageCompressionControlEXT::flags, both lossless and fixed-rate compression will be disabled. This is likely to have a negative impact on performance and is only intended to be used for debugging purposes.- See Also:
-
VK_IMAGE_COMPRESSION_DISABLED_EXT
public static final int VK_IMAGE_COMPRESSION_DISABLED_EXTVkImageCompressionFlagBitsEXT - Bitmask specifying image compression controlsDescription
IMAGE_COMPRESSION_DEFAULT_EXTspecifies that the default image compression setting is used. Implementations must not apply fixed-rate compression.IMAGE_COMPRESSION_FIXED_RATE_DEFAULT_EXTspecifies that the implementation may choose any supported fixed-rate compression setting in an implementation-defined manner based on the properties of the image.IMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXTspecifies that fixed-rate compression may be used and that the allowed compression rates are specified byVkImageCompressionControlEXT::pFixedRateFlags.IMAGE_COMPRESSION_DISABLED_EXTspecifies that all lossless and fixed-rate compression should be disabled.
If
VkImageCompressionControlEXT::flagsisIMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT, then theith member of thepFixedRateFlagsarray specifies the allowed compression rates for the image’sith plane.Note
If
IMAGE_COMPRESSION_DISABLED_EXTis included inVkImageCompressionControlEXT::flags, both lossless and fixed-rate compression will be disabled. This is likely to have a negative impact on performance and is only intended to be used for debugging purposes.- See Also:
-
VK_IMAGE_COMPRESSION_FIXED_RATE_NONE_EXT
public static final int VK_IMAGE_COMPRESSION_FIXED_RATE_NONE_EXTVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesDescription
IMAGE_COMPRESSION_FIXED_RATE_NONE_EXTspecifies that fixed-rate compression must not be used.IMAGE_COMPRESSION_FIXED_RATE_1BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[1,2)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[2,3)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_3BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[3,4)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[4,5)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_5BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[5,6)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_6BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[6,7)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_7BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[7,8)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_8BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[8,9)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_9BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[9,10)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_10BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[10,11)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_11BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[11,12)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_12BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of at least 12 bits per component may be used.
If the format has a different bit rate for different components,
VkImageCompressionControlEXT::pFixedRateFlagsdescribes the rate of the component with the largest number of bits assigned to it, scaled pro rata. For example, to request that aFORMAT_A2R10G10B10_UNORM_PACK32format be stored at a rate of 8 bits per pixel, useIMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXT(10 bits for the largest component, stored at quarter the original size, 2.5 bits, rounded down).If
flagsincludesIMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT, and multiple bits are set inVkImageCompressionControlEXT::pFixedRateFlagsfor a plane, implementations should apply the lowest allowed bitrate that is supported.Note
The choice of “
bits per component” terminology was chosen so that the same compression rate describes the same degree of compression applied to formats that differ only in the number of components. For example,FORMAT_R8G8_UNORMcompressed to half its original size is a rate of 4 bits per component, 8 bits per pixel.FORMAT_R8G8B8A8_UNORMcompressed to half its original size is 4 bits per component, 16 bits per pixel. Both of these cases can be requested withIMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXT.Enum values:
IMAGE_COMPRESSION_FIXED_RATE_13BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_14BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_15BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_16BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_17BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_18BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_19BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_20BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_21BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_22BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_23BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_24BPC_BIT_EXT
- See Also:
-
VK_IMAGE_COMPRESSION_FIXED_RATE_1BPC_BIT_EXT
public static final int VK_IMAGE_COMPRESSION_FIXED_RATE_1BPC_BIT_EXTVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesDescription
IMAGE_COMPRESSION_FIXED_RATE_NONE_EXTspecifies that fixed-rate compression must not be used.IMAGE_COMPRESSION_FIXED_RATE_1BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[1,2)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[2,3)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_3BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[3,4)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[4,5)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_5BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[5,6)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_6BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[6,7)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_7BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[7,8)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_8BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[8,9)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_9BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[9,10)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_10BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[10,11)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_11BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[11,12)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_12BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of at least 12 bits per component may be used.
If the format has a different bit rate for different components,
VkImageCompressionControlEXT::pFixedRateFlagsdescribes the rate of the component with the largest number of bits assigned to it, scaled pro rata. For example, to request that aFORMAT_A2R10G10B10_UNORM_PACK32format be stored at a rate of 8 bits per pixel, useIMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXT(10 bits for the largest component, stored at quarter the original size, 2.5 bits, rounded down).If
flagsincludesIMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT, and multiple bits are set inVkImageCompressionControlEXT::pFixedRateFlagsfor a plane, implementations should apply the lowest allowed bitrate that is supported.Note
The choice of “
bits per component” terminology was chosen so that the same compression rate describes the same degree of compression applied to formats that differ only in the number of components. For example,FORMAT_R8G8_UNORMcompressed to half its original size is a rate of 4 bits per component, 8 bits per pixel.FORMAT_R8G8B8A8_UNORMcompressed to half its original size is 4 bits per component, 16 bits per pixel. Both of these cases can be requested withIMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXT.Enum values:
IMAGE_COMPRESSION_FIXED_RATE_13BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_14BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_15BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_16BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_17BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_18BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_19BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_20BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_21BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_22BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_23BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_24BPC_BIT_EXT
- See Also:
-
VK_IMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXT
public static final int VK_IMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXTVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesDescription
IMAGE_COMPRESSION_FIXED_RATE_NONE_EXTspecifies that fixed-rate compression must not be used.IMAGE_COMPRESSION_FIXED_RATE_1BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[1,2)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[2,3)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_3BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[3,4)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[4,5)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_5BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[5,6)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_6BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[6,7)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_7BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[7,8)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_8BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[8,9)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_9BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[9,10)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_10BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[10,11)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_11BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[11,12)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_12BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of at least 12 bits per component may be used.
If the format has a different bit rate for different components,
VkImageCompressionControlEXT::pFixedRateFlagsdescribes the rate of the component with the largest number of bits assigned to it, scaled pro rata. For example, to request that aFORMAT_A2R10G10B10_UNORM_PACK32format be stored at a rate of 8 bits per pixel, useIMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXT(10 bits for the largest component, stored at quarter the original size, 2.5 bits, rounded down).If
flagsincludesIMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT, and multiple bits are set inVkImageCompressionControlEXT::pFixedRateFlagsfor a plane, implementations should apply the lowest allowed bitrate that is supported.Note
The choice of “
bits per component” terminology was chosen so that the same compression rate describes the same degree of compression applied to formats that differ only in the number of components. For example,FORMAT_R8G8_UNORMcompressed to half its original size is a rate of 4 bits per component, 8 bits per pixel.FORMAT_R8G8B8A8_UNORMcompressed to half its original size is 4 bits per component, 16 bits per pixel. Both of these cases can be requested withIMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXT.Enum values:
IMAGE_COMPRESSION_FIXED_RATE_13BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_14BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_15BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_16BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_17BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_18BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_19BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_20BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_21BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_22BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_23BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_24BPC_BIT_EXT
- See Also:
-
VK_IMAGE_COMPRESSION_FIXED_RATE_3BPC_BIT_EXT
public static final int VK_IMAGE_COMPRESSION_FIXED_RATE_3BPC_BIT_EXTVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesDescription
IMAGE_COMPRESSION_FIXED_RATE_NONE_EXTspecifies that fixed-rate compression must not be used.IMAGE_COMPRESSION_FIXED_RATE_1BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[1,2)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[2,3)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_3BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[3,4)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[4,5)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_5BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[5,6)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_6BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[6,7)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_7BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[7,8)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_8BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[8,9)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_9BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[9,10)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_10BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[10,11)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_11BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[11,12)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_12BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of at least 12 bits per component may be used.
If the format has a different bit rate for different components,
VkImageCompressionControlEXT::pFixedRateFlagsdescribes the rate of the component with the largest number of bits assigned to it, scaled pro rata. For example, to request that aFORMAT_A2R10G10B10_UNORM_PACK32format be stored at a rate of 8 bits per pixel, useIMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXT(10 bits for the largest component, stored at quarter the original size, 2.5 bits, rounded down).If
flagsincludesIMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT, and multiple bits are set inVkImageCompressionControlEXT::pFixedRateFlagsfor a plane, implementations should apply the lowest allowed bitrate that is supported.Note
The choice of “
bits per component” terminology was chosen so that the same compression rate describes the same degree of compression applied to formats that differ only in the number of components. For example,FORMAT_R8G8_UNORMcompressed to half its original size is a rate of 4 bits per component, 8 bits per pixel.FORMAT_R8G8B8A8_UNORMcompressed to half its original size is 4 bits per component, 16 bits per pixel. Both of these cases can be requested withIMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXT.Enum values:
IMAGE_COMPRESSION_FIXED_RATE_13BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_14BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_15BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_16BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_17BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_18BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_19BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_20BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_21BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_22BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_23BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_24BPC_BIT_EXT
- See Also:
-
VK_IMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXT
public static final int VK_IMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXTVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesDescription
IMAGE_COMPRESSION_FIXED_RATE_NONE_EXTspecifies that fixed-rate compression must not be used.IMAGE_COMPRESSION_FIXED_RATE_1BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[1,2)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[2,3)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_3BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[3,4)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[4,5)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_5BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[5,6)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_6BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[6,7)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_7BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[7,8)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_8BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[8,9)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_9BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[9,10)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_10BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[10,11)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_11BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[11,12)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_12BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of at least 12 bits per component may be used.
If the format has a different bit rate for different components,
VkImageCompressionControlEXT::pFixedRateFlagsdescribes the rate of the component with the largest number of bits assigned to it, scaled pro rata. For example, to request that aFORMAT_A2R10G10B10_UNORM_PACK32format be stored at a rate of 8 bits per pixel, useIMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXT(10 bits for the largest component, stored at quarter the original size, 2.5 bits, rounded down).If
flagsincludesIMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT, and multiple bits are set inVkImageCompressionControlEXT::pFixedRateFlagsfor a plane, implementations should apply the lowest allowed bitrate that is supported.Note
The choice of “
bits per component” terminology was chosen so that the same compression rate describes the same degree of compression applied to formats that differ only in the number of components. For example,FORMAT_R8G8_UNORMcompressed to half its original size is a rate of 4 bits per component, 8 bits per pixel.FORMAT_R8G8B8A8_UNORMcompressed to half its original size is 4 bits per component, 16 bits per pixel. Both of these cases can be requested withIMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXT.Enum values:
IMAGE_COMPRESSION_FIXED_RATE_13BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_14BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_15BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_16BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_17BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_18BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_19BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_20BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_21BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_22BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_23BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_24BPC_BIT_EXT
- See Also:
-
VK_IMAGE_COMPRESSION_FIXED_RATE_5BPC_BIT_EXT
public static final int VK_IMAGE_COMPRESSION_FIXED_RATE_5BPC_BIT_EXTVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesDescription
IMAGE_COMPRESSION_FIXED_RATE_NONE_EXTspecifies that fixed-rate compression must not be used.IMAGE_COMPRESSION_FIXED_RATE_1BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[1,2)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[2,3)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_3BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[3,4)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[4,5)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_5BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[5,6)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_6BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[6,7)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_7BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[7,8)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_8BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[8,9)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_9BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[9,10)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_10BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[10,11)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_11BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[11,12)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_12BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of at least 12 bits per component may be used.
If the format has a different bit rate for different components,
VkImageCompressionControlEXT::pFixedRateFlagsdescribes the rate of the component with the largest number of bits assigned to it, scaled pro rata. For example, to request that aFORMAT_A2R10G10B10_UNORM_PACK32format be stored at a rate of 8 bits per pixel, useIMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXT(10 bits for the largest component, stored at quarter the original size, 2.5 bits, rounded down).If
flagsincludesIMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT, and multiple bits are set inVkImageCompressionControlEXT::pFixedRateFlagsfor a plane, implementations should apply the lowest allowed bitrate that is supported.Note
The choice of “
bits per component” terminology was chosen so that the same compression rate describes the same degree of compression applied to formats that differ only in the number of components. For example,FORMAT_R8G8_UNORMcompressed to half its original size is a rate of 4 bits per component, 8 bits per pixel.FORMAT_R8G8B8A8_UNORMcompressed to half its original size is 4 bits per component, 16 bits per pixel. Both of these cases can be requested withIMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXT.Enum values:
IMAGE_COMPRESSION_FIXED_RATE_13BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_14BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_15BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_16BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_17BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_18BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_19BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_20BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_21BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_22BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_23BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_24BPC_BIT_EXT
- See Also:
-
VK_IMAGE_COMPRESSION_FIXED_RATE_6BPC_BIT_EXT
public static final int VK_IMAGE_COMPRESSION_FIXED_RATE_6BPC_BIT_EXTVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesDescription
IMAGE_COMPRESSION_FIXED_RATE_NONE_EXTspecifies that fixed-rate compression must not be used.IMAGE_COMPRESSION_FIXED_RATE_1BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[1,2)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[2,3)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_3BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[3,4)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[4,5)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_5BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[5,6)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_6BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[6,7)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_7BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[7,8)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_8BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[8,9)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_9BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[9,10)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_10BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[10,11)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_11BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[11,12)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_12BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of at least 12 bits per component may be used.
If the format has a different bit rate for different components,
VkImageCompressionControlEXT::pFixedRateFlagsdescribes the rate of the component with the largest number of bits assigned to it, scaled pro rata. For example, to request that aFORMAT_A2R10G10B10_UNORM_PACK32format be stored at a rate of 8 bits per pixel, useIMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXT(10 bits for the largest component, stored at quarter the original size, 2.5 bits, rounded down).If
flagsincludesIMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT, and multiple bits are set inVkImageCompressionControlEXT::pFixedRateFlagsfor a plane, implementations should apply the lowest allowed bitrate that is supported.Note
The choice of “
bits per component” terminology was chosen so that the same compression rate describes the same degree of compression applied to formats that differ only in the number of components. For example,FORMAT_R8G8_UNORMcompressed to half its original size is a rate of 4 bits per component, 8 bits per pixel.FORMAT_R8G8B8A8_UNORMcompressed to half its original size is 4 bits per component, 16 bits per pixel. Both of these cases can be requested withIMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXT.Enum values:
IMAGE_COMPRESSION_FIXED_RATE_13BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_14BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_15BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_16BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_17BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_18BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_19BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_20BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_21BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_22BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_23BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_24BPC_BIT_EXT
- See Also:
-
VK_IMAGE_COMPRESSION_FIXED_RATE_7BPC_BIT_EXT
public static final int VK_IMAGE_COMPRESSION_FIXED_RATE_7BPC_BIT_EXTVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesDescription
IMAGE_COMPRESSION_FIXED_RATE_NONE_EXTspecifies that fixed-rate compression must not be used.IMAGE_COMPRESSION_FIXED_RATE_1BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[1,2)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[2,3)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_3BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[3,4)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[4,5)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_5BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[5,6)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_6BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[6,7)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_7BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[7,8)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_8BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[8,9)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_9BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[9,10)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_10BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[10,11)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_11BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[11,12)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_12BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of at least 12 bits per component may be used.
If the format has a different bit rate for different components,
VkImageCompressionControlEXT::pFixedRateFlagsdescribes the rate of the component with the largest number of bits assigned to it, scaled pro rata. For example, to request that aFORMAT_A2R10G10B10_UNORM_PACK32format be stored at a rate of 8 bits per pixel, useIMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXT(10 bits for the largest component, stored at quarter the original size, 2.5 bits, rounded down).If
flagsincludesIMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT, and multiple bits are set inVkImageCompressionControlEXT::pFixedRateFlagsfor a plane, implementations should apply the lowest allowed bitrate that is supported.Note
The choice of “
bits per component” terminology was chosen so that the same compression rate describes the same degree of compression applied to formats that differ only in the number of components. For example,FORMAT_R8G8_UNORMcompressed to half its original size is a rate of 4 bits per component, 8 bits per pixel.FORMAT_R8G8B8A8_UNORMcompressed to half its original size is 4 bits per component, 16 bits per pixel. Both of these cases can be requested withIMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXT.Enum values:
IMAGE_COMPRESSION_FIXED_RATE_13BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_14BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_15BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_16BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_17BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_18BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_19BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_20BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_21BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_22BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_23BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_24BPC_BIT_EXT
- See Also:
-
VK_IMAGE_COMPRESSION_FIXED_RATE_8BPC_BIT_EXT
public static final int VK_IMAGE_COMPRESSION_FIXED_RATE_8BPC_BIT_EXTVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesDescription
IMAGE_COMPRESSION_FIXED_RATE_NONE_EXTspecifies that fixed-rate compression must not be used.IMAGE_COMPRESSION_FIXED_RATE_1BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[1,2)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[2,3)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_3BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[3,4)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[4,5)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_5BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[5,6)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_6BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[6,7)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_7BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[7,8)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_8BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[8,9)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_9BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[9,10)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_10BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[10,11)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_11BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[11,12)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_12BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of at least 12 bits per component may be used.
If the format has a different bit rate for different components,
VkImageCompressionControlEXT::pFixedRateFlagsdescribes the rate of the component with the largest number of bits assigned to it, scaled pro rata. For example, to request that aFORMAT_A2R10G10B10_UNORM_PACK32format be stored at a rate of 8 bits per pixel, useIMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXT(10 bits for the largest component, stored at quarter the original size, 2.5 bits, rounded down).If
flagsincludesIMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT, and multiple bits are set inVkImageCompressionControlEXT::pFixedRateFlagsfor a plane, implementations should apply the lowest allowed bitrate that is supported.Note
The choice of “
bits per component” terminology was chosen so that the same compression rate describes the same degree of compression applied to formats that differ only in the number of components. For example,FORMAT_R8G8_UNORMcompressed to half its original size is a rate of 4 bits per component, 8 bits per pixel.FORMAT_R8G8B8A8_UNORMcompressed to half its original size is 4 bits per component, 16 bits per pixel. Both of these cases can be requested withIMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXT.Enum values:
IMAGE_COMPRESSION_FIXED_RATE_13BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_14BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_15BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_16BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_17BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_18BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_19BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_20BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_21BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_22BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_23BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_24BPC_BIT_EXT
- See Also:
-
VK_IMAGE_COMPRESSION_FIXED_RATE_9BPC_BIT_EXT
public static final int VK_IMAGE_COMPRESSION_FIXED_RATE_9BPC_BIT_EXTVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesDescription
IMAGE_COMPRESSION_FIXED_RATE_NONE_EXTspecifies that fixed-rate compression must not be used.IMAGE_COMPRESSION_FIXED_RATE_1BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[1,2)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[2,3)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_3BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[3,4)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[4,5)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_5BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[5,6)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_6BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[6,7)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_7BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[7,8)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_8BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[8,9)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_9BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[9,10)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_10BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[10,11)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_11BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[11,12)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_12BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of at least 12 bits per component may be used.
If the format has a different bit rate for different components,
VkImageCompressionControlEXT::pFixedRateFlagsdescribes the rate of the component with the largest number of bits assigned to it, scaled pro rata. For example, to request that aFORMAT_A2R10G10B10_UNORM_PACK32format be stored at a rate of 8 bits per pixel, useIMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXT(10 bits for the largest component, stored at quarter the original size, 2.5 bits, rounded down).If
flagsincludesIMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT, and multiple bits are set inVkImageCompressionControlEXT::pFixedRateFlagsfor a plane, implementations should apply the lowest allowed bitrate that is supported.Note
The choice of “
bits per component” terminology was chosen so that the same compression rate describes the same degree of compression applied to formats that differ only in the number of components. For example,FORMAT_R8G8_UNORMcompressed to half its original size is a rate of 4 bits per component, 8 bits per pixel.FORMAT_R8G8B8A8_UNORMcompressed to half its original size is 4 bits per component, 16 bits per pixel. Both of these cases can be requested withIMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXT.Enum values:
IMAGE_COMPRESSION_FIXED_RATE_13BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_14BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_15BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_16BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_17BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_18BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_19BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_20BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_21BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_22BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_23BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_24BPC_BIT_EXT
- See Also:
-
VK_IMAGE_COMPRESSION_FIXED_RATE_10BPC_BIT_EXT
public static final int VK_IMAGE_COMPRESSION_FIXED_RATE_10BPC_BIT_EXTVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesDescription
IMAGE_COMPRESSION_FIXED_RATE_NONE_EXTspecifies that fixed-rate compression must not be used.IMAGE_COMPRESSION_FIXED_RATE_1BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[1,2)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[2,3)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_3BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[3,4)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[4,5)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_5BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[5,6)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_6BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[6,7)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_7BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[7,8)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_8BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[8,9)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_9BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[9,10)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_10BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[10,11)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_11BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[11,12)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_12BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of at least 12 bits per component may be used.
If the format has a different bit rate for different components,
VkImageCompressionControlEXT::pFixedRateFlagsdescribes the rate of the component with the largest number of bits assigned to it, scaled pro rata. For example, to request that aFORMAT_A2R10G10B10_UNORM_PACK32format be stored at a rate of 8 bits per pixel, useIMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXT(10 bits for the largest component, stored at quarter the original size, 2.5 bits, rounded down).If
flagsincludesIMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT, and multiple bits are set inVkImageCompressionControlEXT::pFixedRateFlagsfor a plane, implementations should apply the lowest allowed bitrate that is supported.Note
The choice of “
bits per component” terminology was chosen so that the same compression rate describes the same degree of compression applied to formats that differ only in the number of components. For example,FORMAT_R8G8_UNORMcompressed to half its original size is a rate of 4 bits per component, 8 bits per pixel.FORMAT_R8G8B8A8_UNORMcompressed to half its original size is 4 bits per component, 16 bits per pixel. Both of these cases can be requested withIMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXT.Enum values:
IMAGE_COMPRESSION_FIXED_RATE_13BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_14BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_15BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_16BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_17BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_18BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_19BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_20BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_21BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_22BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_23BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_24BPC_BIT_EXT
- See Also:
-
VK_IMAGE_COMPRESSION_FIXED_RATE_11BPC_BIT_EXT
public static final int VK_IMAGE_COMPRESSION_FIXED_RATE_11BPC_BIT_EXTVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesDescription
IMAGE_COMPRESSION_FIXED_RATE_NONE_EXTspecifies that fixed-rate compression must not be used.IMAGE_COMPRESSION_FIXED_RATE_1BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[1,2)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[2,3)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_3BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[3,4)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[4,5)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_5BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[5,6)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_6BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[6,7)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_7BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[7,8)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_8BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[8,9)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_9BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[9,10)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_10BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[10,11)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_11BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[11,12)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_12BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of at least 12 bits per component may be used.
If the format has a different bit rate for different components,
VkImageCompressionControlEXT::pFixedRateFlagsdescribes the rate of the component with the largest number of bits assigned to it, scaled pro rata. For example, to request that aFORMAT_A2R10G10B10_UNORM_PACK32format be stored at a rate of 8 bits per pixel, useIMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXT(10 bits for the largest component, stored at quarter the original size, 2.5 bits, rounded down).If
flagsincludesIMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT, and multiple bits are set inVkImageCompressionControlEXT::pFixedRateFlagsfor a plane, implementations should apply the lowest allowed bitrate that is supported.Note
The choice of “
bits per component” terminology was chosen so that the same compression rate describes the same degree of compression applied to formats that differ only in the number of components. For example,FORMAT_R8G8_UNORMcompressed to half its original size is a rate of 4 bits per component, 8 bits per pixel.FORMAT_R8G8B8A8_UNORMcompressed to half its original size is 4 bits per component, 16 bits per pixel. Both of these cases can be requested withIMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXT.Enum values:
IMAGE_COMPRESSION_FIXED_RATE_13BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_14BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_15BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_16BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_17BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_18BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_19BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_20BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_21BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_22BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_23BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_24BPC_BIT_EXT
- See Also:
-
VK_IMAGE_COMPRESSION_FIXED_RATE_12BPC_BIT_EXT
public static final int VK_IMAGE_COMPRESSION_FIXED_RATE_12BPC_BIT_EXTVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesDescription
IMAGE_COMPRESSION_FIXED_RATE_NONE_EXTspecifies that fixed-rate compression must not be used.IMAGE_COMPRESSION_FIXED_RATE_1BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[1,2)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[2,3)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_3BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[3,4)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[4,5)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_5BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[5,6)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_6BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[6,7)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_7BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[7,8)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_8BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[8,9)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_9BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[9,10)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_10BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[10,11)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_11BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[11,12)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_12BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of at least 12 bits per component may be used.
If the format has a different bit rate for different components,
VkImageCompressionControlEXT::pFixedRateFlagsdescribes the rate of the component with the largest number of bits assigned to it, scaled pro rata. For example, to request that aFORMAT_A2R10G10B10_UNORM_PACK32format be stored at a rate of 8 bits per pixel, useIMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXT(10 bits for the largest component, stored at quarter the original size, 2.5 bits, rounded down).If
flagsincludesIMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT, and multiple bits are set inVkImageCompressionControlEXT::pFixedRateFlagsfor a plane, implementations should apply the lowest allowed bitrate that is supported.Note
The choice of “
bits per component” terminology was chosen so that the same compression rate describes the same degree of compression applied to formats that differ only in the number of components. For example,FORMAT_R8G8_UNORMcompressed to half its original size is a rate of 4 bits per component, 8 bits per pixel.FORMAT_R8G8B8A8_UNORMcompressed to half its original size is 4 bits per component, 16 bits per pixel. Both of these cases can be requested withIMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXT.Enum values:
IMAGE_COMPRESSION_FIXED_RATE_13BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_14BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_15BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_16BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_17BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_18BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_19BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_20BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_21BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_22BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_23BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_24BPC_BIT_EXT
- See Also:
-
VK_IMAGE_COMPRESSION_FIXED_RATE_13BPC_BIT_EXT
public static final int VK_IMAGE_COMPRESSION_FIXED_RATE_13BPC_BIT_EXTVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesDescription
IMAGE_COMPRESSION_FIXED_RATE_NONE_EXTspecifies that fixed-rate compression must not be used.IMAGE_COMPRESSION_FIXED_RATE_1BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[1,2)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[2,3)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_3BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[3,4)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[4,5)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_5BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[5,6)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_6BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[6,7)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_7BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[7,8)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_8BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[8,9)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_9BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[9,10)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_10BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[10,11)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_11BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[11,12)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_12BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of at least 12 bits per component may be used.
If the format has a different bit rate for different components,
VkImageCompressionControlEXT::pFixedRateFlagsdescribes the rate of the component with the largest number of bits assigned to it, scaled pro rata. For example, to request that aFORMAT_A2R10G10B10_UNORM_PACK32format be stored at a rate of 8 bits per pixel, useIMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXT(10 bits for the largest component, stored at quarter the original size, 2.5 bits, rounded down).If
flagsincludesIMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT, and multiple bits are set inVkImageCompressionControlEXT::pFixedRateFlagsfor a plane, implementations should apply the lowest allowed bitrate that is supported.Note
The choice of “
bits per component” terminology was chosen so that the same compression rate describes the same degree of compression applied to formats that differ only in the number of components. For example,FORMAT_R8G8_UNORMcompressed to half its original size is a rate of 4 bits per component, 8 bits per pixel.FORMAT_R8G8B8A8_UNORMcompressed to half its original size is 4 bits per component, 16 bits per pixel. Both of these cases can be requested withIMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXT.Enum values:
IMAGE_COMPRESSION_FIXED_RATE_13BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_14BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_15BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_16BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_17BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_18BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_19BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_20BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_21BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_22BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_23BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_24BPC_BIT_EXT
- See Also:
-
VK_IMAGE_COMPRESSION_FIXED_RATE_14BPC_BIT_EXT
public static final int VK_IMAGE_COMPRESSION_FIXED_RATE_14BPC_BIT_EXTVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesDescription
IMAGE_COMPRESSION_FIXED_RATE_NONE_EXTspecifies that fixed-rate compression must not be used.IMAGE_COMPRESSION_FIXED_RATE_1BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[1,2)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[2,3)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_3BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[3,4)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[4,5)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_5BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[5,6)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_6BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[6,7)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_7BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[7,8)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_8BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[8,9)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_9BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[9,10)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_10BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[10,11)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_11BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[11,12)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_12BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of at least 12 bits per component may be used.
If the format has a different bit rate for different components,
VkImageCompressionControlEXT::pFixedRateFlagsdescribes the rate of the component with the largest number of bits assigned to it, scaled pro rata. For example, to request that aFORMAT_A2R10G10B10_UNORM_PACK32format be stored at a rate of 8 bits per pixel, useIMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXT(10 bits for the largest component, stored at quarter the original size, 2.5 bits, rounded down).If
flagsincludesIMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT, and multiple bits are set inVkImageCompressionControlEXT::pFixedRateFlagsfor a plane, implementations should apply the lowest allowed bitrate that is supported.Note
The choice of “
bits per component” terminology was chosen so that the same compression rate describes the same degree of compression applied to formats that differ only in the number of components. For example,FORMAT_R8G8_UNORMcompressed to half its original size is a rate of 4 bits per component, 8 bits per pixel.FORMAT_R8G8B8A8_UNORMcompressed to half its original size is 4 bits per component, 16 bits per pixel. Both of these cases can be requested withIMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXT.Enum values:
IMAGE_COMPRESSION_FIXED_RATE_13BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_14BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_15BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_16BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_17BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_18BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_19BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_20BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_21BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_22BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_23BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_24BPC_BIT_EXT
- See Also:
-
VK_IMAGE_COMPRESSION_FIXED_RATE_15BPC_BIT_EXT
public static final int VK_IMAGE_COMPRESSION_FIXED_RATE_15BPC_BIT_EXTVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesDescription
IMAGE_COMPRESSION_FIXED_RATE_NONE_EXTspecifies that fixed-rate compression must not be used.IMAGE_COMPRESSION_FIXED_RATE_1BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[1,2)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[2,3)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_3BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[3,4)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[4,5)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_5BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[5,6)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_6BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[6,7)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_7BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[7,8)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_8BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[8,9)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_9BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[9,10)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_10BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[10,11)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_11BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[11,12)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_12BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of at least 12 bits per component may be used.
If the format has a different bit rate for different components,
VkImageCompressionControlEXT::pFixedRateFlagsdescribes the rate of the component with the largest number of bits assigned to it, scaled pro rata. For example, to request that aFORMAT_A2R10G10B10_UNORM_PACK32format be stored at a rate of 8 bits per pixel, useIMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXT(10 bits for the largest component, stored at quarter the original size, 2.5 bits, rounded down).If
flagsincludesIMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT, and multiple bits are set inVkImageCompressionControlEXT::pFixedRateFlagsfor a plane, implementations should apply the lowest allowed bitrate that is supported.Note
The choice of “
bits per component” terminology was chosen so that the same compression rate describes the same degree of compression applied to formats that differ only in the number of components. For example,FORMAT_R8G8_UNORMcompressed to half its original size is a rate of 4 bits per component, 8 bits per pixel.FORMAT_R8G8B8A8_UNORMcompressed to half its original size is 4 bits per component, 16 bits per pixel. Both of these cases can be requested withIMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXT.Enum values:
IMAGE_COMPRESSION_FIXED_RATE_13BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_14BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_15BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_16BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_17BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_18BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_19BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_20BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_21BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_22BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_23BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_24BPC_BIT_EXT
- See Also:
-
VK_IMAGE_COMPRESSION_FIXED_RATE_16BPC_BIT_EXT
public static final int VK_IMAGE_COMPRESSION_FIXED_RATE_16BPC_BIT_EXTVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesDescription
IMAGE_COMPRESSION_FIXED_RATE_NONE_EXTspecifies that fixed-rate compression must not be used.IMAGE_COMPRESSION_FIXED_RATE_1BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[1,2)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[2,3)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_3BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[3,4)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[4,5)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_5BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[5,6)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_6BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[6,7)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_7BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[7,8)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_8BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[8,9)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_9BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[9,10)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_10BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[10,11)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_11BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[11,12)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_12BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of at least 12 bits per component may be used.
If the format has a different bit rate for different components,
VkImageCompressionControlEXT::pFixedRateFlagsdescribes the rate of the component with the largest number of bits assigned to it, scaled pro rata. For example, to request that aFORMAT_A2R10G10B10_UNORM_PACK32format be stored at a rate of 8 bits per pixel, useIMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXT(10 bits for the largest component, stored at quarter the original size, 2.5 bits, rounded down).If
flagsincludesIMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT, and multiple bits are set inVkImageCompressionControlEXT::pFixedRateFlagsfor a plane, implementations should apply the lowest allowed bitrate that is supported.Note
The choice of “
bits per component” terminology was chosen so that the same compression rate describes the same degree of compression applied to formats that differ only in the number of components. For example,FORMAT_R8G8_UNORMcompressed to half its original size is a rate of 4 bits per component, 8 bits per pixel.FORMAT_R8G8B8A8_UNORMcompressed to half its original size is 4 bits per component, 16 bits per pixel. Both of these cases can be requested withIMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXT.Enum values:
IMAGE_COMPRESSION_FIXED_RATE_13BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_14BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_15BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_16BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_17BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_18BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_19BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_20BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_21BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_22BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_23BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_24BPC_BIT_EXT
- See Also:
-
VK_IMAGE_COMPRESSION_FIXED_RATE_17BPC_BIT_EXT
public static final int VK_IMAGE_COMPRESSION_FIXED_RATE_17BPC_BIT_EXTVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesDescription
IMAGE_COMPRESSION_FIXED_RATE_NONE_EXTspecifies that fixed-rate compression must not be used.IMAGE_COMPRESSION_FIXED_RATE_1BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[1,2)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[2,3)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_3BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[3,4)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[4,5)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_5BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[5,6)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_6BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[6,7)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_7BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[7,8)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_8BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[8,9)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_9BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[9,10)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_10BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[10,11)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_11BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[11,12)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_12BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of at least 12 bits per component may be used.
If the format has a different bit rate for different components,
VkImageCompressionControlEXT::pFixedRateFlagsdescribes the rate of the component with the largest number of bits assigned to it, scaled pro rata. For example, to request that aFORMAT_A2R10G10B10_UNORM_PACK32format be stored at a rate of 8 bits per pixel, useIMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXT(10 bits for the largest component, stored at quarter the original size, 2.5 bits, rounded down).If
flagsincludesIMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT, and multiple bits are set inVkImageCompressionControlEXT::pFixedRateFlagsfor a plane, implementations should apply the lowest allowed bitrate that is supported.Note
The choice of “
bits per component” terminology was chosen so that the same compression rate describes the same degree of compression applied to formats that differ only in the number of components. For example,FORMAT_R8G8_UNORMcompressed to half its original size is a rate of 4 bits per component, 8 bits per pixel.FORMAT_R8G8B8A8_UNORMcompressed to half its original size is 4 bits per component, 16 bits per pixel. Both of these cases can be requested withIMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXT.Enum values:
IMAGE_COMPRESSION_FIXED_RATE_13BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_14BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_15BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_16BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_17BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_18BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_19BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_20BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_21BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_22BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_23BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_24BPC_BIT_EXT
- See Also:
-
VK_IMAGE_COMPRESSION_FIXED_RATE_18BPC_BIT_EXT
public static final int VK_IMAGE_COMPRESSION_FIXED_RATE_18BPC_BIT_EXTVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesDescription
IMAGE_COMPRESSION_FIXED_RATE_NONE_EXTspecifies that fixed-rate compression must not be used.IMAGE_COMPRESSION_FIXED_RATE_1BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[1,2)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[2,3)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_3BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[3,4)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[4,5)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_5BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[5,6)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_6BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[6,7)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_7BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[7,8)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_8BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[8,9)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_9BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[9,10)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_10BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[10,11)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_11BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[11,12)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_12BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of at least 12 bits per component may be used.
If the format has a different bit rate for different components,
VkImageCompressionControlEXT::pFixedRateFlagsdescribes the rate of the component with the largest number of bits assigned to it, scaled pro rata. For example, to request that aFORMAT_A2R10G10B10_UNORM_PACK32format be stored at a rate of 8 bits per pixel, useIMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXT(10 bits for the largest component, stored at quarter the original size, 2.5 bits, rounded down).If
flagsincludesIMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT, and multiple bits are set inVkImageCompressionControlEXT::pFixedRateFlagsfor a plane, implementations should apply the lowest allowed bitrate that is supported.Note
The choice of “
bits per component” terminology was chosen so that the same compression rate describes the same degree of compression applied to formats that differ only in the number of components. For example,FORMAT_R8G8_UNORMcompressed to half its original size is a rate of 4 bits per component, 8 bits per pixel.FORMAT_R8G8B8A8_UNORMcompressed to half its original size is 4 bits per component, 16 bits per pixel. Both of these cases can be requested withIMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXT.Enum values:
IMAGE_COMPRESSION_FIXED_RATE_13BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_14BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_15BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_16BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_17BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_18BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_19BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_20BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_21BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_22BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_23BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_24BPC_BIT_EXT
- See Also:
-
VK_IMAGE_COMPRESSION_FIXED_RATE_19BPC_BIT_EXT
public static final int VK_IMAGE_COMPRESSION_FIXED_RATE_19BPC_BIT_EXTVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesDescription
IMAGE_COMPRESSION_FIXED_RATE_NONE_EXTspecifies that fixed-rate compression must not be used.IMAGE_COMPRESSION_FIXED_RATE_1BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[1,2)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[2,3)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_3BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[3,4)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[4,5)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_5BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[5,6)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_6BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[6,7)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_7BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[7,8)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_8BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[8,9)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_9BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[9,10)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_10BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[10,11)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_11BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[11,12)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_12BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of at least 12 bits per component may be used.
If the format has a different bit rate for different components,
VkImageCompressionControlEXT::pFixedRateFlagsdescribes the rate of the component with the largest number of bits assigned to it, scaled pro rata. For example, to request that aFORMAT_A2R10G10B10_UNORM_PACK32format be stored at a rate of 8 bits per pixel, useIMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXT(10 bits for the largest component, stored at quarter the original size, 2.5 bits, rounded down).If
flagsincludesIMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT, and multiple bits are set inVkImageCompressionControlEXT::pFixedRateFlagsfor a plane, implementations should apply the lowest allowed bitrate that is supported.Note
The choice of “
bits per component” terminology was chosen so that the same compression rate describes the same degree of compression applied to formats that differ only in the number of components. For example,FORMAT_R8G8_UNORMcompressed to half its original size is a rate of 4 bits per component, 8 bits per pixel.FORMAT_R8G8B8A8_UNORMcompressed to half its original size is 4 bits per component, 16 bits per pixel. Both of these cases can be requested withIMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXT.Enum values:
IMAGE_COMPRESSION_FIXED_RATE_13BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_14BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_15BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_16BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_17BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_18BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_19BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_20BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_21BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_22BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_23BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_24BPC_BIT_EXT
- See Also:
-
VK_IMAGE_COMPRESSION_FIXED_RATE_20BPC_BIT_EXT
public static final int VK_IMAGE_COMPRESSION_FIXED_RATE_20BPC_BIT_EXTVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesDescription
IMAGE_COMPRESSION_FIXED_RATE_NONE_EXTspecifies that fixed-rate compression must not be used.IMAGE_COMPRESSION_FIXED_RATE_1BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[1,2)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[2,3)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_3BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[3,4)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[4,5)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_5BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[5,6)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_6BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[6,7)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_7BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[7,8)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_8BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[8,9)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_9BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[9,10)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_10BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[10,11)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_11BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[11,12)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_12BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of at least 12 bits per component may be used.
If the format has a different bit rate for different components,
VkImageCompressionControlEXT::pFixedRateFlagsdescribes the rate of the component with the largest number of bits assigned to it, scaled pro rata. For example, to request that aFORMAT_A2R10G10B10_UNORM_PACK32format be stored at a rate of 8 bits per pixel, useIMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXT(10 bits for the largest component, stored at quarter the original size, 2.5 bits, rounded down).If
flagsincludesIMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT, and multiple bits are set inVkImageCompressionControlEXT::pFixedRateFlagsfor a plane, implementations should apply the lowest allowed bitrate that is supported.Note
The choice of “
bits per component” terminology was chosen so that the same compression rate describes the same degree of compression applied to formats that differ only in the number of components. For example,FORMAT_R8G8_UNORMcompressed to half its original size is a rate of 4 bits per component, 8 bits per pixel.FORMAT_R8G8B8A8_UNORMcompressed to half its original size is 4 bits per component, 16 bits per pixel. Both of these cases can be requested withIMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXT.Enum values:
IMAGE_COMPRESSION_FIXED_RATE_13BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_14BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_15BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_16BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_17BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_18BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_19BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_20BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_21BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_22BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_23BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_24BPC_BIT_EXT
- See Also:
-
VK_IMAGE_COMPRESSION_FIXED_RATE_21BPC_BIT_EXT
public static final int VK_IMAGE_COMPRESSION_FIXED_RATE_21BPC_BIT_EXTVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesDescription
IMAGE_COMPRESSION_FIXED_RATE_NONE_EXTspecifies that fixed-rate compression must not be used.IMAGE_COMPRESSION_FIXED_RATE_1BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[1,2)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[2,3)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_3BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[3,4)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[4,5)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_5BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[5,6)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_6BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[6,7)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_7BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[7,8)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_8BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[8,9)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_9BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[9,10)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_10BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[10,11)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_11BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[11,12)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_12BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of at least 12 bits per component may be used.
If the format has a different bit rate for different components,
VkImageCompressionControlEXT::pFixedRateFlagsdescribes the rate of the component with the largest number of bits assigned to it, scaled pro rata. For example, to request that aFORMAT_A2R10G10B10_UNORM_PACK32format be stored at a rate of 8 bits per pixel, useIMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXT(10 bits for the largest component, stored at quarter the original size, 2.5 bits, rounded down).If
flagsincludesIMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT, and multiple bits are set inVkImageCompressionControlEXT::pFixedRateFlagsfor a plane, implementations should apply the lowest allowed bitrate that is supported.Note
The choice of “
bits per component” terminology was chosen so that the same compression rate describes the same degree of compression applied to formats that differ only in the number of components. For example,FORMAT_R8G8_UNORMcompressed to half its original size is a rate of 4 bits per component, 8 bits per pixel.FORMAT_R8G8B8A8_UNORMcompressed to half its original size is 4 bits per component, 16 bits per pixel. Both of these cases can be requested withIMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXT.Enum values:
IMAGE_COMPRESSION_FIXED_RATE_13BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_14BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_15BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_16BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_17BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_18BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_19BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_20BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_21BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_22BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_23BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_24BPC_BIT_EXT
- See Also:
-
VK_IMAGE_COMPRESSION_FIXED_RATE_22BPC_BIT_EXT
public static final int VK_IMAGE_COMPRESSION_FIXED_RATE_22BPC_BIT_EXTVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesDescription
IMAGE_COMPRESSION_FIXED_RATE_NONE_EXTspecifies that fixed-rate compression must not be used.IMAGE_COMPRESSION_FIXED_RATE_1BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[1,2)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[2,3)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_3BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[3,4)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[4,5)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_5BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[5,6)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_6BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[6,7)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_7BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[7,8)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_8BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[8,9)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_9BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[9,10)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_10BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[10,11)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_11BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[11,12)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_12BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of at least 12 bits per component may be used.
If the format has a different bit rate for different components,
VkImageCompressionControlEXT::pFixedRateFlagsdescribes the rate of the component with the largest number of bits assigned to it, scaled pro rata. For example, to request that aFORMAT_A2R10G10B10_UNORM_PACK32format be stored at a rate of 8 bits per pixel, useIMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXT(10 bits for the largest component, stored at quarter the original size, 2.5 bits, rounded down).If
flagsincludesIMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT, and multiple bits are set inVkImageCompressionControlEXT::pFixedRateFlagsfor a plane, implementations should apply the lowest allowed bitrate that is supported.Note
The choice of “
bits per component” terminology was chosen so that the same compression rate describes the same degree of compression applied to formats that differ only in the number of components. For example,FORMAT_R8G8_UNORMcompressed to half its original size is a rate of 4 bits per component, 8 bits per pixel.FORMAT_R8G8B8A8_UNORMcompressed to half its original size is 4 bits per component, 16 bits per pixel. Both of these cases can be requested withIMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXT.Enum values:
IMAGE_COMPRESSION_FIXED_RATE_13BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_14BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_15BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_16BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_17BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_18BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_19BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_20BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_21BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_22BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_23BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_24BPC_BIT_EXT
- See Also:
-
VK_IMAGE_COMPRESSION_FIXED_RATE_23BPC_BIT_EXT
public static final int VK_IMAGE_COMPRESSION_FIXED_RATE_23BPC_BIT_EXTVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesDescription
IMAGE_COMPRESSION_FIXED_RATE_NONE_EXTspecifies that fixed-rate compression must not be used.IMAGE_COMPRESSION_FIXED_RATE_1BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[1,2)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[2,3)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_3BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[3,4)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[4,5)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_5BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[5,6)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_6BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[6,7)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_7BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[7,8)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_8BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[8,9)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_9BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[9,10)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_10BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[10,11)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_11BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[11,12)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_12BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of at least 12 bits per component may be used.
If the format has a different bit rate for different components,
VkImageCompressionControlEXT::pFixedRateFlagsdescribes the rate of the component with the largest number of bits assigned to it, scaled pro rata. For example, to request that aFORMAT_A2R10G10B10_UNORM_PACK32format be stored at a rate of 8 bits per pixel, useIMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXT(10 bits for the largest component, stored at quarter the original size, 2.5 bits, rounded down).If
flagsincludesIMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT, and multiple bits are set inVkImageCompressionControlEXT::pFixedRateFlagsfor a plane, implementations should apply the lowest allowed bitrate that is supported.Note
The choice of “
bits per component” terminology was chosen so that the same compression rate describes the same degree of compression applied to formats that differ only in the number of components. For example,FORMAT_R8G8_UNORMcompressed to half its original size is a rate of 4 bits per component, 8 bits per pixel.FORMAT_R8G8B8A8_UNORMcompressed to half its original size is 4 bits per component, 16 bits per pixel. Both of these cases can be requested withIMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXT.Enum values:
IMAGE_COMPRESSION_FIXED_RATE_13BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_14BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_15BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_16BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_17BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_18BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_19BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_20BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_21BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_22BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_23BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_24BPC_BIT_EXT
- See Also:
-
VK_IMAGE_COMPRESSION_FIXED_RATE_24BPC_BIT_EXT
public static final int VK_IMAGE_COMPRESSION_FIXED_RATE_24BPC_BIT_EXTVkImageCompressionFixedRateFlagBitsEXT - Bitmask specifying fixed rate image compression ratesDescription
IMAGE_COMPRESSION_FIXED_RATE_NONE_EXTspecifies that fixed-rate compression must not be used.IMAGE_COMPRESSION_FIXED_RATE_1BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[1,2)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[2,3)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_3BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[3,4)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[4,5)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_5BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[5,6)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_6BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[6,7)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_7BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[7,8)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_8BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[8,9)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_9BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[9,10)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_10BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[10,11)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_11BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of[11,12)bits per component may be used.IMAGE_COMPRESSION_FIXED_RATE_12BPC_BIT_EXTspecifies that fixed-rate compression with a bitrate of at least 12 bits per component may be used.
If the format has a different bit rate for different components,
VkImageCompressionControlEXT::pFixedRateFlagsdescribes the rate of the component with the largest number of bits assigned to it, scaled pro rata. For example, to request that aFORMAT_A2R10G10B10_UNORM_PACK32format be stored at a rate of 8 bits per pixel, useIMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXT(10 bits for the largest component, stored at quarter the original size, 2.5 bits, rounded down).If
flagsincludesIMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT, and multiple bits are set inVkImageCompressionControlEXT::pFixedRateFlagsfor a plane, implementations should apply the lowest allowed bitrate that is supported.Note
The choice of “
bits per component” terminology was chosen so that the same compression rate describes the same degree of compression applied to formats that differ only in the number of components. For example,FORMAT_R8G8_UNORMcompressed to half its original size is a rate of 4 bits per component, 8 bits per pixel.FORMAT_R8G8B8A8_UNORMcompressed to half its original size is 4 bits per component, 16 bits per pixel. Both of these cases can be requested withIMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXT.Enum values:
IMAGE_COMPRESSION_FIXED_RATE_13BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_14BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_15BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_16BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_17BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_18BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_19BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_20BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_21BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_22BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_23BPC_BIT_EXTIMAGE_COMPRESSION_FIXED_RATE_24BPC_BIT_EXT
- See Also:
-
-
Method Details
-
nvkGetImageSubresourceLayout2EXT
public static void nvkGetImageSubresourceLayout2EXT(org.lwjgl.vulkan.VkDevice device, long image, long pSubresource, long pLayout) Unsafe version of:GetImageSubresourceLayout2EXT -
vkGetImageSubresourceLayout2EXT
public static void vkGetImageSubresourceLayout2EXT(org.lwjgl.vulkan.VkDevice device, long image, VkImageSubresource2 pSubresource, VkSubresourceLayout2 pLayout) - Parameters:
device- the logical device that owns the image.image- the image whose layout is being queried.pSubresource- a pointer to aVkImageSubresource2structure selecting a specific image for the image subresource.pLayout- a pointer to aVkSubresourceLayout2structure in which the layout is returned.
-