Class VkClearValue

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

public class VkClearValue extends org.lwjgl.system.Struct<VkClearValue> implements org.lwjgl.system.NativeResource
Structure specifying a clear value.
Description

This union is used where part of the API requires either color or depth/stencil clear values, depending on the attachment, and defines the initial clear values in the VkRenderPassBeginInfo structure.

See Also

VkClearAttachment, VkClearColorValue, VkClearDepthStencilValue, VkRenderPassBeginInfo, VkRenderingAttachmentInfo

Layout


 union VkClearValue {
     VkClearColorValue color();
     VkClearDepthStencilValue depthStencil();
 }
  • Field Details

    • SIZEOF

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

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

      public static final int COLOR
      The struct member offsets.
    • DEPTHSTENCIL

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

    • VkClearValue

      public VkClearValue(ByteBuffer container)
      Creates a VkClearValue 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