Class VkPipelineCacheHeaderVersionOne

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

    public class VkPipelineCacheHeaderVersionOne
    extends org.lwjgl.system.Struct
    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 Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • HEADERSIZE, HEADERVERSION, VENDORID, DEVICEID, PIPELINECACHEUUID

        The struct member offsets.
    • Constructor Detail

      • VkPipelineCacheHeaderVersionOne

        public VkPipelineCacheHeaderVersionOne​(java.nio.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.