Package org.lwjgl.vulkan
Class VkShadingRatePaletteNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkShadingRatePaletteNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkShadingRatePaletteNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure specifying a single shading rate palette.Valid Usage
shadingRatePaletteEntryCount
must be between 1 andVkPhysicalDeviceShadingRateImagePropertiesNV
::shadingRatePaletteSize
, inclusive
Valid Usage (Implicit)
pShadingRatePaletteEntries
must be a valid pointer to an array ofshadingRatePaletteEntryCount
validVkShadingRatePaletteEntryNV
valuesshadingRatePaletteEntryCount
must be greater than 0
See Also
VkPipelineViewportShadingRateImageStateCreateInfoNV
,CmdSetViewportShadingRatePaletteNV
Member documentation
shadingRatePaletteEntryCount
– specifies the number of entries in the shading rate image palette.pShadingRatePaletteEntries
– a pointer to an array ofVkShadingRatePaletteEntryNV
enums defining the shading rate for each palette entry.
Layout
struct VkShadingRatePaletteNV { uint32_t shadingRatePaletteEntryCount; VkShadingRatePaletteEntryNV const * pShadingRatePaletteEntries; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkShadingRatePaletteNV.Buffer
An array ofVkShadingRatePaletteNV
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
PSHADINGRATEPALETTEENTRIES
SHADINGRATEPALETTEENTRYCOUNTThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VkShadingRatePaletteNV(java.nio.ByteBuffer container)
Creates aVkShadingRatePaletteNV
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkShadingRatePaletteNV
calloc()
Returns a newVkShadingRatePaletteNV
instance allocated withmemCalloc
.static VkShadingRatePaletteNV.Buffer
calloc(int capacity)
Returns a newVkShadingRatePaletteNV.Buffer
instance allocated withmemCalloc
.static VkShadingRatePaletteNV
callocStack()
Returns a newVkShadingRatePaletteNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkShadingRatePaletteNV.Buffer
callocStack(int capacity)
Returns a newVkShadingRatePaletteNV.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkShadingRatePaletteNV.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkShadingRatePaletteNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkShadingRatePaletteNV
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkShadingRatePaletteNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkShadingRatePaletteNV
create()
Returns a newVkShadingRatePaletteNV
instance allocated withBufferUtils
.static VkShadingRatePaletteNV.Buffer
create(int capacity)
Returns a newVkShadingRatePaletteNV.Buffer
instance allocated withBufferUtils
.static VkShadingRatePaletteNV
create(long address)
Returns a newVkShadingRatePaletteNV
instance for the specified memory address.static VkShadingRatePaletteNV.Buffer
create(long address, int capacity)
Create aVkShadingRatePaletteNV.Buffer
instance at the specified memory.static VkShadingRatePaletteNV
createSafe(long address)
static VkShadingRatePaletteNV.Buffer
createSafe(long address, int capacity)
static VkShadingRatePaletteNV
malloc()
Returns a newVkShadingRatePaletteNV
instance allocated withmemAlloc
.static VkShadingRatePaletteNV.Buffer
malloc(int capacity)
Returns a newVkShadingRatePaletteNV.Buffer
instance allocated withmemAlloc
.static VkShadingRatePaletteNV
mallocStack()
Returns a newVkShadingRatePaletteNV
instance allocated on the thread-localMemoryStack
.static VkShadingRatePaletteNV.Buffer
mallocStack(int capacity)
Returns a newVkShadingRatePaletteNV.Buffer
instance allocated on the thread-localMemoryStack
.static VkShadingRatePaletteNV.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkShadingRatePaletteNV.Buffer
instance allocated on the specifiedMemoryStack
.static VkShadingRatePaletteNV
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkShadingRatePaletteNV
instance allocated on the specifiedMemoryStack
.static java.nio.IntBuffer
npShadingRatePaletteEntries(long struct)
Unsafe version ofpShadingRatePaletteEntries
.static void
npShadingRatePaletteEntries(long struct, java.nio.IntBuffer value)
Unsafe version ofpShadingRatePaletteEntries
.static int
nshadingRatePaletteEntryCount(long struct)
Unsafe version ofshadingRatePaletteEntryCount()
.static void
nshadingRatePaletteEntryCount(long struct, int value)
Sets the specified value to theshadingRatePaletteEntryCount
field of the specifiedstruct
.java.nio.IntBuffer
pShadingRatePaletteEntries()
Returns aIntBuffer
view of the data pointed to by thepShadingRatePaletteEntries
field.VkShadingRatePaletteNV
pShadingRatePaletteEntries(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thepShadingRatePaletteEntries
field.VkShadingRatePaletteNV
set(VkShadingRatePaletteNV src)
Copies the specified struct data to this struct.int
shadingRatePaletteEntryCount()
Returns the value of theshadingRatePaletteEntryCount
field.int
sizeof()
static void
validate(long struct)
Validates pointer members that should not beNULL
.static void
validate(long array, int count)
Callsvalidate(long)
for each struct contained in the specified struct array.
-
-
-
Constructor Detail
-
VkShadingRatePaletteNV
public VkShadingRatePaletteNV(java.nio.ByteBuffer container)
Creates aVkShadingRatePaletteNV
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
shadingRatePaletteEntryCount
public int shadingRatePaletteEntryCount()
Returns the value of theshadingRatePaletteEntryCount
field.
-
pShadingRatePaletteEntries
public java.nio.IntBuffer pShadingRatePaletteEntries()
Returns aIntBuffer
view of the data pointed to by thepShadingRatePaletteEntries
field.
-
pShadingRatePaletteEntries
public VkShadingRatePaletteNV pShadingRatePaletteEntries(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thepShadingRatePaletteEntries
field.
-
set
public VkShadingRatePaletteNV set(VkShadingRatePaletteNV src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkShadingRatePaletteNV malloc()
Returns a newVkShadingRatePaletteNV
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkShadingRatePaletteNV calloc()
Returns a newVkShadingRatePaletteNV
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkShadingRatePaletteNV create()
Returns a newVkShadingRatePaletteNV
instance allocated withBufferUtils
.
-
create
public static VkShadingRatePaletteNV create(long address)
Returns a newVkShadingRatePaletteNV
instance for the specified memory address.
-
createSafe
@Nullable public static VkShadingRatePaletteNV createSafe(long address)
-
malloc
public static VkShadingRatePaletteNV.Buffer malloc(int capacity)
Returns a newVkShadingRatePaletteNV.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkShadingRatePaletteNV.Buffer calloc(int capacity)
Returns a newVkShadingRatePaletteNV.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkShadingRatePaletteNV.Buffer create(int capacity)
Returns a newVkShadingRatePaletteNV.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkShadingRatePaletteNV.Buffer create(long address, int capacity)
Create aVkShadingRatePaletteNV.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkShadingRatePaletteNV.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkShadingRatePaletteNV mallocStack()
Returns a newVkShadingRatePaletteNV
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkShadingRatePaletteNV callocStack()
Returns a newVkShadingRatePaletteNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkShadingRatePaletteNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkShadingRatePaletteNV
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkShadingRatePaletteNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkShadingRatePaletteNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkShadingRatePaletteNV.Buffer mallocStack(int capacity)
Returns a newVkShadingRatePaletteNV.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkShadingRatePaletteNV.Buffer callocStack(int capacity)
Returns a newVkShadingRatePaletteNV.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkShadingRatePaletteNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkShadingRatePaletteNV.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkShadingRatePaletteNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkShadingRatePaletteNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nshadingRatePaletteEntryCount
public static int nshadingRatePaletteEntryCount(long struct)
Unsafe version ofshadingRatePaletteEntryCount()
.
-
npShadingRatePaletteEntries
public static java.nio.IntBuffer npShadingRatePaletteEntries(long struct)
Unsafe version ofpShadingRatePaletteEntries
.
-
nshadingRatePaletteEntryCount
public static void nshadingRatePaletteEntryCount(long struct, int value)
Sets the specified value to theshadingRatePaletteEntryCount
field of the specifiedstruct
.
-
npShadingRatePaletteEntries
public static void npShadingRatePaletteEntries(long struct, java.nio.IntBuffer value)
Unsafe version ofpShadingRatePaletteEntries
.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-
validate
public static void validate(long array, int count)
Callsvalidate(long)
for each struct contained in the specified struct array.- Parameters:
array
- the struct array to validatecount
- the number of structs inarray
-
-