Class VkPipelineCacheHeaderVersionOne

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

public class VkPipelineCacheHeaderVersionOne extends org.lwjgl.system.Struct<VkPipelineCacheHeaderVersionOne> implements org.lwjgl.system.NativeResource
Structure describing the layout of the pipeline cache header.
Description

Unlike most structures declared by the Vulkan API, all fields of this structure are written with the least significant byte first, regardless of host byte-order.

The C language specification does not define the packing of structure members. This layout assumes tight structure member packing, with members laid out in the order listed in the structure, and the intended size of the structure is 32 bytes. If a compiler produces code that diverges from that pattern, applications must employ another method to set values at the correct offsets.

Valid Usage
Valid Usage (Implicit)
  • headerVersion must be a valid VkPipelineCacheHeaderVersion value

Layout


 struct VkPipelineCacheHeaderVersionOne {
     uint32_t headerSize();
     VkPipelineCacheHeaderVersion headerVersion();
     uint32_t vendorID();
     uint32_t deviceID();
     uint8_t pipelineCacheUUID()[VK_UUID_SIZE];
 }
  • Field Details

    • SIZEOF

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

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

      public static final int HEADERSIZE
      The struct member offsets.
    • HEADERVERSION

      public static final int HEADERVERSION
      The struct member offsets.
    • VENDORID

      public static final int VENDORID
      The struct member offsets.
    • DEVICEID

      public static final int DEVICEID
      The struct member offsets.
    • PIPELINECACHEUUID

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

    • VkPipelineCacheHeaderVersionOne

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