public class VkPhysicalDeviceMeshShaderFeaturesNV
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
If the VkPhysicalDeviceMeshShaderFeaturesNV structure is included in the pNext chain of VkPhysicalDeviceFeatures2, it is filled with a value indicating whether the feature is supported. VkPhysicalDeviceMeshShaderFeaturesNV can also be included in pNext chain of VkDeviceCreateInfo to enable the features.
sType must be STRUCTURE_TYPE_PHYSICAL_DEVICE_MESH_SHADER_FEATURES_NVtaskShader – indicates whether the task shader stage is supported.meshShader – indicates whether the mesh shader stage is supported.
struct VkPhysicalDeviceMeshShaderFeaturesNV {
VkStructureType sType;
void * pNext;
VkBool32 taskShader;
VkBool32 meshShader;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPhysicalDeviceMeshShaderFeaturesNV.Buffer
An array of
VkPhysicalDeviceMeshShaderFeaturesNV structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
MESHSHADER
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.
|
static int |
TASKSHADER
The struct member offsets.
|
| Constructor and Description |
|---|
VkPhysicalDeviceMeshShaderFeaturesNV(java.nio.ByteBuffer container)
Creates a
VkPhysicalDeviceMeshShaderFeaturesNV instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPhysicalDeviceMeshShaderFeaturesNV |
calloc()
Returns a new
VkPhysicalDeviceMeshShaderFeaturesNV instance allocated with memCalloc. |
static VkPhysicalDeviceMeshShaderFeaturesNV.Buffer |
calloc(int capacity)
Returns a new
VkPhysicalDeviceMeshShaderFeaturesNV.Buffer instance allocated with memCalloc. |
static VkPhysicalDeviceMeshShaderFeaturesNV |
callocStack()
Returns a new
VkPhysicalDeviceMeshShaderFeaturesNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceMeshShaderFeaturesNV.Buffer |
callocStack(int capacity)
Returns a new
VkPhysicalDeviceMeshShaderFeaturesNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceMeshShaderFeaturesNV.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceMeshShaderFeaturesNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceMeshShaderFeaturesNV |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceMeshShaderFeaturesNV instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceMeshShaderFeaturesNV |
create()
Returns a new
VkPhysicalDeviceMeshShaderFeaturesNV instance allocated with BufferUtils. |
static VkPhysicalDeviceMeshShaderFeaturesNV.Buffer |
create(int capacity)
Returns a new
VkPhysicalDeviceMeshShaderFeaturesNV.Buffer instance allocated with BufferUtils. |
static VkPhysicalDeviceMeshShaderFeaturesNV |
create(long address)
Returns a new
VkPhysicalDeviceMeshShaderFeaturesNV instance for the specified memory address. |
static VkPhysicalDeviceMeshShaderFeaturesNV.Buffer |
create(long address,
int capacity)
Create a
VkPhysicalDeviceMeshShaderFeaturesNV.Buffer instance at the specified memory. |
static VkPhysicalDeviceMeshShaderFeaturesNV |
createSafe(long address)
|
static VkPhysicalDeviceMeshShaderFeaturesNV.Buffer |
createSafe(long address,
int capacity)
|
static VkPhysicalDeviceMeshShaderFeaturesNV |
malloc()
Returns a new
VkPhysicalDeviceMeshShaderFeaturesNV instance allocated with memAlloc. |
static VkPhysicalDeviceMeshShaderFeaturesNV.Buffer |
malloc(int capacity)
Returns a new
VkPhysicalDeviceMeshShaderFeaturesNV.Buffer instance allocated with memAlloc. |
static VkPhysicalDeviceMeshShaderFeaturesNV |
mallocStack()
Returns a new
VkPhysicalDeviceMeshShaderFeaturesNV instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceMeshShaderFeaturesNV.Buffer |
mallocStack(int capacity)
Returns a new
VkPhysicalDeviceMeshShaderFeaturesNV.Buffer instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceMeshShaderFeaturesNV.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceMeshShaderFeaturesNV.Buffer instance allocated on the specified MemoryStack. |
static VkPhysicalDeviceMeshShaderFeaturesNV |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceMeshShaderFeaturesNV instance allocated on the specified MemoryStack. |
boolean |
meshShader()
Returns the value of the
meshShader field. |
VkPhysicalDeviceMeshShaderFeaturesNV |
meshShader(boolean value)
Sets the specified value to the
meshShader field. |
static int |
nmeshShader(long struct)
Unsafe version of
meshShader(). |
static void |
nmeshShader(long struct,
int value)
Unsafe version of
meshShader. |
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. |
static int |
ntaskShader(long struct)
Unsafe version of
taskShader(). |
static void |
ntaskShader(long struct,
int value)
Unsafe version of
taskShader. |
long |
pNext()
Returns the value of the
pNext field. |
VkPhysicalDeviceMeshShaderFeaturesNV |
pNext(long value)
Sets the specified value to the
pNext field. |
VkPhysicalDeviceMeshShaderFeaturesNV |
set(int sType,
long pNext,
boolean taskShader,
boolean meshShader)
Initializes this struct with the specified values.
|
VkPhysicalDeviceMeshShaderFeaturesNV |
set(VkPhysicalDeviceMeshShaderFeaturesNV src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPhysicalDeviceMeshShaderFeaturesNV |
sType(int value)
Sets the specified value to the
sType field. |
boolean |
taskShader()
Returns the value of the
taskShader field. |
VkPhysicalDeviceMeshShaderFeaturesNV |
taskShader(boolean value)
Sets the specified value to the
taskShader 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 TASKSHADER
public static final int MESHSHADER
public VkPhysicalDeviceMeshShaderFeaturesNV(java.nio.ByteBuffer container)
VkPhysicalDeviceMeshShaderFeaturesNV 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 boolean taskShader()
taskShader field.public boolean meshShader()
meshShader field.public VkPhysicalDeviceMeshShaderFeaturesNV sType(int value)
sType field.public VkPhysicalDeviceMeshShaderFeaturesNV pNext(long value)
pNext field.public VkPhysicalDeviceMeshShaderFeaturesNV taskShader(boolean value)
taskShader field.public VkPhysicalDeviceMeshShaderFeaturesNV meshShader(boolean value)
meshShader field.public VkPhysicalDeviceMeshShaderFeaturesNV set(int sType, long pNext, boolean taskShader, boolean meshShader)
public VkPhysicalDeviceMeshShaderFeaturesNV set(VkPhysicalDeviceMeshShaderFeaturesNV src)
src - the source structpublic static VkPhysicalDeviceMeshShaderFeaturesNV malloc()
VkPhysicalDeviceMeshShaderFeaturesNV instance allocated with memAlloc. The instance must be explicitly freed.public static VkPhysicalDeviceMeshShaderFeaturesNV calloc()
VkPhysicalDeviceMeshShaderFeaturesNV instance allocated with memCalloc. The instance must be explicitly freed.public static VkPhysicalDeviceMeshShaderFeaturesNV create()
VkPhysicalDeviceMeshShaderFeaturesNV instance allocated with BufferUtils.public static VkPhysicalDeviceMeshShaderFeaturesNV create(long address)
VkPhysicalDeviceMeshShaderFeaturesNV instance for the specified memory address.@Nullable public static VkPhysicalDeviceMeshShaderFeaturesNV createSafe(long address)
public static VkPhysicalDeviceMeshShaderFeaturesNV.Buffer malloc(int capacity)
VkPhysicalDeviceMeshShaderFeaturesNV.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceMeshShaderFeaturesNV.Buffer calloc(int capacity)
VkPhysicalDeviceMeshShaderFeaturesNV.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceMeshShaderFeaturesNV.Buffer create(int capacity)
VkPhysicalDeviceMeshShaderFeaturesNV.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPhysicalDeviceMeshShaderFeaturesNV.Buffer create(long address, int capacity)
VkPhysicalDeviceMeshShaderFeaturesNV.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPhysicalDeviceMeshShaderFeaturesNV.Buffer createSafe(long address, int capacity)
public static VkPhysicalDeviceMeshShaderFeaturesNV mallocStack()
VkPhysicalDeviceMeshShaderFeaturesNV instance allocated on the thread-local MemoryStack.public static VkPhysicalDeviceMeshShaderFeaturesNV callocStack()
VkPhysicalDeviceMeshShaderFeaturesNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPhysicalDeviceMeshShaderFeaturesNV mallocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceMeshShaderFeaturesNV instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPhysicalDeviceMeshShaderFeaturesNV callocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceMeshShaderFeaturesNV instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPhysicalDeviceMeshShaderFeaturesNV.Buffer mallocStack(int capacity)
VkPhysicalDeviceMeshShaderFeaturesNV.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPhysicalDeviceMeshShaderFeaturesNV.Buffer callocStack(int capacity)
VkPhysicalDeviceMeshShaderFeaturesNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPhysicalDeviceMeshShaderFeaturesNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceMeshShaderFeaturesNV.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPhysicalDeviceMeshShaderFeaturesNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceMeshShaderFeaturesNV.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 int ntaskShader(long struct)
taskShader().public static int nmeshShader(long struct)
meshShader().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void ntaskShader(long struct,
int value)
taskShader.public static void nmeshShader(long struct,
int value)
meshShader.Copyright LWJGL. All Rights Reserved. License terms.