Package org.lwjgl.vulkan
Class VkConformanceVersionKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkConformanceVersionKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkConformanceVersionKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure containing the conformance test suite version the implementation is compliant with.Member documentation
major
– the major version number of the conformance test suite.minor
– the minor version number of the conformance test suite.subminor
– the subminor version number of the conformance test suite.patch
– the patch version number of the conformance test suite.
Layout
struct VkConformanceVersionKHR { uint8_t major; uint8_t minor; uint8_t subminor; uint8_t patch; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkConformanceVersionKHR.Buffer
An array ofVkConformanceVersionKHR
structs.
-
Constructor Summary
Constructors Constructor Description VkConformanceVersionKHR(java.nio.ByteBuffer container)
Creates aVkConformanceVersionKHR
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkConformanceVersionKHR
calloc()
Returns a newVkConformanceVersionKHR
instance allocated withmemCalloc
.static VkConformanceVersionKHR.Buffer
calloc(int capacity)
Returns a newVkConformanceVersionKHR.Buffer
instance allocated withmemCalloc
.static VkConformanceVersionKHR
callocStack()
Returns a newVkConformanceVersionKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkConformanceVersionKHR.Buffer
callocStack(int capacity)
Returns a newVkConformanceVersionKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkConformanceVersionKHR.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkConformanceVersionKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkConformanceVersionKHR
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkConformanceVersionKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkConformanceVersionKHR
create()
Returns a newVkConformanceVersionKHR
instance allocated withBufferUtils
.static VkConformanceVersionKHR.Buffer
create(int capacity)
Returns a newVkConformanceVersionKHR.Buffer
instance allocated withBufferUtils
.static VkConformanceVersionKHR
create(long address)
Returns a newVkConformanceVersionKHR
instance for the specified memory address.static VkConformanceVersionKHR.Buffer
create(long address, int capacity)
Create aVkConformanceVersionKHR.Buffer
instance at the specified memory.static VkConformanceVersionKHR
createSafe(long address)
static VkConformanceVersionKHR.Buffer
createSafe(long address, int capacity)
byte
major()
Returns the value of themajor
field.VkConformanceVersionKHR
major(byte value)
Sets the specified value to themajor
field.static VkConformanceVersionKHR
malloc()
Returns a newVkConformanceVersionKHR
instance allocated withmemAlloc
.static VkConformanceVersionKHR.Buffer
malloc(int capacity)
Returns a newVkConformanceVersionKHR.Buffer
instance allocated withmemAlloc
.static VkConformanceVersionKHR
mallocStack()
Returns a newVkConformanceVersionKHR
instance allocated on the thread-localMemoryStack
.static VkConformanceVersionKHR.Buffer
mallocStack(int capacity)
Returns a newVkConformanceVersionKHR.Buffer
instance allocated on the thread-localMemoryStack
.static VkConformanceVersionKHR.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkConformanceVersionKHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkConformanceVersionKHR
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkConformanceVersionKHR
instance allocated on the specifiedMemoryStack
.byte
minor()
Returns the value of theminor
field.VkConformanceVersionKHR
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()
Returns the value of thepatch
field.VkConformanceVersionKHR
patch(byte value)
Sets the specified value to thepatch
field.VkConformanceVersionKHR
set(byte major, byte minor, byte subminor, byte patch)
Initializes this struct with the specified values.VkConformanceVersionKHR
set(VkConformanceVersionKHR src)
Copies the specified struct data to this struct.int
sizeof()
byte
subminor()
Returns the value of thesubminor
field.VkConformanceVersionKHR
subminor(byte value)
Sets the specified value to thesubminor
field.
-
-
-
Constructor Detail
-
VkConformanceVersionKHR
public VkConformanceVersionKHR(java.nio.ByteBuffer container)
Creates aVkConformanceVersionKHR
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
major
public byte major()
Returns the value of themajor
field.
-
minor
public byte minor()
Returns the value of theminor
field.
-
subminor
public byte subminor()
Returns the value of thesubminor
field.
-
patch
public byte patch()
Returns the value of thepatch
field.
-
major
public VkConformanceVersionKHR major(byte value)
Sets the specified value to themajor
field.
-
minor
public VkConformanceVersionKHR minor(byte value)
Sets the specified value to theminor
field.
-
subminor
public VkConformanceVersionKHR subminor(byte value)
Sets the specified value to thesubminor
field.
-
patch
public VkConformanceVersionKHR patch(byte value)
Sets the specified value to thepatch
field.
-
set
public VkConformanceVersionKHR set(byte major, byte minor, byte subminor, byte patch)
Initializes this struct with the specified values.
-
set
public VkConformanceVersionKHR set(VkConformanceVersionKHR src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkConformanceVersionKHR malloc()
Returns a newVkConformanceVersionKHR
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkConformanceVersionKHR calloc()
Returns a newVkConformanceVersionKHR
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkConformanceVersionKHR create()
Returns a newVkConformanceVersionKHR
instance allocated withBufferUtils
.
-
create
public static VkConformanceVersionKHR create(long address)
Returns a newVkConformanceVersionKHR
instance for the specified memory address.
-
createSafe
@Nullable public static VkConformanceVersionKHR createSafe(long address)
-
malloc
public static VkConformanceVersionKHR.Buffer malloc(int capacity)
Returns a newVkConformanceVersionKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkConformanceVersionKHR.Buffer calloc(int capacity)
Returns a newVkConformanceVersionKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkConformanceVersionKHR.Buffer create(int capacity)
Returns a newVkConformanceVersionKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkConformanceVersionKHR.Buffer create(long address, int capacity)
Create aVkConformanceVersionKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkConformanceVersionKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkConformanceVersionKHR mallocStack()
Returns a newVkConformanceVersionKHR
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkConformanceVersionKHR callocStack()
Returns a newVkConformanceVersionKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkConformanceVersionKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkConformanceVersionKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkConformanceVersionKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkConformanceVersionKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkConformanceVersionKHR.Buffer mallocStack(int capacity)
Returns a newVkConformanceVersionKHR.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkConformanceVersionKHR.Buffer callocStack(int capacity)
Returns a newVkConformanceVersionKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkConformanceVersionKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkConformanceVersionKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkConformanceVersionKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkConformanceVersionKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
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
.
-
-