Package org.lwjgl.vulkan
Class VkPhysicalDeviceFeatures2KHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceFeatures2
-
- org.lwjgl.vulkan.VkPhysicalDeviceFeatures2KHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,NativeResource
,Pointer
public class VkPhysicalDeviceFeatures2KHR extends VkPhysicalDeviceFeatures2
SeeVkPhysicalDeviceFeatures2
.Layout
struct VkPhysicalDeviceFeatures2KHR { VkStructureType sType; void * pNext;
VkPhysicalDeviceFeatures
features; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkPhysicalDeviceFeatures2KHR.Buffer
An array ofVkPhysicalDeviceFeatures2KHR
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
-
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceFeatures2KHR(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceFeatures2KHR
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
-
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
-
-
-
Constructor Detail
-
VkPhysicalDeviceFeatures2KHR
public VkPhysicalDeviceFeatures2KHR(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceFeatures2KHR
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
-
sType
public VkPhysicalDeviceFeatures2KHR sType(int value)
Sets the specified value to thesType
field.- Overrides:
sType
in classVkPhysicalDeviceFeatures2
-
pNext
public VkPhysicalDeviceFeatures2KHR pNext(long value)
Sets the specified value to thepNext
field.- Overrides:
pNext
in classVkPhysicalDeviceFeatures2
-
features
public VkPhysicalDeviceFeatures2KHR features(VkPhysicalDeviceFeatures value)
Copies the specifiedVkPhysicalDeviceFeatures
to thefeatures
field.- Overrides:
features
in classVkPhysicalDeviceFeatures2
-
set
public VkPhysicalDeviceFeatures2KHR set(int sType, long pNext, VkPhysicalDeviceFeatures features)
Initializes this struct with the specified values.- Overrides:
set
in classVkPhysicalDeviceFeatures2
-
set
public VkPhysicalDeviceFeatures2KHR set(VkPhysicalDeviceFeatures2KHR src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceFeatures2KHR malloc()
Returns a newVkPhysicalDeviceFeatures2KHR
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceFeatures2KHR calloc()
Returns a newVkPhysicalDeviceFeatures2KHR
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceFeatures2KHR create()
Returns a newVkPhysicalDeviceFeatures2KHR
instance allocated withBufferUtils
.
-
create
public static VkPhysicalDeviceFeatures2KHR create(long address)
Returns a newVkPhysicalDeviceFeatures2KHR
instance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceFeatures2KHR createSafe(long address)
-
malloc
public static VkPhysicalDeviceFeatures2KHR.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceFeatures2KHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPhysicalDeviceFeatures2KHR.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceFeatures2KHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceFeatures2KHR.Buffer create(int capacity)
Returns a newVkPhysicalDeviceFeatures2KHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceFeatures2KHR.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceFeatures2KHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceFeatures2KHR.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPhysicalDeviceFeatures2KHR mallocStack()
Returns a newVkPhysicalDeviceFeatures2KHR
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPhysicalDeviceFeatures2KHR callocStack()
Returns a newVkPhysicalDeviceFeatures2KHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceFeatures2KHR mallocStack(MemoryStack stack)
Returns a newVkPhysicalDeviceFeatures2KHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceFeatures2KHR callocStack(MemoryStack stack)
Returns a newVkPhysicalDeviceFeatures2KHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkPhysicalDeviceFeatures2KHR.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceFeatures2KHR.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceFeatures2KHR.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceFeatures2KHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceFeatures2KHR.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkPhysicalDeviceFeatures2KHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceFeatures2KHR.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newVkPhysicalDeviceFeatures2KHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
-