Package org.lwjgl.vulkan
Class VkPipelineViewportShadingRateImageStateCreateInfoNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPipelineViewportShadingRateImageStateCreateInfoNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPipelineViewportShadingRateImageStateCreateInfoNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying parameters controlling shading rate image usage.Description
If this structure is not present,
shadingRateImageEnableis considered to beFALSE, and the shading rate image and palettes are not used.Valid Usage
- If the multiple viewports feature is not enabled,
viewportCountmust be 0 or 1 viewportCountmust be less than or equal toVkPhysicalDeviceLimits::maxViewports- If
shadingRateImageEnableisTRUE,viewportCountmust be equal to theviewportCountmember ofVkPipelineViewportStateCreateInfo - If no element of the
pDynamicStatesmember ofpDynamicStateisDYNAMIC_STATE_VIEWPORT_SHADING_RATE_PALETTE_NV,pShadingRatePalettesmust be a valid pointer to an array ofviewportCountVkShadingRatePaletteNVstructures
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PIPELINE_VIEWPORT_SHADING_RATE_IMAGE_STATE_CREATE_INFO_NV- If
viewportCountis not 0, andpShadingRatePalettesis notNULL,pShadingRatePalettesmust be a valid pointer to an array ofviewportCountvalidVkShadingRatePaletteNVstructures
See Also
Member documentation
sType– the type of this structure.pNext–NULLor 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 ofVkShadingRatePaletteNVstructures defining the palette for each viewport. If the shading rate palette state is dynamic, this member is ignored.
Layout
struct VkPipelineViewportShadingRateImageStateCreateInfoNV { VkStructureType sType; void const * pNext; VkBool32 shadingRateImageEnable; uint32_t viewportCount;VkShadingRatePaletteNVconst * pShadingRatePalettes; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPipelineViewportShadingRateImageStateCreateInfoNV.BufferAn array ofVkPipelineViewportShadingRateImageStateCreateInfoNVstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
PSHADINGRATEPALETTES
SHADINGRATEIMAGEENABLEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
VIEWPORTCOUNTThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPipelineViewportShadingRateImageStateCreateInfoNV(java.nio.ByteBuffer container)Creates aVkPipelineViewportShadingRateImageStateCreateInfoNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPipelineViewportShadingRateImageStateCreateInfoNVcalloc()Returns a newVkPipelineViewportShadingRateImageStateCreateInfoNVinstance allocated withmemCalloc.static VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffercalloc(int capacity)Returns a newVkPipelineViewportShadingRateImageStateCreateInfoNV.Bufferinstance allocated withmemCalloc.static VkPipelineViewportShadingRateImageStateCreateInfoNVcallocStack()Returns a newVkPipelineViewportShadingRateImageStateCreateInfoNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPipelineViewportShadingRateImageStateCreateInfoNV.BuffercallocStack(int capacity)Returns a newVkPipelineViewportShadingRateImageStateCreateInfoNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPipelineViewportShadingRateImageStateCreateInfoNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineViewportShadingRateImageStateCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineViewportShadingRateImageStateCreateInfoNVcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineViewportShadingRateImageStateCreateInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineViewportShadingRateImageStateCreateInfoNVcreate()Returns a newVkPipelineViewportShadingRateImageStateCreateInfoNVinstance allocated withBufferUtils.static VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffercreate(int capacity)Returns a newVkPipelineViewportShadingRateImageStateCreateInfoNV.Bufferinstance allocated withBufferUtils.static VkPipelineViewportShadingRateImageStateCreateInfoNVcreate(long address)Returns a newVkPipelineViewportShadingRateImageStateCreateInfoNVinstance for the specified memory address.static VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffercreate(long address, int capacity)Create aVkPipelineViewportShadingRateImageStateCreateInfoNV.Bufferinstance at the specified memory.static VkPipelineViewportShadingRateImageStateCreateInfoNVcreateSafe(long address)static VkPipelineViewportShadingRateImageStateCreateInfoNV.BuffercreateSafe(long address, int capacity)static VkPipelineViewportShadingRateImageStateCreateInfoNVmalloc()Returns a newVkPipelineViewportShadingRateImageStateCreateInfoNVinstance allocated withmemAlloc.static VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffermalloc(int capacity)Returns a newVkPipelineViewportShadingRateImageStateCreateInfoNV.Bufferinstance allocated withmemAlloc.static VkPipelineViewportShadingRateImageStateCreateInfoNVmallocStack()Returns a newVkPipelineViewportShadingRateImageStateCreateInfoNVinstance allocated on the thread-localMemoryStack.static VkPipelineViewportShadingRateImageStateCreateInfoNV.BuffermallocStack(int capacity)Returns a newVkPipelineViewportShadingRateImageStateCreateInfoNV.Bufferinstance allocated on the thread-localMemoryStack.static VkPipelineViewportShadingRateImageStateCreateInfoNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineViewportShadingRateImageStateCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStack.static VkPipelineViewportShadingRateImageStateCreateInfoNVmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineViewportShadingRateImageStateCreateInfoNVinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static VkShadingRatePaletteNV.BuffernpShadingRatePalettes(long struct)Unsafe version ofpShadingRatePalettes().static voidnpShadingRatePalettes(long struct, VkShadingRatePaletteNV.Buffer value)Unsafe version ofpShadingRatePalettes.static intnshadingRateImageEnable(long struct)Unsafe version ofshadingRateImageEnable().static voidnshadingRateImageEnable(long struct, int value)Unsafe version ofshadingRateImageEnable.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static intnviewportCount(long struct)Unsafe version ofviewportCount().static voidnviewportCount(long struct, int value)Sets the specified value to theviewportCountfield of the specifiedstruct.longpNext()Returns the value of thepNextfield.VkPipelineViewportShadingRateImageStateCreateInfoNVpNext(long value)Sets the specified value to thepNextfield.VkShadingRatePaletteNV.BufferpShadingRatePalettes()Returns aVkShadingRatePaletteNV.Bufferview of the struct array pointed to by thepShadingRatePalettesfield.VkPipelineViewportShadingRateImageStateCreateInfoNVpShadingRatePalettes(VkShadingRatePaletteNV.Buffer value)Sets the address of the specifiedVkShadingRatePaletteNV.Bufferto thepShadingRatePalettesfield.VkPipelineViewportShadingRateImageStateCreateInfoNVset(int sType, long pNext, boolean shadingRateImageEnable, int viewportCount, VkShadingRatePaletteNV.Buffer pShadingRatePalettes)Initializes this struct with the specified values.VkPipelineViewportShadingRateImageStateCreateInfoNVset(VkPipelineViewportShadingRateImageStateCreateInfoNV src)Copies the specified struct data to this struct.booleanshadingRateImageEnable()Returns the value of theshadingRateImageEnablefield.VkPipelineViewportShadingRateImageStateCreateInfoNVshadingRateImageEnable(boolean value)Sets the specified value to theshadingRateImageEnablefield.intsizeof()intsType()Returns the value of thesTypefield.VkPipelineViewportShadingRateImageStateCreateInfoNVsType(int value)Sets the specified value to thesTypefield.intviewportCount()Returns the value of theviewportCountfield.VkPipelineViewportShadingRateImageStateCreateInfoNVviewportCount(int value)Sets the specified value to theviewportCountfield.
-
-
-
Constructor Detail
-
VkPipelineViewportShadingRateImageStateCreateInfoNV
public VkPipelineViewportShadingRateImageStateCreateInfoNV(java.nio.ByteBuffer container)
Creates aVkPipelineViewportShadingRateImageStateCreateInfoNVinstance 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.
-
shadingRateImageEnable
public boolean shadingRateImageEnable()
Returns the value of theshadingRateImageEnablefield.
-
viewportCount
public int viewportCount()
Returns the value of theviewportCountfield.
-
pShadingRatePalettes
@Nullable public VkShadingRatePaletteNV.Buffer pShadingRatePalettes()
Returns aVkShadingRatePaletteNV.Bufferview of the struct array pointed to by thepShadingRatePalettesfield.
-
sType
public VkPipelineViewportShadingRateImageStateCreateInfoNV sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPipelineViewportShadingRateImageStateCreateInfoNV pNext(long value)
Sets the specified value to thepNextfield.
-
shadingRateImageEnable
public VkPipelineViewportShadingRateImageStateCreateInfoNV shadingRateImageEnable(boolean value)
Sets the specified value to theshadingRateImageEnablefield.
-
viewportCount
public VkPipelineViewportShadingRateImageStateCreateInfoNV viewportCount(int value)
Sets the specified value to theviewportCountfield.
-
pShadingRatePalettes
public VkPipelineViewportShadingRateImageStateCreateInfoNV pShadingRatePalettes(@Nullable VkShadingRatePaletteNV.Buffer value)
Sets the address of the specifiedVkShadingRatePaletteNV.Bufferto thepShadingRatePalettesfield.
-
set
public VkPipelineViewportShadingRateImageStateCreateInfoNV set(int sType, long pNext, boolean shadingRateImageEnable, int viewportCount, @Nullable VkShadingRatePaletteNV.Buffer pShadingRatePalettes)
Initializes this struct with the specified values.
-
set
public VkPipelineViewportShadingRateImageStateCreateInfoNV set(VkPipelineViewportShadingRateImageStateCreateInfoNV src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPipelineViewportShadingRateImageStateCreateInfoNV malloc()
Returns a newVkPipelineViewportShadingRateImageStateCreateInfoNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPipelineViewportShadingRateImageStateCreateInfoNV calloc()
Returns a newVkPipelineViewportShadingRateImageStateCreateInfoNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPipelineViewportShadingRateImageStateCreateInfoNV create()
Returns a newVkPipelineViewportShadingRateImageStateCreateInfoNVinstance allocated withBufferUtils.
-
create
public static VkPipelineViewportShadingRateImageStateCreateInfoNV create(long address)
Returns a newVkPipelineViewportShadingRateImageStateCreateInfoNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkPipelineViewportShadingRateImageStateCreateInfoNV createSafe(long address)
-
malloc
public static VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer malloc(int capacity)
Returns a newVkPipelineViewportShadingRateImageStateCreateInfoNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer calloc(int capacity)
Returns a newVkPipelineViewportShadingRateImageStateCreateInfoNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer create(int capacity)
Returns a newVkPipelineViewportShadingRateImageStateCreateInfoNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer create(long address, int capacity)
Create aVkPipelineViewportShadingRateImageStateCreateInfoNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPipelineViewportShadingRateImageStateCreateInfoNV mallocStack()
Returns a newVkPipelineViewportShadingRateImageStateCreateInfoNVinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPipelineViewportShadingRateImageStateCreateInfoNV callocStack()
Returns a newVkPipelineViewportShadingRateImageStateCreateInfoNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPipelineViewportShadingRateImageStateCreateInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportShadingRateImageStateCreateInfoNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPipelineViewportShadingRateImageStateCreateInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportShadingRateImageStateCreateInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer mallocStack(int capacity)
Returns a newVkPipelineViewportShadingRateImageStateCreateInfoNV.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer callocStack(int capacity)
Returns a newVkPipelineViewportShadingRateImageStateCreateInfoNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportShadingRateImageStateCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkPipelineViewportShadingRateImageStateCreateInfoNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportShadingRateImageStateCreateInfoNV.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().
-
nshadingRateImageEnable
public static int nshadingRateImageEnable(long struct)
Unsafe version ofshadingRateImageEnable().
-
nviewportCount
public static int nviewportCount(long struct)
Unsafe version ofviewportCount().
-
npShadingRatePalettes
@Nullable public static VkShadingRatePaletteNV.Buffer npShadingRatePalettes(long struct)
Unsafe version ofpShadingRatePalettes().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nshadingRateImageEnable
public static void nshadingRateImageEnable(long struct, int value)Unsafe version ofshadingRateImageEnable.
-
nviewportCount
public static void nviewportCount(long struct, int value)Sets the specified value to theviewportCountfield of the specifiedstruct.
-
npShadingRatePalettes
public static void npShadingRatePalettes(long struct, @Nullable VkShadingRatePaletteNV.Buffer value)Unsafe version ofpShadingRatePalettes.
-
-