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.NativeResourceStructure 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 classVkConformanceVersionKHR.BufferAn array ofVkConformanceVersionKHRstructs.
-
Constructor Summary
Constructors Constructor Description VkConformanceVersionKHR(java.nio.ByteBuffer container)Creates aVkConformanceVersionKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkConformanceVersionKHRcalloc()Returns a newVkConformanceVersionKHRinstance allocated withmemCalloc.static VkConformanceVersionKHR.Buffercalloc(int capacity)Returns a newVkConformanceVersionKHR.Bufferinstance allocated withmemCalloc.static VkConformanceVersionKHRcallocStack()Returns a newVkConformanceVersionKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkConformanceVersionKHR.BuffercallocStack(int capacity)Returns a newVkConformanceVersionKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkConformanceVersionKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkConformanceVersionKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkConformanceVersionKHRcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkConformanceVersionKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkConformanceVersionKHRcreate()Returns a newVkConformanceVersionKHRinstance allocated withBufferUtils.static VkConformanceVersionKHR.Buffercreate(int capacity)Returns a newVkConformanceVersionKHR.Bufferinstance allocated withBufferUtils.static VkConformanceVersionKHRcreate(long address)Returns a newVkConformanceVersionKHRinstance for the specified memory address.static VkConformanceVersionKHR.Buffercreate(long address, int capacity)Create aVkConformanceVersionKHR.Bufferinstance at the specified memory.static VkConformanceVersionKHRcreateSafe(long address)static VkConformanceVersionKHR.BuffercreateSafe(long address, int capacity)bytemajor()Returns the value of themajorfield.VkConformanceVersionKHRmajor(byte value)Sets the specified value to themajorfield.static VkConformanceVersionKHRmalloc()Returns a newVkConformanceVersionKHRinstance allocated withmemAlloc.static VkConformanceVersionKHR.Buffermalloc(int capacity)Returns a newVkConformanceVersionKHR.Bufferinstance allocated withmemAlloc.static VkConformanceVersionKHRmallocStack()Returns a newVkConformanceVersionKHRinstance allocated on the thread-localMemoryStack.static VkConformanceVersionKHR.BuffermallocStack(int capacity)Returns a newVkConformanceVersionKHR.Bufferinstance allocated on the thread-localMemoryStack.static VkConformanceVersionKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkConformanceVersionKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkConformanceVersionKHRmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkConformanceVersionKHRinstance allocated on the specifiedMemoryStack.byteminor()Returns the value of theminorfield.VkConformanceVersionKHRminor(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()Returns the value of thepatchfield.VkConformanceVersionKHRpatch(byte value)Sets the specified value to thepatchfield.VkConformanceVersionKHRset(byte major, byte minor, byte subminor, byte patch)Initializes this struct with the specified values.VkConformanceVersionKHRset(VkConformanceVersionKHR src)Copies the specified struct data to this struct.intsizeof()bytesubminor()Returns the value of thesubminorfield.VkConformanceVersionKHRsubminor(byte value)Sets the specified value to thesubminorfield.
-
-
-
Constructor Detail
-
VkConformanceVersionKHR
public VkConformanceVersionKHR(java.nio.ByteBuffer container)
Creates aVkConformanceVersionKHRinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
major
public byte major()
Returns the value of themajorfield.
-
minor
public byte minor()
Returns the value of theminorfield.
-
subminor
public byte subminor()
Returns the value of thesubminorfield.
-
patch
public byte patch()
Returns the value of thepatchfield.
-
major
public VkConformanceVersionKHR major(byte value)
Sets the specified value to themajorfield.
-
minor
public VkConformanceVersionKHR minor(byte value)
Sets the specified value to theminorfield.
-
subminor
public VkConformanceVersionKHR subminor(byte value)
Sets the specified value to thesubminorfield.
-
patch
public VkConformanceVersionKHR patch(byte value)
Sets the specified value to thepatchfield.
-
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 newVkConformanceVersionKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkConformanceVersionKHR calloc()
Returns a newVkConformanceVersionKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkConformanceVersionKHR create()
Returns a newVkConformanceVersionKHRinstance allocated withBufferUtils.
-
create
public static VkConformanceVersionKHR create(long address)
Returns a newVkConformanceVersionKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkConformanceVersionKHR createSafe(long address)
-
malloc
public static VkConformanceVersionKHR.Buffer malloc(int capacity)
Returns a newVkConformanceVersionKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkConformanceVersionKHR.Buffer calloc(int capacity)
Returns a newVkConformanceVersionKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkConformanceVersionKHR.Buffer create(int capacity)
Returns a newVkConformanceVersionKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkConformanceVersionKHR.Buffer create(long address, int capacity)
Create aVkConformanceVersionKHR.Bufferinstance 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 newVkConformanceVersionKHRinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkConformanceVersionKHR callocStack()
Returns a newVkConformanceVersionKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkConformanceVersionKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkConformanceVersionKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkConformanceVersionKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkConformanceVersionKHRinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkConformanceVersionKHR.Buffer callocStack(int capacity)
Returns a newVkConformanceVersionKHR.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-