Class VkImageAlignmentControlCreateInfoMESA

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkImageAlignmentControlCreateInfoMESA>
org.lwjgl.vulkan.VkImageAlignmentControlCreateInfoMESA
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class VkImageAlignmentControlCreateInfoMESA extends org.lwjgl.system.Struct<VkImageAlignmentControlCreateInfoMESA> implements org.lwjgl.system.NativeResource
Specify image alignment.
Description

If maximumRequestedAlignment is not 0, the implementation should choose an image memory layout that requires an alignment no larger than maximumRequestedAlignment as reported in VkMemoryRequirements::alignment. If such a layout does not exist for the given image creation parameters, the implementation should return the smallest alignment which is supported in VkMemoryRequirements.

If an implementation needs to disable image compression for maximumRequestedAlignment to be honored - where a larger alignment would enable image compression - the implementation should not use maximumRequestedAlignment, and should return the smallest alignment which does not compromise compression. If the imageCompressionControl feature is enabled, the application can chain a VkImageCompressionControlEXT with IMAGE_COMPRESSION_DISABLED_EXT. In this case, image compression considerations should not apply when implementation decides alignment.

Valid Usage
  • If maximumRequestedAlignment is not 0, maximumRequestedAlignment must be a power of two
  • If maximumRequestedAlignment is not 0, the bitwise-and of maximumRequestedAlignment and supportedImageAlignmentMask must be non-zero
  • imageAlignmentControl must be enabled
Valid Usage (Implicit)

Layout


 struct VkImageAlignmentControlCreateInfoMESA {
     VkStructureType sType();
     void const * pNext();
     uint32_t maximumRequestedAlignment();
 }