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.NativeResource
Structure specifying parameters controlling exclusive scissor testing.Description
If this structure is not present,
exclusiveScissorCount
is considered to be 0 and the exclusive scissor test is disabled.Valid Usage
- If the multiple viewports feature is not enabled,
exclusiveScissorCount
must be 0 or 1 exclusiveScissorCount
must be less than or equal toVkPhysicalDeviceLimits
::maxViewports
exclusiveScissorCount
must be 0 or identical to theviewportCount
member ofVkPipelineViewportStateCreateInfo
- If no element of the
pDynamicStates
member ofpDynamicState
isDYNAMIC_STATE_EXCLUSIVE_SCISSOR_NV
andexclusiveScissorCount
is not 0,pExclusiveScissors
must be a valid pointer to an array ofexclusiveScissorCount
VkRect2D
structures
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_PIPELINE_VIEWPORT_EXCLUSIVE_SCISSOR_STATE_CREATE_INFO_NV
- If
exclusiveScissorCount
is not 0, andpExclusiveScissors
is notNULL
,pExclusiveScissors
must be a valid pointer to an array ofexclusiveScissorCount
VkRect2D
structures
See Also
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.exclusiveScissorCount
– the number of exclusive scissor rectangles used by the pipeline.pExclusiveScissors
– a pointer to an array ofVkRect2D
structures 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;
VkRect2D
const * pExclusiveScissors; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer
An array ofVkPipelineViewportExclusiveScissorStateCreateInfoNV
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
EXCLUSIVESCISSORCOUNT
PEXCLUSIVESCISSORS
PNEXTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPipelineViewportExclusiveScissorStateCreateInfoNV(java.nio.ByteBuffer container)
Creates aVkPipelineViewportExclusiveScissorStateCreateInfoNV
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 VkPipelineViewportExclusiveScissorStateCreateInfoNV
calloc()
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV
instance allocated withmemCalloc
.static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer
calloc(int capacity)
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer
instance allocated withmemCalloc
.static VkPipelineViewportExclusiveScissorStateCreateInfoNV
callocStack()
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer
callocStack(int capacity)
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPipelineViewportExclusiveScissorStateCreateInfoNV
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPipelineViewportExclusiveScissorStateCreateInfoNV
create()
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV
instance allocated withBufferUtils
.static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer
create(int capacity)
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer
instance allocated withBufferUtils
.static VkPipelineViewportExclusiveScissorStateCreateInfoNV
create(long address)
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV
instance for the specified memory address.static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer
create(long address, int capacity)
Create aVkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer
instance at the specified memory.static VkPipelineViewportExclusiveScissorStateCreateInfoNV
createSafe(long address)
static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer
createSafe(long address, int capacity)
int
exclusiveScissorCount()
Returns the value of theexclusiveScissorCount
field.VkPipelineViewportExclusiveScissorStateCreateInfoNV
exclusiveScissorCount(int value)
Sets the specified value to theexclusiveScissorCount
field.static VkPipelineViewportExclusiveScissorStateCreateInfoNV
malloc()
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV
instance allocated withmemAlloc
.static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer
malloc(int capacity)
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer
instance allocated withmemAlloc
.static VkPipelineViewportExclusiveScissorStateCreateInfoNV
mallocStack()
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV
instance allocated on the thread-localMemoryStack
.static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer
mallocStack(int capacity)
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer
instance allocated on the thread-localMemoryStack
.static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer
instance allocated on the specifiedMemoryStack
.static VkPipelineViewportExclusiveScissorStateCreateInfoNV
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV
instance allocated on the specifiedMemoryStack
.static int
nexclusiveScissorCount(long struct)
Unsafe version ofexclusiveScissorCount()
.static void
nexclusiveScissorCount(long struct, int value)
Sets the specified value to theexclusiveScissorCount
field of the specifiedstruct
.static VkRect2D.Buffer
npExclusiveScissors(long struct)
Unsafe version ofpExclusiveScissors()
.static void
npExclusiveScissors(long struct, VkRect2D.Buffer value)
Unsafe version ofpExclusiveScissors
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.VkRect2D.Buffer
pExclusiveScissors()
Returns aVkRect2D.Buffer
view of the struct array pointed to by thepExclusiveScissors
field.VkPipelineViewportExclusiveScissorStateCreateInfoNV
pExclusiveScissors(VkRect2D.Buffer value)
Sets the address of the specifiedVkRect2D.Buffer
to thepExclusiveScissors
field.long
pNext()
Returns the value of thepNext
field.VkPipelineViewportExclusiveScissorStateCreateInfoNV
pNext(long value)
Sets the specified value to thepNext
field.VkPipelineViewportExclusiveScissorStateCreateInfoNV
set(int sType, long pNext, int exclusiveScissorCount, VkRect2D.Buffer pExclusiveScissors)
Initializes this struct with the specified values.VkPipelineViewportExclusiveScissorStateCreateInfoNV
set(VkPipelineViewportExclusiveScissorStateCreateInfoNV src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkPipelineViewportExclusiveScissorStateCreateInfoNV
sType(int value)
Sets the specified value to thesType
field.
-
-
-
Constructor Detail
-
VkPipelineViewportExclusiveScissorStateCreateInfoNV
public VkPipelineViewportExclusiveScissorStateCreateInfoNV(java.nio.ByteBuffer container)
Creates aVkPipelineViewportExclusiveScissorStateCreateInfoNV
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
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
exclusiveScissorCount
public int exclusiveScissorCount()
Returns the value of theexclusiveScissorCount
field.
-
pExclusiveScissors
@Nullable public VkRect2D.Buffer pExclusiveScissors()
Returns aVkRect2D.Buffer
view of the struct array pointed to by thepExclusiveScissors
field.
-
sType
public VkPipelineViewportExclusiveScissorStateCreateInfoNV sType(int value)
Sets the specified value 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.Buffer
to 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 newVkPipelineViewportExclusiveScissorStateCreateInfoNV
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPipelineViewportExclusiveScissorStateCreateInfoNV calloc()
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPipelineViewportExclusiveScissorStateCreateInfoNV create()
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV
instance allocated withBufferUtils
.
-
create
public static VkPipelineViewportExclusiveScissorStateCreateInfoNV create(long address)
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV
instance for the specified memory address.
-
createSafe
@Nullable public static VkPipelineViewportExclusiveScissorStateCreateInfoNV createSafe(long address)
-
malloc
public static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer malloc(int capacity)
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer calloc(int capacity)
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer create(int capacity)
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer create(long address, int capacity)
Create aVkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer
instance 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 newVkPipelineViewportExclusiveScissorStateCreateInfoNV
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPipelineViewportExclusiveScissorStateCreateInfoNV callocStack()
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPipelineViewportExclusiveScissorStateCreateInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPipelineViewportExclusiveScissorStateCreateInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer callocStack(int capacity)
Returns a newVkPipelineViewportExclusiveScissorStateCreateInfoNV.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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 theexclusiveScissorCount
field of the specifiedstruct
.
-
npExclusiveScissors
public static void npExclusiveScissors(long struct, @Nullable VkRect2D.Buffer value)
Unsafe version ofpExclusiveScissors
.
-
-