Class VkComponentMapping

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkComponentMapping extends Struct<VkComponentMapping> implements NativeResource
Structure specifying a color component mapping.
Valid Usage (Implicit)
  • r must be a valid VkComponentSwizzle value
  • g must be a valid VkComponentSwizzle value
  • b must be a valid VkComponentSwizzle value
  • a must be a valid VkComponentSwizzle value
See Also

VkAndroidHardwareBufferFormatProperties2ANDROID, VkAndroidHardwareBufferFormatPropertiesANDROID, VkImageViewCreateInfo, VkSamplerBorderColorComponentMappingCreateInfoEXT, VkSamplerYcbcrConversionCreateInfo, VkVideoFormatPropertiesKHR

Layout


 struct VkComponentMapping {
     VkComponentSwizzle r();
     VkComponentSwizzle g();
     VkComponentSwizzle b();
     VkComponentSwizzle a();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • R

      public static final int R
      The struct member offsets.
    • G

      public static final int G
      The struct member offsets.
    • B

      public static final int B
      The struct member offsets.
    • A

      public static final int A
      The struct member offsets.
  • Constructor Details

    • VkComponentMapping

      public VkComponentMapping(ByteBuffer container)
      Creates a VkComponentMapping instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details