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 the
DYNAMIC_STATE_EXCLUSIVE_SCISSOR_NVdynamic state is enabled for a pipeline, thepExclusiveScissorsmember is ignored.When this structure is included in the
pNextchain ofVkGraphicsPipelineCreateInfo, it defines parameters of the exclusive scissor test. If this structure is not included in thepNextchain, it is equivalent to specifying this structure with aexclusiveScissorCountof 0.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 greater than or equal to theviewportCountmember ofVkPipelineViewportStateCreateInfo
Valid Usage (Implicit)
See Also
Layout
struct VkPipelineViewportExclusiveScissorStateCreateInfoNV { VkStructureTypesType(); void const *pNext(); uint32_texclusiveScissorCount();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 Deprecated 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 VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineViewportExclusiveScissorStateCreateInfoNVcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineViewportExclusiveScissorStateCreateInfoNVcallocStack()Deprecated.static VkPipelineViewportExclusiveScissorStateCreateInfoNV.BuffercallocStack(int capacity)Deprecated.static VkPipelineViewportExclusiveScissorStateCreateInfoNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPipelineViewportExclusiveScissorStateCreateInfoNVcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()the number of exclusive scissor rectangles.VkPipelineViewportExclusiveScissorStateCreateInfoNVexclusiveScissorCount(int value)Sets the specified value to theexclusiveScissorCount()field.static VkPipelineViewportExclusiveScissorStateCreateInfoNVmalloc()Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNVinstance allocated withmemAlloc.static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffermalloc(int capacity)Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV.Bufferinstance allocated withmemAlloc.static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStack.static VkPipelineViewportExclusiveScissorStateCreateInfoNVmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNVinstance allocated on the specifiedMemoryStack.static VkPipelineViewportExclusiveScissorStateCreateInfoNVmallocStack()Deprecated.static VkPipelineViewportExclusiveScissorStateCreateInfoNV.BuffermallocStack(int capacity)Deprecated.static VkPipelineViewportExclusiveScissorStateCreateInfoNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPipelineViewportExclusiveScissorStateCreateInfoNVmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()a pointer to an array ofVkRect2Dstructures defining exclusive scissor rectangles.VkPipelineViewportExclusiveScissorStateCreateInfoNVpExclusiveScissors(VkRect2D.Buffer value)Sets the address of the specifiedVkRect2D.Bufferto thepExclusiveScissors()field.longpNext()NULLor a pointer to a structure extending this structure.VkPipelineViewportExclusiveScissorStateCreateInfoNVpNext(long value)Sets the specified value to thepNext()field.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()the type of this structure.VkPipelineViewportExclusiveScissorStateCreateInfoNVsType(int value)Sets the specified value to thesType()field.VkPipelineViewportExclusiveScissorStateCreateInfoNVsType$Default()Sets theSTRUCTURE_TYPE_PIPELINE_VIEWPORT_EXCLUSIVE_SCISSOR_STATE_CREATE_INFO_NVvalue to thesType()field.
-
-
-
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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
exclusiveScissorCount
public int exclusiveScissorCount()
the number of exclusive scissor rectangles.
-
pExclusiveScissors
@Nullable public VkRect2D.Buffer pExclusiveScissors()
a pointer to an array ofVkRect2Dstructures defining exclusive scissor rectangles.
-
sType
public VkPipelineViewportExclusiveScissorStateCreateInfoNV sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPipelineViewportExclusiveScissorStateCreateInfoNV sType$Default()
Sets theSTRUCTURE_TYPE_PIPELINE_VIEWPORT_EXCLUSIVE_SCISSOR_STATE_CREATE_INFO_NVvalue to thesType()field.
-
pNext
public VkPipelineViewportExclusiveScissorStateCreateInfoNV pNext(long value)
Sets the specified value to thepNext()field.
-
exclusiveScissorCount
public VkPipelineViewportExclusiveScissorStateCreateInfoNV exclusiveScissorCount(int value)
Sets the specified value to theexclusiveScissorCount()field.
-
pExclusiveScissors
public VkPipelineViewportExclusiveScissorStateCreateInfoNV pExclusiveScissors(@Nullable VkRect2D.Buffer value)
Sets the address of the specifiedVkRect2D.Bufferto thepExclusiveScissors()field.
-
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
@Deprecated public static VkPipelineViewportExclusiveScissorStateCreateInfoNV mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPipelineViewportExclusiveScissorStateCreateInfoNV callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPipelineViewportExclusiveScissorStateCreateInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPipelineViewportExclusiveScissorStateCreateInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkPipelineViewportExclusiveScissorStateCreateInfoNV malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPipelineViewportExclusiveScissorStateCreateInfoNV calloc(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
-
malloc
public static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer malloc(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
-
calloc
public static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer calloc(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.
-
-