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.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 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
ConstructorsConstructorDescriptionVkConformanceVersion
(ByteBuffer container) Creates aVkConformanceVersion
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkConformanceVersion
calloc()
Returns a newVkConformanceVersion
instance allocated withmemCalloc
.static VkConformanceVersion.Buffer
calloc
(int capacity) Returns a newVkConformanceVersion.Buffer
instance allocated withmemCalloc
.static VkConformanceVersion.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVkConformanceVersion.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkConformanceVersion
calloc
(MemoryStack stack) Returns a newVkConformanceVersion
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkConformanceVersion
create()
Returns a newVkConformanceVersion
instance allocated withBufferUtils
.static VkConformanceVersion.Buffer
create
(int capacity) Returns a newVkConformanceVersion.Buffer
instance allocated withBufferUtils
.static VkConformanceVersion
create
(long address) Returns a newVkConformanceVersion
instance for the specified memory address.static VkConformanceVersion.Buffer
create
(long address, int capacity) Create aVkConformanceVersion.Buffer
instance at the specified memory.static @Nullable VkConformanceVersion
createSafe
(long address) static @Nullable VkConformanceVersion.Buffer
createSafe
(long address, int capacity) byte
major()
major
(byte value) Sets the specified value to themajor
field.static VkConformanceVersion
malloc()
Returns a newVkConformanceVersion
instance allocated withmemAlloc
.static VkConformanceVersion.Buffer
malloc
(int capacity) Returns a newVkConformanceVersion.Buffer
instance allocated withmemAlloc
.static VkConformanceVersion.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVkConformanceVersion.Buffer
instance allocated on the specifiedMemoryStack
.static VkConformanceVersion
malloc
(MemoryStack stack) Returns a newVkConformanceVersion
instance allocated on the specifiedMemoryStack
.byte
minor()
minor
(byte value) Sets the specified value to theminor
field.static byte
nmajor
(long struct) Unsafe version ofmajor()
.static void
nmajor
(long struct, byte value) Unsafe version ofmajor
.static byte
nminor
(long struct) Unsafe version ofminor()
.static void
nminor
(long struct, byte value) Unsafe version ofminor
.static byte
npatch
(long struct) Unsafe version ofpatch()
.static void
npatch
(long struct, byte value) Unsafe version ofpatch
.static byte
nsubminor
(long struct) Unsafe version ofsubminor()
.static void
nsubminor
(long struct, byte value) Unsafe version ofsubminor
.byte
patch()
patch
(byte value) Sets the specified value to thepatch
field.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.int
sizeof()
Returnssizeof(struct)
.byte
subminor()
subminor
(byte value) Sets the specified value to thesubminor
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. -
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 aVkConformanceVersion
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<VkConformanceVersion>
-
major
public byte major()- Returns:
- the value of the
major
field.
-
minor
public byte minor()- Returns:
- the value of the
minor
field.
-
subminor
public byte subminor()- Returns:
- the value of the
subminor
field.
-
patch
public byte patch()- Returns:
- the value of the
patch
field.
-
major
Sets the specified value to themajor
field. -
minor
Sets the specified value to theminor
field. -
subminor
Sets the specified value to thesubminor
field. -
patch
Sets the specified value to thepatch
field. -
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 newVkConformanceVersion
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkConformanceVersion
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkConformanceVersion
instance allocated withBufferUtils
. -
create
Returns a newVkConformanceVersion
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkConformanceVersion.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkConformanceVersion.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkConformanceVersion.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkConformanceVersion.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newVkConformanceVersion
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkConformanceVersion
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkConformanceVersion.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkConformanceVersion.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-