public class VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
See Barycentric Interpolation for more information.
If the VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV structure is included in the pNext chain of VkPhysicalDeviceFeatures2, it is filled with values indicating whether the feature is supported. VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV can also be included in the pNext chain of VkDeviceCreateInfo to enable features.
fragmentShaderBarycentric – indicates that the implementation supports the BaryCoordNV and BaryCoordNoPerspNV SPIR-V fragment shader built-ins and supports the PerVertexNV SPIR-V decoration on fragment shader input variables.
struct VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV {
VkStructureType sType;
void * pNext;
VkBool32 fragmentShaderBarycentric;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer
An array of
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FRAGMENTSHADERBARYCENTRIC
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 |
|---|
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV(java.nio.ByteBuffer container)
Creates a
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV |
calloc()
Returns a new
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV instance allocated with memCalloc. |
static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer |
calloc(int capacity)
Returns a new
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer instance allocated with memCalloc. |
static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV |
callocStack()
Returns a new
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer |
callocStack(int capacity)
Returns a new
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV |
create()
Returns a new
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV instance allocated with BufferUtils. |
static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer |
create(int capacity)
Returns a new
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer instance allocated with BufferUtils. |
static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV |
create(long address)
Returns a new
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV instance for the specified memory address. |
static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer |
create(long address,
int capacity)
Create a
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer instance at the specified memory. |
static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV |
createSafe(long address)
|
static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer |
createSafe(long address,
int capacity)
|
boolean |
fragmentShaderBarycentric()
Returns the value of the
fragmentShaderBarycentric field. |
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV |
fragmentShaderBarycentric(boolean value)
Sets the specified value to the
fragmentShaderBarycentric field. |
static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV |
malloc()
Returns a new
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV instance allocated with memAlloc. |
static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer |
malloc(int capacity)
Returns a new
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer instance allocated with memAlloc. |
static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV |
mallocStack()
Returns a new
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer |
mallocStack(int capacity)
Returns a new
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer instance allocated on the specified MemoryStack. |
static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV instance allocated on the specified MemoryStack. |
static int |
nfragmentShaderBarycentric(long struct)
Unsafe version of
fragmentShaderBarycentric(). |
static void |
nfragmentShaderBarycentric(long struct,
int value)
Unsafe version of
fragmentShaderBarycentric. |
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. |
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV |
pNext(long value)
Sets the specified value to the
pNext field. |
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV |
set(int sType,
long pNext,
boolean fragmentShaderBarycentric)
Initializes this struct with the specified values.
|
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV |
set(VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV |
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 FRAGMENTSHADERBARYCENTRIC
public VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV(java.nio.ByteBuffer container)
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV 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 fragmentShaderBarycentric()
fragmentShaderBarycentric field.public VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV sType(int value)
sType field.public VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV pNext(long value)
pNext field.public VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV fragmentShaderBarycentric(boolean value)
fragmentShaderBarycentric field.public VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV set(int sType, long pNext, boolean fragmentShaderBarycentric)
public VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV set(VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV src)
src - the source structpublic static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV malloc()
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV instance allocated with memAlloc. The instance must be explicitly freed.public static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV calloc()
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV instance allocated with memCalloc. The instance must be explicitly freed.public static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV create()
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV instance allocated with BufferUtils.public static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV create(long address)
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV instance for the specified memory address.@Nullable public static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV createSafe(long address)
public static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer malloc(int capacity)
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer calloc(int capacity)
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer create(int capacity)
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer create(long address, int capacity)
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer createSafe(long address, int capacity)
public static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV mallocStack()
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV instance allocated on the thread-local MemoryStack.public static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV callocStack()
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV mallocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV callocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer mallocStack(int capacity)
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer callocStack(int capacity)
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.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 nfragmentShaderBarycentric(long struct)
fragmentShaderBarycentric().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nfragmentShaderBarycentric(long struct,
int value)
fragmentShaderBarycentric.Copyright LWJGL. All Rights Reserved. License terms.