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.
headerSize must be 32headerVersion must be PIPELINE_CACHE_HEADER_VERSION_ONEheaderSize must not exceed the size of the pipeline cacheheaderVersion must be a valid VkPipelineCacheHeaderVersion value
struct VkPipelineCacheHeaderVersionOne {
uint32_t headerSize;
VkPipelineCacheHeaderVersion headerVersion;
uint32_t vendorID;
uint32_t deviceID;
uint8_t pipelineCacheUUID[VK_UUID_SIZE];
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkPipelineCacheHeaderVersionOne.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | DEVICEID
The struct member offsets. |
| public static final int | HEADERSIZE
The struct member offsets. |
| public static final int | HEADERVERSION
The struct member offsets. |
| public static final int | PIPELINECACHEUUID
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | VENDORID
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkPipelineCacheHeaderVersionOne(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VkPipelineCacheHeaderVersionOne | |
| public static VkPipelineCacheHeaderVersionOne. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkPipelineCacheHeaderVersionOne | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkPipelineCacheHeaderVersionOne. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected VkPipelineCacheHeaderVersionOne | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static VkPipelineCacheHeaderVersionOne | |
| public static VkPipelineCacheHeaderVersionOne | create(long address)
Returns a new |
| public static VkPipelineCacheHeaderVersionOne. | create(int
the buffer capacity capacity)Returns a new |
| public static VkPipelineCacheHeaderVersionOne. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkPipelineCacheHeaderVersionOne | |
| public static VkPipelineCacheHeaderVersionOne. | |
| public int | |
| public VkPipelineCacheHeaderVersionOne | |
| public int | |
| public VkPipelineCacheHeaderVersionOne | |
| public int | |
| public VkPipelineCacheHeaderVersionOne | |
| public static VkPipelineCacheHeaderVersionOne | |
| public static VkPipelineCacheHeaderVersionOne. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkPipelineCacheHeaderVersionOne | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkPipelineCacheHeaderVersionOne. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static ByteBuffer | |
| public static byte | |
| public static void | |
| public static void | |
| public static int | |
| public static void | |
| public ByteBuffer | |
| public byte | pipelineCacheUUID(int index)
the |
| public VkPipelineCacheHeaderVersionOne | |
| public VkPipelineCacheHeaderVersionOne | pipelineCacheUUID(int index, byte value)
Sets the specified value at the specified index of the |
| public VkPipelineCacheHeaderVersionOne | set(int headerSize, int headerVersion, int vendorID, int deviceID, ByteBuffer pipelineCacheUUID)
Initializes this struct with the specified values. |
| public VkPipelineCacheHeaderVersionOne | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public VkPipelineCacheHeaderVersionOne |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| DEVICEID | back to summary |
|---|---|
| public static final int DEVICEID The struct member offsets. | |
| HEADERSIZE | back to summary |
|---|---|
| public static final int HEADERSIZE The struct member offsets. | |
| HEADERVERSION | back to summary |
|---|---|
| public static final int HEADERVERSION The struct member offsets. | |
| PIPELINECACHEUUID | back to summary |
|---|---|
| public static final int PIPELINECACHEUUID The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| VENDORID | back to summary |
|---|---|
| public static final int VENDORID The struct member offsets. | |
| VkPipelineCacheHeaderVersionOne | back to summary |
|---|---|
| protected VkPipelineCacheHeaderVersionOne(long address, ByteBuffer container) | |
| VkPipelineCacheHeaderVersionOne | back to summary |
|---|---|
| public VkPipelineCacheHeaderVersionOne(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static VkPipelineCacheHeaderVersionOne calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VkPipelineCacheHeaderVersionOne. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkPipelineCacheHeaderVersionOne calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkPipelineCacheHeaderVersionOne. Returns a new
| |
| create | back to summary |
|---|---|
| protected VkPipelineCacheHeaderVersionOne create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VkPipelineCacheHeaderVersionOne create() Returns a new | |
| create | back to summary |
|---|---|
| public static VkPipelineCacheHeaderVersionOne create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VkPipelineCacheHeaderVersionOne. Returns a new
| |
| create | back to summary |
|---|---|
| public static VkPipelineCacheHeaderVersionOne. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VkPipelineCacheHeaderVersionOne createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VkPipelineCacheHeaderVersionOne. Like
| |
| deviceID | back to summary |
|---|---|
| public int deviceID() the
| |
| deviceID | back to summary |
|---|---|
| public VkPipelineCacheHeaderVersionOne deviceID(int value) Sets the specified value to the | |
| headerSize | back to summary |
|---|---|
| public int headerSize() the length in bytes of the pipeline cache header.
| |
| headerSize | back to summary |
|---|---|
| public VkPipelineCacheHeaderVersionOne headerSize(int value) Sets the specified value to the | |
| headerVersion | back to summary |
|---|---|
| public int headerVersion() a
| |
| headerVersion | back to summary |
|---|---|
| public VkPipelineCacheHeaderVersionOne headerVersion(int value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static VkPipelineCacheHeaderVersionOne malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VkPipelineCacheHeaderVersionOne. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkPipelineCacheHeaderVersionOne malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkPipelineCacheHeaderVersionOne. Returns a new
| |
| ndeviceID | back to summary |
|---|---|
| public static int ndeviceID(long struct) Unsafe version of | |
| ndeviceID | back to summary |
|---|---|
| public static void ndeviceID(long struct, int value) Unsafe version of | |
| nheaderSize | back to summary |
|---|---|
| public static int nheaderSize(long struct) Unsafe version of | |
| nheaderSize | back to summary |
|---|---|
| public static void nheaderSize(long struct, int value) Unsafe version of | |
| nheaderVersion | back to summary |
|---|---|
| public static int nheaderVersion(long struct) Unsafe version of | |
| nheaderVersion | back to summary |
|---|---|
| public static void nheaderVersion(long struct, int value) Unsafe version of | |
| npipelineCacheUUID | back to summary |
|---|---|
| public static ByteBuffer npipelineCacheUUID(long struct) Unsafe version of | |
| npipelineCacheUUID | back to summary |
|---|---|
| public static byte npipelineCacheUUID(long struct, int index) Unsafe version of | |
| npipelineCacheUUID | back to summary |
|---|---|
| public static void npipelineCacheUUID(long struct, ByteBuffer value) Unsafe version of | |
| npipelineCacheUUID | back to summary |
|---|---|
| public static void npipelineCacheUUID(long struct, int index, byte value) Unsafe version of | |
| nvendorID | back to summary |
|---|---|
| public static int nvendorID(long struct) Unsafe version of | |
| nvendorID | back to summary |
|---|---|
| public static void nvendorID(long struct, int value) Unsafe version of | |
| pipelineCacheUUID | back to summary |
|---|---|
| public ByteBuffer pipelineCacheUUID() the
| |
| pipelineCacheUUID | back to summary |
|---|---|
| public byte pipelineCacheUUID(int index) the
| |
| pipelineCacheUUID | back to summary |
|---|---|
| public VkPipelineCacheHeaderVersionOne pipelineCacheUUID(ByteBuffer value) Copies the specified | |
| pipelineCacheUUID | back to summary |
|---|---|
| public VkPipelineCacheHeaderVersionOne pipelineCacheUUID(int index, byte value) Sets the specified value at the specified index of the | |
| set | back to summary |
|---|---|
| public VkPipelineCacheHeaderVersionOne set(int headerSize, int headerVersion, int vendorID, int deviceID, ByteBuffer pipelineCacheUUID) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VkPipelineCacheHeaderVersionOne set(VkPipelineCacheHeaderVersionOne src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| vendorID | back to summary |
|---|---|
| public int vendorID() the
| |
| vendorID | back to summary |
|---|---|
| public VkPipelineCacheHeaderVersionOne vendorID(int value) Sets the specified value to the | |
VkPipelineCacheHeaderVersionOne structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VkPipelineCacheHeaderVersionOne |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VkPipelineCacheHeaderVersionOne ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new 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 The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| deviceID | back to summary |
|---|---|
public int deviceID()
| |
| deviceID | back to summary |
|---|---|
| public VkPipelineCacheHeaderVersionOne. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected VkPipelineCacheHeaderVersionOne getElementFactory() Implements abstract org.
| |
| headerSize | back to summary |
|---|---|
public int headerSize()
| |
| headerSize | back to summary |
|---|---|
| public VkPipelineCacheHeaderVersionOne. Sets the specified value to the | |
| headerVersion | back to summary |
|---|---|
public int headerVersion()
| |
| headerVersion | back to summary |
|---|---|
| public VkPipelineCacheHeaderVersionOne. Sets the specified value to the | |
| pipelineCacheUUID | back to summary |
|---|---|
public ByteBuffer pipelineCacheUUID()
| |
| pipelineCacheUUID | back to summary |
|---|---|
public byte pipelineCacheUUID(int index)
| |
| pipelineCacheUUID | back to summary |
|---|---|
| public VkPipelineCacheHeaderVersionOne. Copies the specified | |
| pipelineCacheUUID | back to summary |
|---|---|
| public VkPipelineCacheHeaderVersionOne. Sets the specified value at the specified index of the | |
| self | back to summary |
|---|---|
| protected VkPipelineCacheHeaderVersionOne. Implements abstract org.
| |
| vendorID | back to summary |
|---|---|
public int vendorID()
| |
| vendorID | back to summary |
|---|---|
| public VkPipelineCacheHeaderVersionOne. Sets the specified value to the | |