Class VkFormatProperties

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class VkFormatProperties
    extends Struct
    implements NativeResource
    Structure specifying image format properties.
    Description
    Note

    If no format feature flags are supported, the format itself is not supported, and images of that format cannot be created.

    If format is a block-compressed format, then bufferFeatures must not support any features for the format.

    If format is not a multi-plane format then linearTilingFeatures and optimalTilingFeatures must not contain FORMAT_FEATURE_DISJOINT_BIT.

    See Also

    VkFormatProperties2, GetPhysicalDeviceFormatProperties

    Member documentation

    • linearTilingFeatures – a bitmask of VkFormatFeatureFlagBits specifying features supported by images created with a tiling parameter of IMAGE_TILING_LINEAR.
    • optimalTilingFeatures – a bitmask of VkFormatFeatureFlagBits specifying features supported by images created with a tiling parameter of IMAGE_TILING_OPTIMAL.
    • bufferFeatures – a bitmask of VkFormatFeatureFlagBits specifying features supported by buffers.

    Layout

    
     struct VkFormatProperties {
         VkFormatFeatureFlags linearTilingFeatures;
         VkFormatFeatureFlags optimalTilingFeatures;
         VkFormatFeatureFlags bufferFeatures;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • LINEARTILINGFEATURES, OPTIMALTILINGFEATURES, BUFFERFEATURES

        The struct member offsets.
    • Constructor Detail

      • VkFormatProperties

        public VkFormatProperties​(java.nio.ByteBuffer container)
        Creates a VkFormatProperties 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.