public class VkShadingRatePaletteNV
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
shadingRatePaletteEntryCount must be between 1 and VkPhysicalDeviceShadingRateImagePropertiesNV::shadingRatePaletteSize, inclusivepShadingRatePaletteEntries must be a valid pointer to an array of shadingRatePaletteEntryCount valid VkShadingRatePaletteEntryNV valuesshadingRatePaletteEntryCount must be greater than 0VkPipelineViewportShadingRateImageStateCreateInfoNV, CmdSetViewportShadingRatePaletteNV
shadingRatePaletteEntryCount – specifies the number of entries in the shading rate image palette.pShadingRatePaletteEntries – a pointer to an array of VkShadingRatePaletteEntryNV enums defining the shading rate for each palette entry.
struct VkShadingRatePaletteNV {
uint32_t shadingRatePaletteEntryCount;
VkShadingRatePaletteEntryNV const * pShadingRatePaletteEntries;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkShadingRatePaletteNV.Buffer
An array of
VkShadingRatePaletteNV structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
PSHADINGRATEPALETTEENTRIES
The struct member offsets.
|
static int |
SHADINGRATEPALETTEENTRYCOUNT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
VkShadingRatePaletteNV(java.nio.ByteBuffer container)
Creates a
VkShadingRatePaletteNV instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkShadingRatePaletteNV |
calloc()
Returns a new
VkShadingRatePaletteNV instance allocated with memCalloc. |
static VkShadingRatePaletteNV.Buffer |
calloc(int capacity)
Returns a new
VkShadingRatePaletteNV.Buffer instance allocated with memCalloc. |
static VkShadingRatePaletteNV |
callocStack()
Returns a new
VkShadingRatePaletteNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkShadingRatePaletteNV.Buffer |
callocStack(int capacity)
Returns a new
VkShadingRatePaletteNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkShadingRatePaletteNV.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkShadingRatePaletteNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkShadingRatePaletteNV |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkShadingRatePaletteNV instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkShadingRatePaletteNV |
create()
Returns a new
VkShadingRatePaletteNV instance allocated with BufferUtils. |
static VkShadingRatePaletteNV.Buffer |
create(int capacity)
Returns a new
VkShadingRatePaletteNV.Buffer instance allocated with BufferUtils. |
static VkShadingRatePaletteNV |
create(long address)
Returns a new
VkShadingRatePaletteNV instance for the specified memory address. |
static VkShadingRatePaletteNV.Buffer |
create(long address,
int capacity)
Create a
VkShadingRatePaletteNV.Buffer instance at the specified memory. |
static VkShadingRatePaletteNV |
createSafe(long address)
|
static VkShadingRatePaletteNV.Buffer |
createSafe(long address,
int capacity)
|
static VkShadingRatePaletteNV |
malloc()
Returns a new
VkShadingRatePaletteNV instance allocated with memAlloc. |
static VkShadingRatePaletteNV.Buffer |
malloc(int capacity)
Returns a new
VkShadingRatePaletteNV.Buffer instance allocated with memAlloc. |
static VkShadingRatePaletteNV |
mallocStack()
Returns a new
VkShadingRatePaletteNV instance allocated on the thread-local MemoryStack. |
static VkShadingRatePaletteNV.Buffer |
mallocStack(int capacity)
Returns a new
VkShadingRatePaletteNV.Buffer instance allocated on the thread-local MemoryStack. |
static VkShadingRatePaletteNV.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkShadingRatePaletteNV.Buffer instance allocated on the specified MemoryStack. |
static VkShadingRatePaletteNV |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkShadingRatePaletteNV instance allocated on the specified MemoryStack. |
static java.nio.IntBuffer |
npShadingRatePaletteEntries(long struct)
Unsafe version of
pShadingRatePaletteEntries. |
static void |
npShadingRatePaletteEntries(long struct,
java.nio.IntBuffer value)
Unsafe version of
pShadingRatePaletteEntries. |
static int |
nshadingRatePaletteEntryCount(long struct)
Unsafe version of
shadingRatePaletteEntryCount(). |
static void |
nshadingRatePaletteEntryCount(long struct,
int value)
Sets the specified value to the
shadingRatePaletteEntryCount field of the specified struct. |
java.nio.IntBuffer |
pShadingRatePaletteEntries()
Returns a
IntBuffer view of the data pointed to by the pShadingRatePaletteEntries field. |
VkShadingRatePaletteNV |
pShadingRatePaletteEntries(java.nio.IntBuffer value)
Sets the address of the specified
IntBuffer to the pShadingRatePaletteEntries field. |
VkShadingRatePaletteNV |
set(VkShadingRatePaletteNV src)
Copies the specified struct data to this struct.
|
int |
shadingRatePaletteEntryCount()
Returns the value of the
shadingRatePaletteEntryCount field. |
int |
sizeof() |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int SHADINGRATEPALETTEENTRYCOUNT
public static final int PSHADINGRATEPALETTEENTRIES
public VkShadingRatePaletteNV(java.nio.ByteBuffer container)
VkShadingRatePaletteNV 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 shadingRatePaletteEntryCount()
shadingRatePaletteEntryCount field.public java.nio.IntBuffer pShadingRatePaletteEntries()
IntBuffer view of the data pointed to by the pShadingRatePaletteEntries field.public VkShadingRatePaletteNV pShadingRatePaletteEntries(java.nio.IntBuffer value)
IntBuffer to the pShadingRatePaletteEntries field.public VkShadingRatePaletteNV set(VkShadingRatePaletteNV src)
src - the source structpublic static VkShadingRatePaletteNV malloc()
VkShadingRatePaletteNV instance allocated with memAlloc. The instance must be explicitly freed.public static VkShadingRatePaletteNV calloc()
VkShadingRatePaletteNV instance allocated with memCalloc. The instance must be explicitly freed.public static VkShadingRatePaletteNV create()
VkShadingRatePaletteNV instance allocated with BufferUtils.public static VkShadingRatePaletteNV create(long address)
VkShadingRatePaletteNV instance for the specified memory address.@Nullable public static VkShadingRatePaletteNV createSafe(long address)
public static VkShadingRatePaletteNV.Buffer malloc(int capacity)
VkShadingRatePaletteNV.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkShadingRatePaletteNV.Buffer calloc(int capacity)
VkShadingRatePaletteNV.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkShadingRatePaletteNV.Buffer create(int capacity)
VkShadingRatePaletteNV.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkShadingRatePaletteNV.Buffer create(long address, int capacity)
VkShadingRatePaletteNV.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkShadingRatePaletteNV.Buffer createSafe(long address, int capacity)
public static VkShadingRatePaletteNV mallocStack()
VkShadingRatePaletteNV instance allocated on the thread-local MemoryStack.public static VkShadingRatePaletteNV callocStack()
VkShadingRatePaletteNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkShadingRatePaletteNV mallocStack(org.lwjgl.system.MemoryStack stack)
VkShadingRatePaletteNV instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkShadingRatePaletteNV callocStack(org.lwjgl.system.MemoryStack stack)
VkShadingRatePaletteNV instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkShadingRatePaletteNV.Buffer mallocStack(int capacity)
VkShadingRatePaletteNV.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkShadingRatePaletteNV.Buffer callocStack(int capacity)
VkShadingRatePaletteNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkShadingRatePaletteNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkShadingRatePaletteNV.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkShadingRatePaletteNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkShadingRatePaletteNV.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 nshadingRatePaletteEntryCount(long struct)
shadingRatePaletteEntryCount().public static java.nio.IntBuffer npShadingRatePaletteEntries(long struct)
pShadingRatePaletteEntries.public static void nshadingRatePaletteEntryCount(long struct,
int value)
shadingRatePaletteEntryCount field of the specified struct.public static void npShadingRatePaletteEntries(long struct,
java.nio.IntBuffer value)
pShadingRatePaletteEntries.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.