Class VkPipelineCacheHeaderVersionOne.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<VkPipelineCacheHeaderVersionOne>, NativeResource, Pointer
Enclosing class:
VkPipelineCacheHeaderVersionOne

public static class VkPipelineCacheHeaderVersionOne.Buffer extends StructBuffer<VkPipelineCacheHeaderVersionOne,VkPipelineCacheHeaderVersionOne.Buffer> implements NativeResource
An array of VkPipelineCacheHeaderVersionOne structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new VkPipelineCacheHeaderVersionOne.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by VkPipelineCacheHeaderVersionOne.SIZEOF, and its mark will be undefined.

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

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • headerSize

      public int headerSize()
      Returns:
      the value of the headerSize field.
    • headerVersion

      public int headerVersion()
      Returns:
      the value of the headerVersion field.
    • vendorID

      public int vendorID()
      Returns:
      the value of the vendorID field.
    • deviceID

      public int deviceID()
      Returns:
      the value of the deviceID field.
    • pipelineCacheUUID

      public ByteBuffer pipelineCacheUUID()
      Returns:
      a ByteBuffer view of the pipelineCacheUUID field.
    • pipelineCacheUUID

      public byte pipelineCacheUUID(int index)
      Returns:
      the value at the specified index of the pipelineCacheUUID field.
    • headerSize

      public VkPipelineCacheHeaderVersionOne.Buffer headerSize(int value)
      Sets the specified value to the headerSize field.
    • headerVersion

      public VkPipelineCacheHeaderVersionOne.Buffer headerVersion(int value)
      Sets the specified value to the headerVersion field.
    • vendorID

      public VkPipelineCacheHeaderVersionOne.Buffer vendorID(int value)
      Sets the specified value to the vendorID field.
    • deviceID

      public VkPipelineCacheHeaderVersionOne.Buffer deviceID(int value)
      Sets the specified value to the deviceID field.
    • pipelineCacheUUID

      public VkPipelineCacheHeaderVersionOne.Buffer pipelineCacheUUID(ByteBuffer value)
      Copies the specified ByteBuffer to the pipelineCacheUUID field.
    • pipelineCacheUUID

      public VkPipelineCacheHeaderVersionOne.Buffer pipelineCacheUUID(int index, byte value)
      Sets the specified value at the specified index of the pipelineCacheUUID field.