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 classAn array ofVkPipelineCacheHeaderVersionOnestructs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe 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 aVkPipelineCacheHeaderVersionOneinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newVkPipelineCacheHeaderVersionOneinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkPipelineCacheHeaderVersionOne.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkPipelineCacheHeaderVersionOne.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newVkPipelineCacheHeaderVersionOneinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newVkPipelineCacheHeaderVersionOneinstance allocated withBufferUtils.create(int capacity) Returns a newVkPipelineCacheHeaderVersionOne.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkPipelineCacheHeaderVersionOneinstance for the specified memory address.create(long address, int capacity) Create aVkPipelineCacheHeaderVersionOne.Bufferinstance at the specified memory.static @Nullable VkPipelineCacheHeaderVersionOnecreateSafe(long address) static @Nullable VkPipelineCacheHeaderVersionOne.BuffercreateSafe(long address, int capacity) intdeviceID()deviceID(int value) Sets the specified value to thedeviceIDfield.intheaderSize(int value) Sets the specified value to theheaderSizefield.intheaderVersion(int value) Sets the specified value to theheaderVersionfield.malloc()Returns a newVkPipelineCacheHeaderVersionOneinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkPipelineCacheHeaderVersionOne.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkPipelineCacheHeaderVersionOne.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newVkPipelineCacheHeaderVersionOneinstance allocated on the specifiedMemoryStack.static intndeviceID(long struct) Unsafe version ofdeviceID().static voidndeviceID(long struct, int value) Unsafe version ofdeviceID.static intnheaderSize(long struct) Unsafe version ofheaderSize().static voidnheaderSize(long struct, int value) Unsafe version ofheaderSize.static intnheaderVersion(long struct) Unsafe version ofheaderVersion().static voidnheaderVersion(long struct, int value) Unsafe version ofheaderVersion.static ByteBuffernpipelineCacheUUID(long struct) Unsafe version ofpipelineCacheUUID().static bytenpipelineCacheUUID(long struct, int index) Unsafe version ofpipelineCacheUUID.static voidnpipelineCacheUUID(long struct, int index, byte value) Unsafe version ofpipelineCacheUUID.static voidnpipelineCacheUUID(long struct, ByteBuffer value) Unsafe version ofpipelineCacheUUID.static intnvendorID(long struct) Unsafe version ofvendorID().static voidnvendorID(long struct, int value) Unsafe version ofvendorID.bytepipelineCacheUUID(int index) pipelineCacheUUID(int index, byte value) Sets the specified value at the specified index of thepipelineCacheUUIDfield.pipelineCacheUUID(ByteBuffer value) Copies the specifiedByteBufferto thepipelineCacheUUIDfield.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.intsizeof()Returnssizeof(struct).intvendorID()vendorID(int value) Sets the specified value to thevendorIDfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aVkPipelineCacheHeaderVersionOneinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkPipelineCacheHeaderVersionOne>
-
headerSize
public int headerSize()- Returns:
- the value of the
headerSizefield.
-
headerVersion
public int headerVersion()- Returns:
- the value of the
headerVersionfield.
-
vendorID
public int vendorID()- Returns:
- the value of the
vendorIDfield.
-
deviceID
public int deviceID()- Returns:
- the value of the
deviceIDfield.
-
pipelineCacheUUID
- Returns:
- a
ByteBufferview of thepipelineCacheUUIDfield.
-
pipelineCacheUUID
public byte pipelineCacheUUID(int index) - Returns:
- the value at the specified index of the
pipelineCacheUUIDfield.
-
headerSize
Sets the specified value to theheaderSizefield. -
headerVersion
Sets the specified value to theheaderVersionfield. -
vendorID
Sets the specified value to thevendorIDfield. -
deviceID
Sets the specified value to thedeviceIDfield. -
pipelineCacheUUID
Copies the specifiedByteBufferto thepipelineCacheUUIDfield. -
pipelineCacheUUID
Sets the specified value at the specified index of thepipelineCacheUUIDfield. -
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 newVkPipelineCacheHeaderVersionOneinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkPipelineCacheHeaderVersionOneinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkPipelineCacheHeaderVersionOneinstance allocated withBufferUtils. -
create
Returns a newVkPipelineCacheHeaderVersionOneinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkPipelineCacheHeaderVersionOne.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkPipelineCacheHeaderVersionOne.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkPipelineCacheHeaderVersionOne.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkPipelineCacheHeaderVersionOne.Bufferinstance 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 newVkPipelineCacheHeaderVersionOneinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkPipelineCacheHeaderVersionOneinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkPipelineCacheHeaderVersionOne.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkPipelineCacheHeaderVersionOne.Bufferinstance allocated on the specifiedMemoryStackand 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.
-