public class VkPhysicalDeviceFeatures2
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
The pNext chain of this structure is used to extend the structure with features defined by extensions. This structure can be used in GetPhysicalDeviceFeatures2 or can be included in the pNext chain of a VkDeviceCreateInfo structure, in which case it controls which features are enabled in the device in lieu of pEnabledFeatures.
sType must be STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2VkPhysicalDeviceFeatures, GetPhysicalDeviceFeatures2, GetPhysicalDeviceFeatures2KHR
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.features – a VkPhysicalDeviceFeatures structure describing the fine-grained features of the Vulkan 1.0 API.
struct VkPhysicalDeviceFeatures2 {
VkStructureType sType;
void * pNext;
VkPhysicalDeviceFeatures features;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPhysicalDeviceFeatures2.Buffer
An array of
VkPhysicalDeviceFeatures2 structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FEATURES
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkPhysicalDeviceFeatures2(java.nio.ByteBuffer container)
Creates a
VkPhysicalDeviceFeatures2 instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPhysicalDeviceFeatures2 |
calloc()
Returns a new
VkPhysicalDeviceFeatures2 instance allocated with memCalloc. |
static VkPhysicalDeviceFeatures2.Buffer |
calloc(int capacity)
Returns a new
VkPhysicalDeviceFeatures2.Buffer instance allocated with memCalloc. |
static VkPhysicalDeviceFeatures2 |
callocStack()
Returns a new
VkPhysicalDeviceFeatures2 instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceFeatures2.Buffer |
callocStack(int capacity)
Returns a new
VkPhysicalDeviceFeatures2.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceFeatures2.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceFeatures2.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceFeatures2 |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceFeatures2 instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceFeatures2 |
create()
Returns a new
VkPhysicalDeviceFeatures2 instance allocated with BufferUtils. |
static VkPhysicalDeviceFeatures2.Buffer |
create(int capacity)
Returns a new
VkPhysicalDeviceFeatures2.Buffer instance allocated with BufferUtils. |
static VkPhysicalDeviceFeatures2 |
create(long address)
Returns a new
VkPhysicalDeviceFeatures2 instance for the specified memory address. |
static VkPhysicalDeviceFeatures2.Buffer |
create(long address,
int capacity)
Create a
VkPhysicalDeviceFeatures2.Buffer instance at the specified memory. |
static VkPhysicalDeviceFeatures2 |
createSafe(long address)
|
static VkPhysicalDeviceFeatures2.Buffer |
createSafe(long address,
int capacity)
|
VkPhysicalDeviceFeatures |
features()
Returns a
VkPhysicalDeviceFeatures view of the features field. |
VkPhysicalDeviceFeatures2 |
features(java.util.function.Consumer<VkPhysicalDeviceFeatures> consumer)
Passes the
features field to the specified Consumer. |
VkPhysicalDeviceFeatures2 |
features(VkPhysicalDeviceFeatures value)
Copies the specified
VkPhysicalDeviceFeatures to the features field. |
static VkPhysicalDeviceFeatures2 |
malloc()
Returns a new
VkPhysicalDeviceFeatures2 instance allocated with memAlloc. |
static VkPhysicalDeviceFeatures2.Buffer |
malloc(int capacity)
Returns a new
VkPhysicalDeviceFeatures2.Buffer instance allocated with memAlloc. |
static VkPhysicalDeviceFeatures2 |
mallocStack()
Returns a new
VkPhysicalDeviceFeatures2 instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceFeatures2.Buffer |
mallocStack(int capacity)
Returns a new
VkPhysicalDeviceFeatures2.Buffer instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceFeatures2.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceFeatures2.Buffer instance allocated on the specified MemoryStack. |
static VkPhysicalDeviceFeatures2 |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceFeatures2 instance allocated on the specified MemoryStack. |
static VkPhysicalDeviceFeatures |
nfeatures(long struct)
Unsafe version of
features(). |
static void |
nfeatures(long struct,
VkPhysicalDeviceFeatures value)
Unsafe version of
features. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
long |
pNext()
Returns the value of the
pNext field. |
VkPhysicalDeviceFeatures2 |
pNext(long value)
Sets the specified value to the
pNext field. |
VkPhysicalDeviceFeatures2 |
set(int sType,
long pNext,
VkPhysicalDeviceFeatures features)
Initializes this struct with the specified values.
|
VkPhysicalDeviceFeatures2 |
set(VkPhysicalDeviceFeatures2 src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPhysicalDeviceFeatures2 |
sType(int value)
Sets the specified value to the
sType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int FEATURES
public VkPhysicalDeviceFeatures2(java.nio.ByteBuffer container)
VkPhysicalDeviceFeatures2 instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public VkPhysicalDeviceFeatures features()
VkPhysicalDeviceFeatures view of the features field.public VkPhysicalDeviceFeatures2 sType(int value)
sType field.public VkPhysicalDeviceFeatures2 pNext(long value)
pNext field.public VkPhysicalDeviceFeatures2 features(VkPhysicalDeviceFeatures value)
VkPhysicalDeviceFeatures to the features field.public VkPhysicalDeviceFeatures2 features(java.util.function.Consumer<VkPhysicalDeviceFeatures> consumer)
features field to the specified Consumer.public VkPhysicalDeviceFeatures2 set(int sType, long pNext, VkPhysicalDeviceFeatures features)
public VkPhysicalDeviceFeatures2 set(VkPhysicalDeviceFeatures2 src)
src - the source structpublic static VkPhysicalDeviceFeatures2 malloc()
VkPhysicalDeviceFeatures2 instance allocated with memAlloc. The instance must be explicitly freed.public static VkPhysicalDeviceFeatures2 calloc()
VkPhysicalDeviceFeatures2 instance allocated with memCalloc. The instance must be explicitly freed.public static VkPhysicalDeviceFeatures2 create()
VkPhysicalDeviceFeatures2 instance allocated with BufferUtils.public static VkPhysicalDeviceFeatures2 create(long address)
VkPhysicalDeviceFeatures2 instance for the specified memory address.@Nullable public static VkPhysicalDeviceFeatures2 createSafe(long address)
public static VkPhysicalDeviceFeatures2.Buffer malloc(int capacity)
VkPhysicalDeviceFeatures2.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceFeatures2.Buffer calloc(int capacity)
VkPhysicalDeviceFeatures2.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceFeatures2.Buffer create(int capacity)
VkPhysicalDeviceFeatures2.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPhysicalDeviceFeatures2.Buffer create(long address, int capacity)
VkPhysicalDeviceFeatures2.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPhysicalDeviceFeatures2.Buffer createSafe(long address, int capacity)
public static VkPhysicalDeviceFeatures2 mallocStack()
VkPhysicalDeviceFeatures2 instance allocated on the thread-local MemoryStack.public static VkPhysicalDeviceFeatures2 callocStack()
VkPhysicalDeviceFeatures2 instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPhysicalDeviceFeatures2 mallocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceFeatures2 instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPhysicalDeviceFeatures2 callocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceFeatures2 instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPhysicalDeviceFeatures2.Buffer mallocStack(int capacity)
VkPhysicalDeviceFeatures2.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPhysicalDeviceFeatures2.Buffer callocStack(int capacity)
VkPhysicalDeviceFeatures2.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPhysicalDeviceFeatures2.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceFeatures2.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPhysicalDeviceFeatures2.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceFeatures2.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static VkPhysicalDeviceFeatures nfeatures(long struct)
features().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nfeatures(long struct,
VkPhysicalDeviceFeatures value)
features.Copyright LWJGL. All Rights Reserved. License terms.