Package org.lwjgl.vulkan
Class VkConformanceVersionKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkConformanceVersion
-
- org.lwjgl.vulkan.VkConformanceVersionKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkConformanceVersionKHR extends VkConformanceVersion
SeeVkConformanceVersion.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 Deprecated 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 VkConformanceVersionKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkConformanceVersionKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkConformanceVersionKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkConformanceVersionKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkConformanceVersionKHRcallocStack()Deprecated.static VkConformanceVersionKHR.BuffercallocStack(int capacity)Deprecated.static VkConformanceVersionKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkConformanceVersionKHRcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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)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 VkConformanceVersionKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkConformanceVersionKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkConformanceVersionKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkConformanceVersionKHRinstance allocated on the specifiedMemoryStack.static VkConformanceVersionKHRmallocStack()Deprecated.static VkConformanceVersionKHR.BuffermallocStack(int capacity)Deprecated.static VkConformanceVersionKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkConformanceVersionKHRmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.VkConformanceVersionKHRminor(byte value)Sets the specified value to theminorfield.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.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
-
major
public VkConformanceVersionKHR major(byte value)
Sets the specified value to themajorfield.- Overrides:
majorin classVkConformanceVersion
-
minor
public VkConformanceVersionKHR minor(byte value)
Sets the specified value to theminorfield.- Overrides:
minorin classVkConformanceVersion
-
subminor
public VkConformanceVersionKHR subminor(byte value)
Sets the specified value to thesubminorfield.- Overrides:
subminorin classVkConformanceVersion
-
patch
public VkConformanceVersionKHR patch(byte value)
Sets the specified value to thepatchfield.- Overrides:
patchin classVkConformanceVersion
-
set
public VkConformanceVersionKHR set(byte major, byte minor, byte subminor, byte patch)
Initializes this struct with the specified values.- Overrides:
setin classVkConformanceVersion
-
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
@Deprecated public static VkConformanceVersionKHR mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkConformanceVersionKHR callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkConformanceVersionKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkConformanceVersionKHR callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkConformanceVersionKHR.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkConformanceVersionKHR.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkConformanceVersionKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkConformanceVersionKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkConformanceVersionKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkConformanceVersionKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkConformanceVersionKHR calloc(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
-
malloc
public static VkConformanceVersionKHR.Buffer malloc(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
-
calloc
public static VkConformanceVersionKHR.Buffer calloc(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
-
-