Package org.lwjgl.vulkan
Class VkPipelineViewportExclusiveScissorStateCreateInfoNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPipelineViewportExclusiveScissorStateCreateInfoNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPipelineViewportExclusiveScissorStateCreateInfoNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying parameters controlling exclusive scissor testing.Description
If this structure is not present,
exclusiveScissorCountis considered to be 0 and the exclusive scissor test is disabled.Valid Usage
- If the multiple viewports feature is not enabled,
exclusiveScissorCountmust be 0 or 1 exclusiveScissorCountmust be less than or equal toVkPhysicalDeviceLimits::maxViewportsexclusiveScissorCountmust be 0 or identical to theviewportCountmember ofVkPipelineViewportStateCreateInfo- If no element of the
pDynamicStatesmember ofpDynamicStateisDYNAMIC_STATE_EXCLUSIVE_SCISSOR_NVandexclusiveScissorCountis not 0,pExclusiveScissorsmust be a valid pointer to an array ofexclusiveScissorCountVkRect2Dstructures
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PIPELINE_VIEWPORT_EXCLUSIVE_SCISSOR_STATE_CREATE_INFO_NV- If
exclusiveScissorCountis not 0, andpExclusiveScissorsis notNULL,pExclusiveScissorsmust be a valid pointer to an array ofexclusiveScissorCountVkRect2Dstructures
See Also
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.exclusiveScissorCount– the number of exclusive scissor rectangles used by the pipeline.pExclusiveScissors– a pointer to an array ofVkRect2Dstructures defining exclusive scissor rectangles. If the exclusive scissor state is dynamic, this member is ignored.
Layout
struct VkPipelineViewportExclusiveScissorStateCreateInfoNV { VkStructureType sType; void const * pNext; uint32_t exclusiveScissorCount;VkRect2Dconst * pExclusiveScissors; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPipelineViewportExclusiveScissorStateCreateInfoNV.BufferAn array ofVkPipelineViewportExclusiveScissorStateCreateInfoNVstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intEXCLUSIVESCISSORCOUNT
PEXCLUSIVESCISSORS
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPipelineViewportExclusiveScissorStateCreateInfoNV(java.nio.ByteBuffer container)Creates aVkPipelineViewportExclusiveScissorStateCreateInfoNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPipelineViewportExclusiveScissorStateCreateInfoNVcalloc()Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNVinstance allocated withmemCalloc.static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffercalloc(int capacity)Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV.Bufferinstance allocated withmemCalloc.static VkPipelineViewportExclusiveScissorStateCreateInfoNVcallocStack()Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPipelineViewportExclusiveScissorStateCreateInfoNV.BuffercallocStack(int capacity)Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPipelineViewportExclusiveScissorStateCreateInfoNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineViewportExclusiveScissorStateCreateInfoNVcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineViewportExclusiveScissorStateCreateInfoNVcreate()Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNVinstance allocated withBufferUtils.static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffercreate(int capacity)Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV.Bufferinstance allocated withBufferUtils.static VkPipelineViewportExclusiveScissorStateCreateInfoNVcreate(long address)Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNVinstance for the specified memory address.static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffercreate(long address, int capacity)Create aVkPipelineViewportExclusiveScissorStateCreateInfoNV.Bufferinstance at the specified memory.static VkPipelineViewportExclusiveScissorStateCreateInfoNVcreateSafe(long address)static VkPipelineViewportExclusiveScissorStateCreateInfoNV.BuffercreateSafe(long address, int capacity)intexclusiveScissorCount()Returns the value of theexclusiveScissorCountfield.VkPipelineViewportExclusiveScissorStateCreateInfoNVexclusiveScissorCount(int value)Sets the specified value to theexclusiveScissorCountfield.static VkPipelineViewportExclusiveScissorStateCreateInfoNVmalloc()Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNVinstance allocated withmemAlloc.static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffermalloc(int capacity)Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV.Bufferinstance allocated withmemAlloc.static VkPipelineViewportExclusiveScissorStateCreateInfoNVmallocStack()Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNVinstance allocated on the thread-localMemoryStack.static VkPipelineViewportExclusiveScissorStateCreateInfoNV.BuffermallocStack(int capacity)Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV.Bufferinstance allocated on the thread-localMemoryStack.static VkPipelineViewportExclusiveScissorStateCreateInfoNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStack.static VkPipelineViewportExclusiveScissorStateCreateInfoNVmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNVinstance allocated on the specifiedMemoryStack.static intnexclusiveScissorCount(long struct)Unsafe version ofexclusiveScissorCount().static voidnexclusiveScissorCount(long struct, int value)Sets the specified value to theexclusiveScissorCountfield of the specifiedstruct.static VkRect2D.BuffernpExclusiveScissors(long struct)Unsafe version ofpExclusiveScissors().static voidnpExclusiveScissors(long struct, VkRect2D.Buffer value)Unsafe version ofpExclusiveScissors.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.VkRect2D.BufferpExclusiveScissors()Returns aVkRect2D.Bufferview of the struct array pointed to by thepExclusiveScissorsfield.VkPipelineViewportExclusiveScissorStateCreateInfoNVpExclusiveScissors(VkRect2D.Buffer value)Sets the address of the specifiedVkRect2D.Bufferto thepExclusiveScissorsfield.longpNext()Returns the value of thepNextfield.VkPipelineViewportExclusiveScissorStateCreateInfoNVpNext(long value)Sets the specified value to thepNextfield.VkPipelineViewportExclusiveScissorStateCreateInfoNVset(int sType, long pNext, int exclusiveScissorCount, VkRect2D.Buffer pExclusiveScissors)Initializes this struct with the specified values.VkPipelineViewportExclusiveScissorStateCreateInfoNVset(VkPipelineViewportExclusiveScissorStateCreateInfoNV src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkPipelineViewportExclusiveScissorStateCreateInfoNVsType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkPipelineViewportExclusiveScissorStateCreateInfoNV
public VkPipelineViewportExclusiveScissorStateCreateInfoNV(java.nio.ByteBuffer container)
Creates aVkPipelineViewportExclusiveScissorStateCreateInfoNVinstance 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.
-
exclusiveScissorCount
public int exclusiveScissorCount()
Returns the value of theexclusiveScissorCountfield.
-
pExclusiveScissors
@Nullable public VkRect2D.Buffer pExclusiveScissors()
Returns aVkRect2D.Bufferview of the struct array pointed to by thepExclusiveScissorsfield.
-
sType
public VkPipelineViewportExclusiveScissorStateCreateInfoNV sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPipelineViewportExclusiveScissorStateCreateInfoNV pNext(long value)
Sets the specified value to thepNextfield.
-
exclusiveScissorCount
public VkPipelineViewportExclusiveScissorStateCreateInfoNV exclusiveScissorCount(int value)
Sets the specified value to theexclusiveScissorCountfield.
-
pExclusiveScissors
public VkPipelineViewportExclusiveScissorStateCreateInfoNV pExclusiveScissors(@Nullable VkRect2D.Buffer value)
Sets the address of the specifiedVkRect2D.Bufferto thepExclusiveScissorsfield.
-
set
public VkPipelineViewportExclusiveScissorStateCreateInfoNV set(int sType, long pNext, int exclusiveScissorCount, @Nullable VkRect2D.Buffer pExclusiveScissors)
Initializes this struct with the specified values.
-
set
public VkPipelineViewportExclusiveScissorStateCreateInfoNV set(VkPipelineViewportExclusiveScissorStateCreateInfoNV src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPipelineViewportExclusiveScissorStateCreateInfoNV malloc()
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPipelineViewportExclusiveScissorStateCreateInfoNV calloc()
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPipelineViewportExclusiveScissorStateCreateInfoNV create()
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNVinstance allocated withBufferUtils.
-
create
public static VkPipelineViewportExclusiveScissorStateCreateInfoNV create(long address)
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkPipelineViewportExclusiveScissorStateCreateInfoNV createSafe(long address)
-
malloc
public static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer malloc(int capacity)
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer calloc(int capacity)
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer create(int capacity)
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer create(long address, int capacity)
Create aVkPipelineViewportExclusiveScissorStateCreateInfoNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPipelineViewportExclusiveScissorStateCreateInfoNV mallocStack()
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNVinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPipelineViewportExclusiveScissorStateCreateInfoNV callocStack()
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPipelineViewportExclusiveScissorStateCreateInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPipelineViewportExclusiveScissorStateCreateInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer mallocStack(int capacity)
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer callocStack(int capacity)
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV.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().
-
nexclusiveScissorCount
public static int nexclusiveScissorCount(long struct)
Unsafe version ofexclusiveScissorCount().
-
npExclusiveScissors
@Nullable public static VkRect2D.Buffer npExclusiveScissors(long struct)
Unsafe version ofpExclusiveScissors().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nexclusiveScissorCount
public static void nexclusiveScissorCount(long struct, int value)Sets the specified value to theexclusiveScissorCountfield of the specifiedstruct.
-
npExclusiveScissors
public static void npExclusiveScissors(long struct, @Nullable VkRect2D.Buffer value)Unsafe version ofpExclusiveScissors.
-
-