public class VkPipelineViewportShadingRateImageStateCreateInfoNV
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
If this structure is not present, shadingRateImageEnable is considered to be FALSE, and the shading rate image and palettes are not used.
viewportCount must be 0 or 1viewportCount must be less than or equal to VkPhysicalDeviceLimits::maxViewportsshadingRateImageEnable is TRUE, viewportCount must be equal to the viewportCount member of VkPipelineViewportStateCreateInfopDynamicStates member of pDynamicState is DYNAMIC_STATE_VIEWPORT_SHADING_RATE_PALETTE_NV, pShadingRatePalettes must be a valid pointer to an array of viewportCount VkShadingRatePaletteNV structuressType must be STRUCTURE_TYPE_PIPELINE_VIEWPORT_SHADING_RATE_IMAGE_STATE_CREATE_INFO_NVviewportCount is not 0, and pShadingRatePalettes is not NULL, pShadingRatePalettes must be a valid pointer to an array of viewportCount valid VkShadingRatePaletteNV structuressType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.shadingRateImageEnable – specifies whether shading rate image and palettes are used during rasterization.viewportCount – specifies the number of per-viewport palettes used to translate values stored in shading rate images.pShadingRatePalettes – a pointer to an array of VkShadingRatePaletteNV structures defining the palette for each viewport. If the shading rate palette state is dynamic, this member is ignored.
struct VkPipelineViewportShadingRateImageStateCreateInfoNV {
VkStructureType sType;
void const * pNext;
VkBool32 shadingRateImageEnable;
uint32_t viewportCount;
VkShadingRatePaletteNV const * pShadingRatePalettes;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer
An array of
VkPipelineViewportShadingRateImageStateCreateInfoNV structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
PNEXT
The struct member offsets.
|
static int |
PSHADINGRATEPALETTES
The struct member offsets.
|
static int |
SHADINGRATEIMAGEENABLE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
static int |
VIEWPORTCOUNT
The struct member offsets.
|
| Constructor and Description |
|---|
VkPipelineViewportShadingRateImageStateCreateInfoNV(java.nio.ByteBuffer container)
Creates a
VkPipelineViewportShadingRateImageStateCreateInfoNV instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPipelineViewportShadingRateImageStateCreateInfoNV |
calloc()
Returns a new
VkPipelineViewportShadingRateImageStateCreateInfoNV instance allocated with memCalloc. |
static VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer |
calloc(int capacity)
Returns a new
VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer instance allocated with memCalloc. |
static VkPipelineViewportShadingRateImageStateCreateInfoNV |
callocStack()
Returns a new
VkPipelineViewportShadingRateImageStateCreateInfoNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer |
callocStack(int capacity)
Returns a new
VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPipelineViewportShadingRateImageStateCreateInfoNV |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineViewportShadingRateImageStateCreateInfoNV instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPipelineViewportShadingRateImageStateCreateInfoNV |
create()
Returns a new
VkPipelineViewportShadingRateImageStateCreateInfoNV instance allocated with BufferUtils. |
static VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer |
create(int capacity)
Returns a new
VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer instance allocated with BufferUtils. |
static VkPipelineViewportShadingRateImageStateCreateInfoNV |
create(long address)
Returns a new
VkPipelineViewportShadingRateImageStateCreateInfoNV instance for the specified memory address. |
static VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer |
create(long address,
int capacity)
Create a
VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer instance at the specified memory. |
static VkPipelineViewportShadingRateImageStateCreateInfoNV |
createSafe(long address)
|
static VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer |
createSafe(long address,
int capacity)
|
static VkPipelineViewportShadingRateImageStateCreateInfoNV |
malloc()
Returns a new
VkPipelineViewportShadingRateImageStateCreateInfoNV instance allocated with memAlloc. |
static VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer |
malloc(int capacity)
Returns a new
VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer instance allocated with memAlloc. |
static VkPipelineViewportShadingRateImageStateCreateInfoNV |
mallocStack()
Returns a new
VkPipelineViewportShadingRateImageStateCreateInfoNV instance allocated on the thread-local MemoryStack. |
static VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer |
mallocStack(int capacity)
Returns a new
VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer instance allocated on the thread-local MemoryStack. |
static VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer instance allocated on the specified MemoryStack. |
static VkPipelineViewportShadingRateImageStateCreateInfoNV |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineViewportShadingRateImageStateCreateInfoNV instance allocated on the specified MemoryStack. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static VkShadingRatePaletteNV.Buffer |
npShadingRatePalettes(long struct)
Unsafe version of
pShadingRatePalettes(). |
static void |
npShadingRatePalettes(long struct,
VkShadingRatePaletteNV.Buffer value)
Unsafe version of
pShadingRatePalettes. |
static int |
nshadingRateImageEnable(long struct)
Unsafe version of
shadingRateImageEnable(). |
static void |
nshadingRateImageEnable(long struct,
int value)
Unsafe version of
shadingRateImageEnable. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
static int |
nviewportCount(long struct)
Unsafe version of
viewportCount(). |
static void |
nviewportCount(long struct,
int value)
Sets the specified value to the
viewportCount field of the specified struct. |
long |
pNext()
Returns the value of the
pNext field. |
VkPipelineViewportShadingRateImageStateCreateInfoNV |
pNext(long value)
Sets the specified value to the
pNext field. |
VkShadingRatePaletteNV.Buffer |
pShadingRatePalettes()
Returns a
VkShadingRatePaletteNV.Buffer view of the struct array pointed to by the pShadingRatePalettes field. |
VkPipelineViewportShadingRateImageStateCreateInfoNV |
pShadingRatePalettes(VkShadingRatePaletteNV.Buffer value)
Sets the address of the specified
VkShadingRatePaletteNV.Buffer to the pShadingRatePalettes field. |
VkPipelineViewportShadingRateImageStateCreateInfoNV |
set(int sType,
long pNext,
boolean shadingRateImageEnable,
int viewportCount,
VkShadingRatePaletteNV.Buffer pShadingRatePalettes)
Initializes this struct with the specified values.
|
VkPipelineViewportShadingRateImageStateCreateInfoNV |
set(VkPipelineViewportShadingRateImageStateCreateInfoNV src)
Copies the specified struct data to this struct.
|
boolean |
shadingRateImageEnable()
Returns the value of the
shadingRateImageEnable field. |
VkPipelineViewportShadingRateImageStateCreateInfoNV |
shadingRateImageEnable(boolean value)
Sets the specified value to the
shadingRateImageEnable field. |
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPipelineViewportShadingRateImageStateCreateInfoNV |
sType(int value)
Sets the specified value to the
sType field. |
int |
viewportCount()
Returns the value of the
viewportCount field. |
VkPipelineViewportShadingRateImageStateCreateInfoNV |
viewportCount(int value)
Sets the specified value to the
viewportCount 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 SHADINGRATEIMAGEENABLE
public static final int VIEWPORTCOUNT
public static final int PSHADINGRATEPALETTES
public VkPipelineViewportShadingRateImageStateCreateInfoNV(java.nio.ByteBuffer container)
VkPipelineViewportShadingRateImageStateCreateInfoNV 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 shadingRateImageEnable()
shadingRateImageEnable field.public int viewportCount()
viewportCount field.@Nullable public VkShadingRatePaletteNV.Buffer pShadingRatePalettes()
VkShadingRatePaletteNV.Buffer view of the struct array pointed to by the pShadingRatePalettes field.public VkPipelineViewportShadingRateImageStateCreateInfoNV sType(int value)
sType field.public VkPipelineViewportShadingRateImageStateCreateInfoNV pNext(long value)
pNext field.public VkPipelineViewportShadingRateImageStateCreateInfoNV shadingRateImageEnable(boolean value)
shadingRateImageEnable field.public VkPipelineViewportShadingRateImageStateCreateInfoNV viewportCount(int value)
viewportCount field.public VkPipelineViewportShadingRateImageStateCreateInfoNV pShadingRatePalettes(@Nullable VkShadingRatePaletteNV.Buffer value)
VkShadingRatePaletteNV.Buffer to the pShadingRatePalettes field.public VkPipelineViewportShadingRateImageStateCreateInfoNV set(int sType, long pNext, boolean shadingRateImageEnable, int viewportCount, @Nullable VkShadingRatePaletteNV.Buffer pShadingRatePalettes)
public VkPipelineViewportShadingRateImageStateCreateInfoNV set(VkPipelineViewportShadingRateImageStateCreateInfoNV src)
src - the source structpublic static VkPipelineViewportShadingRateImageStateCreateInfoNV malloc()
VkPipelineViewportShadingRateImageStateCreateInfoNV instance allocated with memAlloc. The instance must be explicitly freed.public static VkPipelineViewportShadingRateImageStateCreateInfoNV calloc()
VkPipelineViewportShadingRateImageStateCreateInfoNV instance allocated with memCalloc. The instance must be explicitly freed.public static VkPipelineViewportShadingRateImageStateCreateInfoNV create()
VkPipelineViewportShadingRateImageStateCreateInfoNV instance allocated with BufferUtils.public static VkPipelineViewportShadingRateImageStateCreateInfoNV create(long address)
VkPipelineViewportShadingRateImageStateCreateInfoNV instance for the specified memory address.@Nullable public static VkPipelineViewportShadingRateImageStateCreateInfoNV createSafe(long address)
public static VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer malloc(int capacity)
VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer calloc(int capacity)
VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer create(int capacity)
VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer create(long address, int capacity)
VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer createSafe(long address, int capacity)
public static VkPipelineViewportShadingRateImageStateCreateInfoNV mallocStack()
VkPipelineViewportShadingRateImageStateCreateInfoNV instance allocated on the thread-local MemoryStack.public static VkPipelineViewportShadingRateImageStateCreateInfoNV callocStack()
VkPipelineViewportShadingRateImageStateCreateInfoNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPipelineViewportShadingRateImageStateCreateInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
VkPipelineViewportShadingRateImageStateCreateInfoNV instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPipelineViewportShadingRateImageStateCreateInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
VkPipelineViewportShadingRateImageStateCreateInfoNV instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer mallocStack(int capacity)
VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer callocStack(int capacity)
VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPipelineViewportShadingRateImageStateCreateInfoNV.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 nshadingRateImageEnable(long struct)
shadingRateImageEnable().public static int nviewportCount(long struct)
viewportCount().@Nullable public static VkShadingRatePaletteNV.Buffer npShadingRatePalettes(long struct)
pShadingRatePalettes().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nshadingRateImageEnable(long struct,
int value)
shadingRateImageEnable.public static void nviewportCount(long struct,
int value)
viewportCount field of the specified struct.public static void npShadingRatePalettes(long struct,
@Nullable
VkShadingRatePaletteNV.Buffer value)
pShadingRatePalettes.Copyright LWJGL. All Rights Reserved. License terms.