Package org.lwjgl.vulkan
Class VkPipelineCacheHeaderVersionOne
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkPipelineCacheHeaderVersionOne>
org.lwjgl.vulkan.VkPipelineCacheHeaderVersionOne
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class VkPipelineCacheHeaderVersionOne
extends Struct<VkPipelineCacheHeaderVersionOne>
implements NativeResource
struct VkPipelineCacheHeaderVersionOne {
uint32_t headerSize;
VkPipelineCacheHeaderVersion headerVersion;
uint32_t vendorID;
uint32_t deviceID;
uint8_t pipelineCacheUUID[VK_UUID_SIZE];
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
An array ofVkPipelineCacheHeaderVersionOne
structs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionVkPipelineCacheHeaderVersionOne
(ByteBuffer container) Creates aVkPipelineCacheHeaderVersionOne
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()
Returns a newVkPipelineCacheHeaderVersionOne
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVkPipelineCacheHeaderVersionOne.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVkPipelineCacheHeaderVersionOne.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newVkPipelineCacheHeaderVersionOne
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.create()
Returns a newVkPipelineCacheHeaderVersionOne
instance allocated withBufferUtils
.create
(int capacity) Returns a newVkPipelineCacheHeaderVersionOne.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newVkPipelineCacheHeaderVersionOne
instance for the specified memory address.create
(long address, int capacity) Create aVkPipelineCacheHeaderVersionOne.Buffer
instance at the specified memory.static @Nullable VkPipelineCacheHeaderVersionOne
createSafe
(long address) static @Nullable VkPipelineCacheHeaderVersionOne.Buffer
createSafe
(long address, int capacity) int
deviceID()
deviceID
(int value) Sets the specified value to thedeviceID
field.int
headerSize
(int value) Sets the specified value to theheaderSize
field.int
headerVersion
(int value) Sets the specified value to theheaderVersion
field.malloc()
Returns a newVkPipelineCacheHeaderVersionOne
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVkPipelineCacheHeaderVersionOne.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVkPipelineCacheHeaderVersionOne.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newVkPipelineCacheHeaderVersionOne
instance allocated on the specifiedMemoryStack
.static int
ndeviceID
(long struct) Unsafe version ofdeviceID()
.static void
ndeviceID
(long struct, int value) Unsafe version ofdeviceID
.static int
nheaderSize
(long struct) Unsafe version ofheaderSize()
.static void
nheaderSize
(long struct, int value) Unsafe version ofheaderSize
.static int
nheaderVersion
(long struct) Unsafe version ofheaderVersion()
.static void
nheaderVersion
(long struct, int value) Unsafe version ofheaderVersion
.static ByteBuffer
npipelineCacheUUID
(long struct) Unsafe version ofpipelineCacheUUID()
.static byte
npipelineCacheUUID
(long struct, int index) Unsafe version ofpipelineCacheUUID
.static void
npipelineCacheUUID
(long struct, int index, byte value) Unsafe version ofpipelineCacheUUID
.static void
npipelineCacheUUID
(long struct, ByteBuffer value) Unsafe version ofpipelineCacheUUID
.static int
nvendorID
(long struct) Unsafe version ofvendorID()
.static void
nvendorID
(long struct, int value) Unsafe version ofvendorID
.byte
pipelineCacheUUID
(int index) pipelineCacheUUID
(int index, byte value) Sets the specified value at the specified index of thepipelineCacheUUID
field.pipelineCacheUUID
(ByteBuffer value) Copies the specifiedByteBuffer
to thepipelineCacheUUID
field.set
(int headerSize, int headerVersion, int vendorID, int deviceID, ByteBuffer pipelineCacheUUID) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
vendorID()
vendorID
(int value) Sets the specified value to thevendorID
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
HEADERSIZE
public static final int HEADERSIZEThe struct member offsets. -
HEADERVERSION
public static final int HEADERVERSIONThe struct member offsets. -
VENDORID
public static final int VENDORIDThe struct member offsets. -
DEVICEID
public static final int DEVICEIDThe struct member offsets. -
PIPELINECACHEUUID
public static final int PIPELINECACHEUUIDThe struct member offsets.
-
-
Constructor Details
-
VkPipelineCacheHeaderVersionOne
Creates aVkPipelineCacheHeaderVersionOne
instance at the current position of the specifiedByteBuffer
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
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VkPipelineCacheHeaderVersionOne>
-
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
- Returns:
- a
ByteBuffer
view of thepipelineCacheUUID
field.
-
pipelineCacheUUID
public byte pipelineCacheUUID(int index) - Returns:
- the value at the specified index of the
pipelineCacheUUID
field.
-
headerSize
Sets the specified value to theheaderSize
field. -
headerVersion
Sets the specified value to theheaderVersion
field. -
vendorID
Sets the specified value to thevendorID
field. -
deviceID
Sets the specified value to thedeviceID
field. -
pipelineCacheUUID
Copies the specifiedByteBuffer
to thepipelineCacheUUID
field. -
pipelineCacheUUID
Sets the specified value at the specified index of thepipelineCacheUUID
field. -
set
public VkPipelineCacheHeaderVersionOne set(int headerSize, int headerVersion, int vendorID, int deviceID, ByteBuffer pipelineCacheUUID) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVkPipelineCacheHeaderVersionOne
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkPipelineCacheHeaderVersionOne
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkPipelineCacheHeaderVersionOne
instance allocated withBufferUtils
. -
create
Returns a newVkPipelineCacheHeaderVersionOne
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkPipelineCacheHeaderVersionOne.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkPipelineCacheHeaderVersionOne.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkPipelineCacheHeaderVersionOne.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkPipelineCacheHeaderVersionOne.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
public static @Nullable VkPipelineCacheHeaderVersionOne.Buffer createSafe(long address, int capacity) -
malloc
Returns a newVkPipelineCacheHeaderVersionOne
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkPipelineCacheHeaderVersionOne
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkPipelineCacheHeaderVersionOne.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkPipelineCacheHeaderVersionOne.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nheaderSize
public static int nheaderSize(long struct) Unsafe version ofheaderSize()
. -
nheaderVersion
public static int nheaderVersion(long struct) Unsafe version ofheaderVersion()
. -
nvendorID
public static int nvendorID(long struct) Unsafe version ofvendorID()
. -
ndeviceID
public static int ndeviceID(long struct) Unsafe version ofdeviceID()
. -
npipelineCacheUUID
Unsafe version ofpipelineCacheUUID()
. -
npipelineCacheUUID
public static byte npipelineCacheUUID(long struct, int index) Unsafe version ofpipelineCacheUUID
. -
nheaderSize
public static void nheaderSize(long struct, int value) Unsafe version ofheaderSize
. -
nheaderVersion
public static void nheaderVersion(long struct, int value) Unsafe version ofheaderVersion
. -
nvendorID
public static void nvendorID(long struct, int value) Unsafe version ofvendorID
. -
ndeviceID
public static void ndeviceID(long struct, int value) Unsafe version ofdeviceID
. -
npipelineCacheUUID
Unsafe version ofpipelineCacheUUID
. -
npipelineCacheUUID
public static void npipelineCacheUUID(long struct, int index, byte value) Unsafe version ofpipelineCacheUUID
.
-