Class VkClearColorValue

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


    public class VkClearColorValue
    extends Struct
    Khronos Reference Page
    Vulkan Specification

    Specifies the color image clear values to use when clearing a color image or attachment.

    Member documentation

    • float32 – used for floating point, unorm, snorm, uscaled, packed float, and sRGB formats
    • int32 – used for signed integer formats
    • uint32 – used for unsigned integer formats

    Layout

    union VkClearColorValue {
        float[4] float32;
        int32_t[4] int32;
        uint32_t[4] uint32;
    }
    • Field Detail

      • SIZEOF

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

      • VkClearColorValue

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