public class VkPipelineDiscardRectangleStateCreateInfoEXT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
discardRectangleCount must be between 0 and VkPhysicalDeviceDiscardRectanglePropertiesEXT::maxDiscardRectangles, inclusivesType must be STRUCTURE_TYPE_PIPELINE_DISCARD_RECTANGLE_STATE_CREATE_INFO_EXTflags must be 0discardRectangleMode must be a valid VkDiscardRectangleModeEXT valuesType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.flags – reserved for future use.discardRectangleMode – the mode used to determine whether fragments that lie within the discard rectangle are discarded or not.discardRectangleCount – the number of discard rectangles used by the pipeline.pDiscardRectangles – a pointer to an array of VkRect2D structures, defining the discard rectangles. If the discard rectangle state is dynamic, this member is ignored.
struct VkPipelineDiscardRectangleStateCreateInfoEXT {
VkStructureType sType;
void const * pNext;
VkPipelineDiscardRectangleStateCreateFlagsEXT flags;
VkDiscardRectangleModeEXT discardRectangleMode;
uint32_t discardRectangleCount;
VkRect2D const * pDiscardRectangles;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer
An array of
VkPipelineDiscardRectangleStateCreateInfoEXT structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DISCARDRECTANGLECOUNT
The struct member offsets.
|
static int |
DISCARDRECTANGLEMODE
The struct member offsets.
|
static int |
FLAGS
The struct member offsets.
|
static int |
PDISCARDRECTANGLES
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 |
|---|
VkPipelineDiscardRectangleStateCreateInfoEXT(java.nio.ByteBuffer container)
Creates a
VkPipelineDiscardRectangleStateCreateInfoEXT instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPipelineDiscardRectangleStateCreateInfoEXT |
calloc()
Returns a new
VkPipelineDiscardRectangleStateCreateInfoEXT instance allocated with memCalloc. |
static VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer |
calloc(int capacity)
Returns a new
VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer instance allocated with memCalloc. |
static VkPipelineDiscardRectangleStateCreateInfoEXT |
callocStack()
Returns a new
VkPipelineDiscardRectangleStateCreateInfoEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer |
callocStack(int capacity)
Returns a new
VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPipelineDiscardRectangleStateCreateInfoEXT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineDiscardRectangleStateCreateInfoEXT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPipelineDiscardRectangleStateCreateInfoEXT |
create()
Returns a new
VkPipelineDiscardRectangleStateCreateInfoEXT instance allocated with BufferUtils. |
static VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer |
create(int capacity)
Returns a new
VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer instance allocated with BufferUtils. |
static VkPipelineDiscardRectangleStateCreateInfoEXT |
create(long address)
Returns a new
VkPipelineDiscardRectangleStateCreateInfoEXT instance for the specified memory address. |
static VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer |
create(long address,
int capacity)
Create a
VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer instance at the specified memory. |
static VkPipelineDiscardRectangleStateCreateInfoEXT |
createSafe(long address)
|
static VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer |
createSafe(long address,
int capacity)
|
int |
discardRectangleCount()
Returns the value of the
discardRectangleCount field. |
VkPipelineDiscardRectangleStateCreateInfoEXT |
discardRectangleCount(int value)
Sets the specified value to the
discardRectangleCount field. |
int |
discardRectangleMode()
Returns the value of the
discardRectangleMode field. |
VkPipelineDiscardRectangleStateCreateInfoEXT |
discardRectangleMode(int value)
Sets the specified value to the
discardRectangleMode field. |
int |
flags()
Returns the value of the
flags field. |
VkPipelineDiscardRectangleStateCreateInfoEXT |
flags(int value)
Sets the specified value to the
flags field. |
static VkPipelineDiscardRectangleStateCreateInfoEXT |
malloc()
Returns a new
VkPipelineDiscardRectangleStateCreateInfoEXT instance allocated with memAlloc. |
static VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer |
malloc(int capacity)
Returns a new
VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer instance allocated with memAlloc. |
static VkPipelineDiscardRectangleStateCreateInfoEXT |
mallocStack()
Returns a new
VkPipelineDiscardRectangleStateCreateInfoEXT instance allocated on the thread-local MemoryStack. |
static VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer |
mallocStack(int capacity)
Returns a new
VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer instance allocated on the thread-local MemoryStack. |
static VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer instance allocated on the specified MemoryStack. |
static VkPipelineDiscardRectangleStateCreateInfoEXT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineDiscardRectangleStateCreateInfoEXT instance allocated on the specified MemoryStack. |
static int |
ndiscardRectangleCount(long struct)
Unsafe version of
discardRectangleCount(). |
static void |
ndiscardRectangleCount(long struct,
int value)
Sets the specified value to the
discardRectangleCount field of the specified struct. |
static int |
ndiscardRectangleMode(long struct)
Unsafe version of
discardRectangleMode(). |
static void |
ndiscardRectangleMode(long struct,
int value)
Unsafe version of
discardRectangleMode. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static VkRect2D.Buffer |
npDiscardRectangles(long struct)
Unsafe version of
pDiscardRectangles(). |
static void |
npDiscardRectangles(long struct,
VkRect2D.Buffer value)
Unsafe version of
pDiscardRectangles. |
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. |
VkRect2D.Buffer |
pDiscardRectangles()
Returns a
VkRect2D.Buffer view of the struct array pointed to by the pDiscardRectangles field. |
VkPipelineDiscardRectangleStateCreateInfoEXT |
pDiscardRectangles(VkRect2D.Buffer value)
Sets the address of the specified
VkRect2D.Buffer to the pDiscardRectangles field. |
long |
pNext()
Returns the value of the
pNext field. |
VkPipelineDiscardRectangleStateCreateInfoEXT |
pNext(long value)
Sets the specified value to the
pNext field. |
VkPipelineDiscardRectangleStateCreateInfoEXT |
set(int sType,
long pNext,
int flags,
int discardRectangleMode,
int discardRectangleCount,
VkRect2D.Buffer pDiscardRectangles)
Initializes this struct with the specified values.
|
VkPipelineDiscardRectangleStateCreateInfoEXT |
set(VkPipelineDiscardRectangleStateCreateInfoEXT src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPipelineDiscardRectangleStateCreateInfoEXT |
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 FLAGS
public static final int DISCARDRECTANGLEMODE
public static final int DISCARDRECTANGLECOUNT
public static final int PDISCARDRECTANGLES
public VkPipelineDiscardRectangleStateCreateInfoEXT(java.nio.ByteBuffer container)
VkPipelineDiscardRectangleStateCreateInfoEXT 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 int flags()
flags field.public int discardRectangleMode()
discardRectangleMode field.public int discardRectangleCount()
discardRectangleCount field.@Nullable public VkRect2D.Buffer pDiscardRectangles()
VkRect2D.Buffer view of the struct array pointed to by the pDiscardRectangles field.public VkPipelineDiscardRectangleStateCreateInfoEXT sType(int value)
sType field.public VkPipelineDiscardRectangleStateCreateInfoEXT pNext(long value)
pNext field.public VkPipelineDiscardRectangleStateCreateInfoEXT flags(int value)
flags field.public VkPipelineDiscardRectangleStateCreateInfoEXT discardRectangleMode(int value)
discardRectangleMode field.public VkPipelineDiscardRectangleStateCreateInfoEXT discardRectangleCount(int value)
discardRectangleCount field.public VkPipelineDiscardRectangleStateCreateInfoEXT pDiscardRectangles(@Nullable VkRect2D.Buffer value)
VkRect2D.Buffer to the pDiscardRectangles field.public VkPipelineDiscardRectangleStateCreateInfoEXT set(int sType, long pNext, int flags, int discardRectangleMode, int discardRectangleCount, @Nullable VkRect2D.Buffer pDiscardRectangles)
public VkPipelineDiscardRectangleStateCreateInfoEXT set(VkPipelineDiscardRectangleStateCreateInfoEXT src)
src - the source structpublic static VkPipelineDiscardRectangleStateCreateInfoEXT malloc()
VkPipelineDiscardRectangleStateCreateInfoEXT instance allocated with memAlloc. The instance must be explicitly freed.public static VkPipelineDiscardRectangleStateCreateInfoEXT calloc()
VkPipelineDiscardRectangleStateCreateInfoEXT instance allocated with memCalloc. The instance must be explicitly freed.public static VkPipelineDiscardRectangleStateCreateInfoEXT create()
VkPipelineDiscardRectangleStateCreateInfoEXT instance allocated with BufferUtils.public static VkPipelineDiscardRectangleStateCreateInfoEXT create(long address)
VkPipelineDiscardRectangleStateCreateInfoEXT instance for the specified memory address.@Nullable public static VkPipelineDiscardRectangleStateCreateInfoEXT createSafe(long address)
public static VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer malloc(int capacity)
VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer calloc(int capacity)
VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer create(int capacity)
VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer create(long address, int capacity)
VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer createSafe(long address, int capacity)
public static VkPipelineDiscardRectangleStateCreateInfoEXT mallocStack()
VkPipelineDiscardRectangleStateCreateInfoEXT instance allocated on the thread-local MemoryStack.public static VkPipelineDiscardRectangleStateCreateInfoEXT callocStack()
VkPipelineDiscardRectangleStateCreateInfoEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPipelineDiscardRectangleStateCreateInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
VkPipelineDiscardRectangleStateCreateInfoEXT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPipelineDiscardRectangleStateCreateInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
VkPipelineDiscardRectangleStateCreateInfoEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer mallocStack(int capacity)
VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer callocStack(int capacity)
VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPipelineDiscardRectangleStateCreateInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPipelineDiscardRectangleStateCreateInfoEXT.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 nflags(long struct)
flags().public static int ndiscardRectangleMode(long struct)
discardRectangleMode().public static int ndiscardRectangleCount(long struct)
discardRectangleCount().@Nullable public static VkRect2D.Buffer npDiscardRectangles(long struct)
pDiscardRectangles().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nflags(long struct,
int value)
flags.public static void ndiscardRectangleMode(long struct,
int value)
discardRectangleMode.public static void ndiscardRectangleCount(long struct,
int value)
discardRectangleCount field of the specified struct.public static void npDiscardRectangles(long struct,
@Nullable
VkRect2D.Buffer value)
pDiscardRectangles.Copyright LWJGL. All Rights Reserved. License terms.