Package org.lwjgl.vulkan
Class VkPhysicalDeviceMeshShaderFeaturesNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceMeshShaderFeaturesNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceMeshShaderFeaturesNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing mesh shading features that can be supported by an implementation.Description
If the
VkPhysicalDeviceMeshShaderFeaturesNVstructure is included in thepNextchain ofVkPhysicalDeviceFeatures2, it is filled with a value indicating whether the feature is supported.VkPhysicalDeviceMeshShaderFeaturesNVcan also be used inpNextchain ofVkDeviceCreateInfoto enable the features.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PHYSICAL_DEVICE_MESH_SHADER_FEATURES_NV
Member documentation
taskShader– indicates whether the task shader stage is supported.meshShader– indicates whether the mesh shader stage is supported.
Layout
struct VkPhysicalDeviceMeshShaderFeaturesNV { VkStructureType sType; void * pNext; VkBool32 taskShader; VkBool32 meshShader; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceMeshShaderFeaturesNV.BufferAn array ofVkPhysicalDeviceMeshShaderFeaturesNVstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intMESHSHADER
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
TASKSHADERThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceMeshShaderFeaturesNV(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceMeshShaderFeaturesNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceMeshShaderFeaturesNVcalloc()Returns a newVkPhysicalDeviceMeshShaderFeaturesNVinstance allocated withmemCalloc.static VkPhysicalDeviceMeshShaderFeaturesNV.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceMeshShaderFeaturesNV.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceMeshShaderFeaturesNVcallocStack()Returns a newVkPhysicalDeviceMeshShaderFeaturesNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceMeshShaderFeaturesNV.BuffercallocStack(int capacity)Returns a newVkPhysicalDeviceMeshShaderFeaturesNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceMeshShaderFeaturesNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceMeshShaderFeaturesNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceMeshShaderFeaturesNVcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceMeshShaderFeaturesNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceMeshShaderFeaturesNVcreate()Returns a newVkPhysicalDeviceMeshShaderFeaturesNVinstance allocated withBufferUtils.static VkPhysicalDeviceMeshShaderFeaturesNV.Buffercreate(int capacity)Returns a newVkPhysicalDeviceMeshShaderFeaturesNV.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceMeshShaderFeaturesNVcreate(long address)Returns a newVkPhysicalDeviceMeshShaderFeaturesNVinstance for the specified memory address.static VkPhysicalDeviceMeshShaderFeaturesNV.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceMeshShaderFeaturesNV.Bufferinstance at the specified memory.static VkPhysicalDeviceMeshShaderFeaturesNVcreateSafe(long address)static VkPhysicalDeviceMeshShaderFeaturesNV.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceMeshShaderFeaturesNVmalloc()Returns a newVkPhysicalDeviceMeshShaderFeaturesNVinstance allocated withmemAlloc.static VkPhysicalDeviceMeshShaderFeaturesNV.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceMeshShaderFeaturesNV.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceMeshShaderFeaturesNVmallocStack()Returns a newVkPhysicalDeviceMeshShaderFeaturesNVinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceMeshShaderFeaturesNV.BuffermallocStack(int capacity)Returns a newVkPhysicalDeviceMeshShaderFeaturesNV.Bufferinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceMeshShaderFeaturesNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceMeshShaderFeaturesNV.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceMeshShaderFeaturesNVmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceMeshShaderFeaturesNVinstance allocated on the specifiedMemoryStack.booleanmeshShader()Returns the value of themeshShaderfield.VkPhysicalDeviceMeshShaderFeaturesNVmeshShader(boolean value)Sets the specified value to themeshShaderfield.static intnmeshShader(long struct)Unsafe version ofmeshShader().static voidnmeshShader(long struct, int value)Unsafe version ofmeshShader.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static intntaskShader(long struct)Unsafe version oftaskShader().static voidntaskShader(long struct, int value)Unsafe version oftaskShader.longpNext()Returns the value of thepNextfield.VkPhysicalDeviceMeshShaderFeaturesNVpNext(long value)Sets the specified value to thepNextfield.VkPhysicalDeviceMeshShaderFeaturesNVset(int sType, long pNext, boolean taskShader, boolean meshShader)Initializes this struct with the specified values.VkPhysicalDeviceMeshShaderFeaturesNVset(VkPhysicalDeviceMeshShaderFeaturesNV src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkPhysicalDeviceMeshShaderFeaturesNVsType(int value)Sets the specified value to thesTypefield.booleantaskShader()Returns the value of thetaskShaderfield.VkPhysicalDeviceMeshShaderFeaturesNVtaskShader(boolean value)Sets the specified value to thetaskShaderfield.
-
-
-
Constructor Detail
-
VkPhysicalDeviceMeshShaderFeaturesNV
public VkPhysicalDeviceMeshShaderFeaturesNV(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceMeshShaderFeaturesNVinstance 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
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
taskShader
public boolean taskShader()
Returns the value of thetaskShaderfield.
-
meshShader
public boolean meshShader()
Returns the value of themeshShaderfield.
-
sType
public VkPhysicalDeviceMeshShaderFeaturesNV sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPhysicalDeviceMeshShaderFeaturesNV pNext(long value)
Sets the specified value to thepNextfield.
-
taskShader
public VkPhysicalDeviceMeshShaderFeaturesNV taskShader(boolean value)
Sets the specified value to thetaskShaderfield.
-
meshShader
public VkPhysicalDeviceMeshShaderFeaturesNV meshShader(boolean value)
Sets the specified value to themeshShaderfield.
-
set
public VkPhysicalDeviceMeshShaderFeaturesNV set(int sType, long pNext, boolean taskShader, boolean meshShader)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceMeshShaderFeaturesNV set(VkPhysicalDeviceMeshShaderFeaturesNV src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceMeshShaderFeaturesNV malloc()
Returns a newVkPhysicalDeviceMeshShaderFeaturesNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceMeshShaderFeaturesNV calloc()
Returns a newVkPhysicalDeviceMeshShaderFeaturesNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceMeshShaderFeaturesNV create()
Returns a newVkPhysicalDeviceMeshShaderFeaturesNVinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceMeshShaderFeaturesNV create(long address)
Returns a newVkPhysicalDeviceMeshShaderFeaturesNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceMeshShaderFeaturesNV createSafe(long address)
-
malloc
public static VkPhysicalDeviceMeshShaderFeaturesNV.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceMeshShaderFeaturesNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceMeshShaderFeaturesNV.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceMeshShaderFeaturesNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceMeshShaderFeaturesNV.Buffer create(int capacity)
Returns a newVkPhysicalDeviceMeshShaderFeaturesNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceMeshShaderFeaturesNV.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceMeshShaderFeaturesNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceMeshShaderFeaturesNV.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPhysicalDeviceMeshShaderFeaturesNV mallocStack()
Returns a newVkPhysicalDeviceMeshShaderFeaturesNVinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPhysicalDeviceMeshShaderFeaturesNV callocStack()
Returns a newVkPhysicalDeviceMeshShaderFeaturesNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceMeshShaderFeaturesNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceMeshShaderFeaturesNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceMeshShaderFeaturesNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceMeshShaderFeaturesNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkPhysicalDeviceMeshShaderFeaturesNV.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceMeshShaderFeaturesNV.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceMeshShaderFeaturesNV.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceMeshShaderFeaturesNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceMeshShaderFeaturesNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceMeshShaderFeaturesNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceMeshShaderFeaturesNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceMeshShaderFeaturesNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
ntaskShader
public static int ntaskShader(long struct)
Unsafe version oftaskShader().
-
nmeshShader
public static int nmeshShader(long struct)
Unsafe version ofmeshShader().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
ntaskShader
public static void ntaskShader(long struct, int value)Unsafe version oftaskShader.
-
nmeshShader
public static void nmeshShader(long struct, int value)Unsafe version ofmeshShader.
-
-