Package org.lwjgl.vulkan
Class VkConformanceVersion
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
- Direct Known Subclasses:
VkConformanceVersionKHR
struct VkConformanceVersion {
uint8_t major;
uint8_t minor;
uint8_t subminor;
uint8_t patch;
}-
Nested Class Summary
Nested ClassesNested 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 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
ConstructorsConstructorDescriptionVkConformanceVersion(ByteBuffer container) Creates aVkConformanceVersioninstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkConformanceVersioncalloc()Returns a newVkConformanceVersioninstance allocated withmemCalloc.static VkConformanceVersion.Buffercalloc(int capacity) Returns a newVkConformanceVersion.Bufferinstance allocated withmemCalloc.static VkConformanceVersion.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkConformanceVersion.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkConformanceVersioncalloc(MemoryStack stack) Returns a newVkConformanceVersioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkConformanceVersioncreate()Returns a newVkConformanceVersioninstance allocated withBufferUtils.static VkConformanceVersion.Buffercreate(int capacity) Returns a newVkConformanceVersion.Bufferinstance allocated withBufferUtils.static VkConformanceVersioncreate(long address) Returns a newVkConformanceVersioninstance for the specified memory address.static VkConformanceVersion.Buffercreate(long address, int capacity) Create aVkConformanceVersion.Bufferinstance at the specified memory.static @Nullable VkConformanceVersioncreateSafe(long address) static @Nullable VkConformanceVersion.BuffercreateSafe(long address, int capacity) bytemajor()major(byte value) Sets the specified value to themajorfield.static VkConformanceVersionmalloc()Returns a newVkConformanceVersioninstance allocated withmemAlloc.static VkConformanceVersion.Buffermalloc(int capacity) Returns a newVkConformanceVersion.Bufferinstance allocated withmemAlloc.static VkConformanceVersion.Buffermalloc(int capacity, MemoryStack stack) Returns a newVkConformanceVersion.Bufferinstance allocated on the specifiedMemoryStack.static VkConformanceVersionmalloc(MemoryStack stack) Returns a newVkConformanceVersioninstance allocated on the specifiedMemoryStack.byteminor()minor(byte value) Sets the specified value to theminorfield.static bytenmajor(long struct) Unsafe version ofmajor().static voidnmajor(long struct, byte value) Unsafe version ofmajor.static bytenminor(long struct) Unsafe version ofminor().static voidnminor(long struct, byte value) Unsafe version ofminor.static bytenpatch(long struct) Unsafe version ofpatch().static voidnpatch(long struct, byte value) Unsafe version ofpatch.static bytensubminor(long struct) Unsafe version ofsubminor().static voidnsubminor(long struct, byte value) Unsafe version ofsubminor.bytepatch()patch(byte value) Sets the specified value to thepatchfield.set(byte major, byte minor, byte subminor, byte patch) Initializes this struct with the specified values.set(VkConformanceVersion src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).bytesubminor()subminor(byte value) Sets the specified value to thesubminorfield.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. -
MAJOR
public static final int MAJORThe struct member offsets. -
MINOR
public static final int MINORThe struct member offsets. -
SUBMINOR
public static final int SUBMINORThe struct member offsets. -
PATCH
public static final int PATCHThe struct member offsets.
-
-
Constructor Details
-
VkConformanceVersion
Creates aVkConformanceVersioninstance 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<VkConformanceVersion>
-
major
public byte major()- Returns:
- the value of the
majorfield.
-
minor
public byte minor()- Returns:
- the value of the
minorfield.
-
subminor
public byte subminor()- Returns:
- the value of the
subminorfield.
-
patch
public byte patch()- Returns:
- the value of the
patchfield.
-
major
Sets the specified value to themajorfield. -
minor
Sets the specified value to theminorfield. -
subminor
Sets the specified value to thesubminorfield. -
patch
Sets the specified value to thepatchfield. -
set
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 newVkConformanceVersioninstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkConformanceVersioninstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkConformanceVersioninstance allocated withBufferUtils. -
create
Returns a newVkConformanceVersioninstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkConformanceVersion.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkConformanceVersion.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkConformanceVersion.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkConformanceVersion.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkConformanceVersioninstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkConformanceVersioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkConformanceVersion.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkConformanceVersion.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nmajor
public static byte nmajor(long struct) Unsafe version ofmajor(). -
nminor
public static byte nminor(long struct) Unsafe version ofminor(). -
nsubminor
public static byte nsubminor(long struct) Unsafe version ofsubminor(). -
npatch
public static byte npatch(long struct) Unsafe version ofpatch(). -
nmajor
public static void nmajor(long struct, byte value) Unsafe version ofmajor. -
nminor
public static void nminor(long struct, byte value) Unsafe version ofminor. -
nsubminor
public static void nsubminor(long struct, byte value) Unsafe version ofsubminor. -
npatch
public static void npatch(long struct, byte value) Unsafe version ofpatch.
-