Package org.lwjgl.vulkan
Class VkConformanceVersion
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkConformanceVersion
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkConformanceVersionKHR
public class VkConformanceVersion extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure containing the conformance test suite version the implementation is compliant with.See Also
VkPhysicalDeviceDriverProperties,VkPhysicalDeviceVulkan12PropertiesLayout
struct VkConformanceVersion { uint8_tmajor(); uint8_tminor(); uint8_tsubminor(); uint8_tpatch(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkConformanceVersion.BufferAn array ofVkConformanceVersionstructs.
-
Constructor Summary
Constructors Constructor Description VkConformanceVersion(java.nio.ByteBuffer container)Creates aVkConformanceVersioninstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkConformanceVersioncalloc()Returns a newVkConformanceVersioninstance allocated withmemCalloc.static VkConformanceVersion.Buffercalloc(int capacity)Returns a newVkConformanceVersion.Bufferinstance allocated withmemCalloc.static VkConformanceVersion.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkConformanceVersion.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkConformanceVersioncalloc(org.lwjgl.system.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 VkConformanceVersioncreateSafe(long address)static VkConformanceVersion.BuffercreateSafe(long address, int capacity)bytemajor()the major version number of the conformance test suite.VkConformanceVersionmajor(byte value)Sets the specified value to themajor()field.static VkConformanceVersionmalloc()Returns a newVkConformanceVersioninstance allocated withmemAlloc.static VkConformanceVersion.Buffermalloc(int capacity)Returns a newVkConformanceVersion.Bufferinstance allocated withmemAlloc.static VkConformanceVersion.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkConformanceVersion.Bufferinstance allocated on the specifiedMemoryStack.static VkConformanceVersionmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkConformanceVersioninstance allocated on the specifiedMemoryStack.byteminor()the minor version number of the conformance test suite.VkConformanceVersionminor(byte value)Sets the specified value to theminor()field.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()the patch version number of the conformance test suite.VkConformanceVersionpatch(byte value)Sets the specified value to thepatch()field.VkConformanceVersionset(byte major, byte minor, byte subminor, byte patch)Initializes this struct with the specified values.VkConformanceVersionset(VkConformanceVersion src)Copies the specified struct data to this struct.intsizeof()bytesubminor()the subminor version number of the conformance test suite.VkConformanceVersionsubminor(byte value)Sets the specified value to thesubminor()field.
-
-
-
Constructor Detail
-
VkConformanceVersion
public VkConformanceVersion(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
major
public byte major()
the major version number of the conformance test suite.
-
minor
public byte minor()
the minor version number of the conformance test suite.
-
subminor
public byte subminor()
the subminor version number of the conformance test suite.
-
patch
public byte patch()
the patch version number of the conformance test suite.
-
major
public VkConformanceVersion major(byte value)
Sets the specified value to themajor()field.
-
minor
public VkConformanceVersion minor(byte value)
Sets the specified value to theminor()field.
-
subminor
public VkConformanceVersion subminor(byte value)
Sets the specified value to thesubminor()field.
-
patch
public VkConformanceVersion patch(byte value)
Sets the specified value to thepatch()field.
-
set
public VkConformanceVersion set(byte major, byte minor, byte subminor, byte patch)
Initializes this struct with the specified values.
-
set
public VkConformanceVersion set(VkConformanceVersion src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkConformanceVersion malloc()
Returns a newVkConformanceVersioninstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkConformanceVersion calloc()
Returns a newVkConformanceVersioninstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkConformanceVersion create()
Returns a newVkConformanceVersioninstance allocated withBufferUtils.
-
create
public static VkConformanceVersion create(long address)
Returns a newVkConformanceVersioninstance for the specified memory address.
-
createSafe
@Nullable public static VkConformanceVersion createSafe(long address)
-
malloc
public static VkConformanceVersion.Buffer malloc(int capacity)
Returns a newVkConformanceVersion.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkConformanceVersion.Buffer calloc(int capacity)
Returns a newVkConformanceVersion.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkConformanceVersion.Buffer create(int capacity)
Returns a newVkConformanceVersion.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkConformanceVersion.Buffer create(long address, int capacity)
Create aVkConformanceVersion.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkConformanceVersion.Buffer createSafe(long address, int capacity)
-
malloc
public static VkConformanceVersion malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkConformanceVersioninstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkConformanceVersion calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkConformanceVersioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkConformanceVersion.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkConformanceVersion.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkConformanceVersion.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkConformanceVersion.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.
-
-