public class VkPipelineViewportStateCreateInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
viewportCount must be 1scissorCount must be 1viewportCount must be between 1 and VkPhysicalDeviceLimits::maxViewports, inclusivescissorCount must be between 1 and VkPhysicalDeviceLimits::maxViewports, inclusivescissorCount and viewportCount must be identicalx and y members of offset member of any element of pScissors must be greater than or equal to 0(offset.x + extent.width) must not cause a signed integer addition overflow for any element of pScissors(offset.y + extent.height) must not cause a signed integer addition overflow for any element of pScissorsviewportWScalingEnable member of a VkPipelineViewportWScalingStateCreateInfoNV structure included in the pNext chain is TRUE, the viewportCount member of the VkPipelineViewportWScalingStateCreateInfoNV structure must be equal to viewportCountsType must be STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFOpNext member of any structure (including this one) in the pNext chain must be either NULL or a pointer to a valid instance of VkPipelineViewportCoarseSampleOrderStateCreateInfoNV, VkPipelineViewportExclusiveScissorStateCreateInfoNV, VkPipelineViewportShadingRateImageStateCreateInfoNV, VkPipelineViewportSwizzleStateCreateInfoNV, or VkPipelineViewportWScalingStateCreateInfoNVsType member in the pNext chain must be uniqueflags must be 0viewportCount must be greater than 0scissorCount must be greater than 0VkGraphicsPipelineCreateInfo, VkRect2D, VkViewport
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.flags – reserved for future use.viewportCount – the number of viewports used by the pipeline.pViewports – a pointer to an array of VkViewport structures, defining the viewport transforms. If the viewport state is dynamic, this member is ignored.scissorCount – the number of scissors and must match the number of viewports.pScissors – a pointer to an array of VkRect2D structures defining the rectangular bounds of the scissor for the corresponding viewport. If the scissor state is dynamic, this member is ignored.
struct VkPipelineViewportStateCreateInfo {
VkStructureType sType;
void const * pNext;
VkPipelineViewportStateCreateFlags flags;
uint32_t viewportCount;
VkViewport const * pViewports;
uint32_t scissorCount;
VkRect2D const * pScissors;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPipelineViewportStateCreateInfo.Buffer
An array of
VkPipelineViewportStateCreateInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FLAGS
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
PSCISSORS
The struct member offsets.
|
static int |
PVIEWPORTS
The struct member offsets.
|
static int |
SCISSORCOUNT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
static int |
VIEWPORTCOUNT
The struct member offsets.
|
| Constructor and Description |
|---|
VkPipelineViewportStateCreateInfo(java.nio.ByteBuffer container)
Creates a
VkPipelineViewportStateCreateInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPipelineViewportStateCreateInfo |
calloc()
Returns a new
VkPipelineViewportStateCreateInfo instance allocated with memCalloc. |
static VkPipelineViewportStateCreateInfo.Buffer |
calloc(int capacity)
Returns a new
VkPipelineViewportStateCreateInfo.Buffer instance allocated with memCalloc. |
static VkPipelineViewportStateCreateInfo |
callocStack()
Returns a new
VkPipelineViewportStateCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPipelineViewportStateCreateInfo.Buffer |
callocStack(int capacity)
Returns a new
VkPipelineViewportStateCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPipelineViewportStateCreateInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineViewportStateCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPipelineViewportStateCreateInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineViewportStateCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPipelineViewportStateCreateInfo |
create()
Returns a new
VkPipelineViewportStateCreateInfo instance allocated with BufferUtils. |
static VkPipelineViewportStateCreateInfo.Buffer |
create(int capacity)
Returns a new
VkPipelineViewportStateCreateInfo.Buffer instance allocated with BufferUtils. |
static VkPipelineViewportStateCreateInfo |
create(long address)
Returns a new
VkPipelineViewportStateCreateInfo instance for the specified memory address. |
static VkPipelineViewportStateCreateInfo.Buffer |
create(long address,
int capacity)
Create a
VkPipelineViewportStateCreateInfo.Buffer instance at the specified memory. |
static VkPipelineViewportStateCreateInfo |
createSafe(long address)
|
static VkPipelineViewportStateCreateInfo.Buffer |
createSafe(long address,
int capacity)
|
int |
flags()
Returns the value of the
flags field. |
VkPipelineViewportStateCreateInfo |
flags(int value)
Sets the specified value to the
flags field. |
static VkPipelineViewportStateCreateInfo |
malloc()
Returns a new
VkPipelineViewportStateCreateInfo instance allocated with memAlloc. |
static VkPipelineViewportStateCreateInfo.Buffer |
malloc(int capacity)
Returns a new
VkPipelineViewportStateCreateInfo.Buffer instance allocated with memAlloc. |
static VkPipelineViewportStateCreateInfo |
mallocStack()
Returns a new
VkPipelineViewportStateCreateInfo instance allocated on the thread-local MemoryStack. |
static VkPipelineViewportStateCreateInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkPipelineViewportStateCreateInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkPipelineViewportStateCreateInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineViewportStateCreateInfo.Buffer instance allocated on the specified MemoryStack. |
static VkPipelineViewportStateCreateInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineViewportStateCreateInfo instance allocated on the specified MemoryStack. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static VkRect2D.Buffer |
npScissors(long struct)
Unsafe version of
pScissors(). |
static void |
npScissors(long struct,
VkRect2D.Buffer value)
Unsafe version of
pScissors. |
static VkViewport.Buffer |
npViewports(long struct)
Unsafe version of
pViewports(). |
static void |
npViewports(long struct,
VkViewport.Buffer value)
Unsafe version of
pViewports. |
static int |
nscissorCount(long struct)
Unsafe version of
scissorCount(). |
static void |
nscissorCount(long struct,
int value)
Sets the specified value to the
scissorCount field of the specified struct. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
static int |
nviewportCount(long struct)
Unsafe version of
viewportCount(). |
static void |
nviewportCount(long struct,
int value)
Sets the specified value to the
viewportCount field of the specified struct. |
long |
pNext()
Returns the value of the
pNext field. |
VkPipelineViewportStateCreateInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
VkRect2D.Buffer |
pScissors()
Returns a
VkRect2D.Buffer view of the struct array pointed to by the pScissors field. |
VkPipelineViewportStateCreateInfo |
pScissors(VkRect2D.Buffer value)
Sets the address of the specified
VkRect2D.Buffer to the pScissors field. |
VkViewport.Buffer |
pViewports()
Returns a
VkViewport.Buffer view of the struct array pointed to by the pViewports field. |
VkPipelineViewportStateCreateInfo |
pViewports(VkViewport.Buffer value)
Sets the address of the specified
VkViewport.Buffer to the pViewports field. |
int |
scissorCount()
Returns the value of the
scissorCount field. |
VkPipelineViewportStateCreateInfo |
scissorCount(int value)
Sets the specified value to the
scissorCount field. |
VkPipelineViewportStateCreateInfo |
set(int sType,
long pNext,
int flags,
int viewportCount,
VkViewport.Buffer pViewports,
int scissorCount,
VkRect2D.Buffer pScissors)
Initializes this struct with the specified values.
|
VkPipelineViewportStateCreateInfo |
set(VkPipelineViewportStateCreateInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPipelineViewportStateCreateInfo |
sType(int value)
Sets the specified value to the
sType field. |
int |
viewportCount()
Returns the value of the
viewportCount field. |
VkPipelineViewportStateCreateInfo |
viewportCount(int value)
Sets the specified value to the
viewportCount 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 VIEWPORTCOUNT
public static final int PVIEWPORTS
public static final int SCISSORCOUNT
public static final int PSCISSORS
public VkPipelineViewportStateCreateInfo(java.nio.ByteBuffer container)
VkPipelineViewportStateCreateInfo 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 viewportCount()
viewportCount field.@Nullable public VkViewport.Buffer pViewports()
VkViewport.Buffer view of the struct array pointed to by the pViewports field.public int scissorCount()
scissorCount field.@Nullable public VkRect2D.Buffer pScissors()
VkRect2D.Buffer view of the struct array pointed to by the pScissors field.public VkPipelineViewportStateCreateInfo sType(int value)
sType field.public VkPipelineViewportStateCreateInfo pNext(long value)
pNext field.public VkPipelineViewportStateCreateInfo flags(int value)
flags field.public VkPipelineViewportStateCreateInfo viewportCount(int value)
viewportCount field.public VkPipelineViewportStateCreateInfo pViewports(@Nullable VkViewport.Buffer value)
VkViewport.Buffer to the pViewports field.public VkPipelineViewportStateCreateInfo scissorCount(int value)
scissorCount field.public VkPipelineViewportStateCreateInfo pScissors(@Nullable VkRect2D.Buffer value)
VkRect2D.Buffer to the pScissors field.public VkPipelineViewportStateCreateInfo set(int sType, long pNext, int flags, int viewportCount, @Nullable VkViewport.Buffer pViewports, int scissorCount, @Nullable VkRect2D.Buffer pScissors)
public VkPipelineViewportStateCreateInfo set(VkPipelineViewportStateCreateInfo src)
src - the source structpublic static VkPipelineViewportStateCreateInfo malloc()
VkPipelineViewportStateCreateInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkPipelineViewportStateCreateInfo calloc()
VkPipelineViewportStateCreateInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkPipelineViewportStateCreateInfo create()
VkPipelineViewportStateCreateInfo instance allocated with BufferUtils.public static VkPipelineViewportStateCreateInfo create(long address)
VkPipelineViewportStateCreateInfo instance for the specified memory address.@Nullable public static VkPipelineViewportStateCreateInfo createSafe(long address)
public static VkPipelineViewportStateCreateInfo.Buffer malloc(int capacity)
VkPipelineViewportStateCreateInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPipelineViewportStateCreateInfo.Buffer calloc(int capacity)
VkPipelineViewportStateCreateInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPipelineViewportStateCreateInfo.Buffer create(int capacity)
VkPipelineViewportStateCreateInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPipelineViewportStateCreateInfo.Buffer create(long address, int capacity)
VkPipelineViewportStateCreateInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPipelineViewportStateCreateInfo.Buffer createSafe(long address, int capacity)
public static VkPipelineViewportStateCreateInfo mallocStack()
VkPipelineViewportStateCreateInfo instance allocated on the thread-local MemoryStack.public static VkPipelineViewportStateCreateInfo callocStack()
VkPipelineViewportStateCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPipelineViewportStateCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkPipelineViewportStateCreateInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPipelineViewportStateCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkPipelineViewportStateCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPipelineViewportStateCreateInfo.Buffer mallocStack(int capacity)
VkPipelineViewportStateCreateInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPipelineViewportStateCreateInfo.Buffer callocStack(int capacity)
VkPipelineViewportStateCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPipelineViewportStateCreateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPipelineViewportStateCreateInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPipelineViewportStateCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPipelineViewportStateCreateInfo.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 nviewportCount(long struct)
viewportCount().@Nullable public static VkViewport.Buffer npViewports(long struct)
pViewports().public static int nscissorCount(long struct)
scissorCount().@Nullable public static VkRect2D.Buffer npScissors(long struct)
pScissors().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 nviewportCount(long struct,
int value)
viewportCount field of the specified struct.public static void npViewports(long struct,
@Nullable
VkViewport.Buffer value)
pViewports.public static void nscissorCount(long struct,
int value)
scissorCount field of the specified struct.public static void npScissors(long struct,
@Nullable
VkRect2D.Buffer value)
pScissors.Copyright LWJGL. All Rights Reserved. License terms.