Skip to content

Commit

Permalink
Update Image Compression Control sample tutorial (#1096)
Browse files Browse the repository at this point in the history
When querying for image compression support, `VK_IMAGE_COMPRESSION_FIXED_RATE_DEFAULT_EXT` should be used, as shown in the [extension proposal](https://docs.vulkan.org/features/latest/features/proposals/VK_EXT_image_compression_control.html#_examples)
  • Loading branch information
JoseEmilio-ARM committed Jul 12, 2024
1 parent 0d347b1 commit 34e2ec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/performance/image_compression_control/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ To query if a particular image supports fixed-rate compression, add a https://re
VkImageCompressionPropertiesEXT supported_compression_properties{VK_STRUCTURE_TYPE_IMAGE_COMPRESSION_PROPERTIES_EXT};
VkImageCompressionControlEXT compression_control{VK_STRUCTURE_TYPE_IMAGE_COMPRESSION_CONTROL_EXT};
compression_control.flags = VK_IMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT;
compression_control.flags = VK_IMAGE_COMPRESSION_FIXED_RATE_DEFAULT_EXT;
VkPhysicalDeviceImageFormatInfo2 image_format_info{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2};
image_format_info.format = VK_FORMAT_R8G8B8_UNORM;
Expand Down

0 comments on commit 34e2ec1

Please sign in to comment.