Package org.lwjgl.vulkan
Class VkPipelineViewportStateCreateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPipelineViewportStateCreateInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPipelineViewportStateCreateInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying parameters of a newly created pipeline viewport state.Valid Usage
- If the multiple viewports feature is not enabled,
viewportCountmust be 1 - If the multiple viewports feature is not enabled,
scissorCountmust be 1 viewportCountmust be between 1 andVkPhysicalDeviceLimits::maxViewports, inclusivescissorCountmust be between 1 andVkPhysicalDeviceLimits::maxViewports, inclusivescissorCountandviewportCountmust be identical- If the
viewportWScalingEnablemember of aVkPipelineViewportWScalingStateCreateInfoNVstructure chained to thepNextchain isTRUE, theviewportCountmember of theVkPipelineViewportWScalingStateCreateInfoNVstructure must be equal toviewportCount
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO- Each
pNextmember of any structure (including this one) in thepNextchain must be eitherNULLor a pointer to a valid instance ofVkPipelineViewportCoarseSampleOrderStateCreateInfoNV,VkPipelineViewportExclusiveScissorStateCreateInfoNV,VkPipelineViewportShadingRateImageStateCreateInfoNV,VkPipelineViewportSwizzleStateCreateInfoNV, orVkPipelineViewportWScalingStateCreateInfoNV - Each
sTypemember in thepNextchain must be unique flagsmust be 0viewportCountmust be greater than 0scissorCountmust be greater than 0
See Also
VkGraphicsPipelineCreateInfo,VkRect2D,VkViewportMember documentation
sType– the type of this structure.pNext–NULLor 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 ofVkViewportstructures, 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 ofVkRect2Dstructures which define the rectangular bounds of the scissor for the corresponding viewport. If the scissor state is dynamic, this member is ignored.
Layout
struct VkPipelineViewportStateCreateInfo { VkStructureType sType; void const * pNext; VkPipelineViewportStateCreateFlags flags; uint32_t viewportCount;VkViewportconst * pViewports; uint32_t scissorCount;VkRect2Dconst * pScissors; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPipelineViewportStateCreateInfo.BufferAn array ofVkPipelineViewportStateCreateInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intFLAGS
PNEXT
PSCISSORS
PVIEWPORTS
SCISSORCOUNTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
VIEWPORTCOUNTThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPipelineViewportStateCreateInfo(java.nio.ByteBuffer container)Creates aVkPipelineViewportStateCreateInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPipelineViewportStateCreateInfocalloc()Returns a newVkPipelineViewportStateCreateInfoinstance allocated withmemCalloc.static VkPipelineViewportStateCreateInfo.Buffercalloc(int capacity)Returns a newVkPipelineViewportStateCreateInfo.Bufferinstance allocated withmemCalloc.static VkPipelineViewportStateCreateInfocallocStack()Returns a newVkPipelineViewportStateCreateInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPipelineViewportStateCreateInfo.BuffercallocStack(int capacity)Returns a newVkPipelineViewportStateCreateInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPipelineViewportStateCreateInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineViewportStateCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineViewportStateCreateInfocallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineViewportStateCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineViewportStateCreateInfocreate()Returns a newVkPipelineViewportStateCreateInfoinstance allocated withBufferUtils.static VkPipelineViewportStateCreateInfo.Buffercreate(int capacity)Returns a newVkPipelineViewportStateCreateInfo.Bufferinstance allocated withBufferUtils.static VkPipelineViewportStateCreateInfocreate(long address)Returns a newVkPipelineViewportStateCreateInfoinstance for the specified memory address.static VkPipelineViewportStateCreateInfo.Buffercreate(long address, int capacity)Create aVkPipelineViewportStateCreateInfo.Bufferinstance at the specified memory.static VkPipelineViewportStateCreateInfocreateSafe(long address)static VkPipelineViewportStateCreateInfo.BuffercreateSafe(long address, int capacity)intflags()Returns the value of theflagsfield.VkPipelineViewportStateCreateInfoflags(int value)Sets the specified value to theflagsfield.static VkPipelineViewportStateCreateInfomalloc()Returns a newVkPipelineViewportStateCreateInfoinstance allocated withmemAlloc.static VkPipelineViewportStateCreateInfo.Buffermalloc(int capacity)Returns a newVkPipelineViewportStateCreateInfo.Bufferinstance allocated withmemAlloc.static VkPipelineViewportStateCreateInfomallocStack()Returns a newVkPipelineViewportStateCreateInfoinstance allocated on the thread-localMemoryStack.static VkPipelineViewportStateCreateInfo.BuffermallocStack(int capacity)Returns a newVkPipelineViewportStateCreateInfo.Bufferinstance allocated on the thread-localMemoryStack.static VkPipelineViewportStateCreateInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineViewportStateCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkPipelineViewportStateCreateInfomallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineViewportStateCreateInfoinstance allocated on the specifiedMemoryStack.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static VkRect2D.BuffernpScissors(long struct)Unsafe version ofpScissors().static voidnpScissors(long struct, VkRect2D.Buffer value)Unsafe version ofpScissors.static VkViewport.BuffernpViewports(long struct)Unsafe version ofpViewports().static voidnpViewports(long struct, VkViewport.Buffer value)Unsafe version ofpViewports.static intnscissorCount(long struct)Unsafe version ofscissorCount().static voidnscissorCount(long struct, int value)Sets the specified value to thescissorCountfield of the specifiedstruct.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static intnviewportCount(long struct)Unsafe version ofviewportCount().static voidnviewportCount(long struct, int value)Sets the specified value to theviewportCountfield of the specifiedstruct.longpNext()Returns the value of thepNextfield.VkPipelineViewportStateCreateInfopNext(long value)Sets the specified value to thepNextfield.VkRect2D.BufferpScissors()Returns aVkRect2D.Bufferview of the struct array pointed to by thepScissorsfield.VkPipelineViewportStateCreateInfopScissors(VkRect2D.Buffer value)Sets the address of the specifiedVkRect2D.Bufferto thepScissorsfield.VkViewport.BufferpViewports()Returns aVkViewport.Bufferview of the struct array pointed to by thepViewportsfield.VkPipelineViewportStateCreateInfopViewports(VkViewport.Buffer value)Sets the address of the specifiedVkViewport.Bufferto thepViewportsfield.intscissorCount()Returns the value of thescissorCountfield.VkPipelineViewportStateCreateInfoscissorCount(int value)Sets the specified value to thescissorCountfield.VkPipelineViewportStateCreateInfoset(int sType, long pNext, int flags, int viewportCount, VkViewport.Buffer pViewports, int scissorCount, VkRect2D.Buffer pScissors)Initializes this struct with the specified values.VkPipelineViewportStateCreateInfoset(VkPipelineViewportStateCreateInfo src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkPipelineViewportStateCreateInfosType(int value)Sets the specified value to thesTypefield.intviewportCount()Returns the value of theviewportCountfield.VkPipelineViewportStateCreateInfoviewportCount(int value)Sets the specified value to theviewportCountfield.
-
-
-
Constructor Detail
-
VkPipelineViewportStateCreateInfo
public VkPipelineViewportStateCreateInfo(java.nio.ByteBuffer container)
Creates aVkPipelineViewportStateCreateInfoinstance 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.
-
flags
public int flags()
Returns the value of theflagsfield.
-
viewportCount
public int viewportCount()
Returns the value of theviewportCountfield.
-
pViewports
@Nullable public VkViewport.Buffer pViewports()
Returns aVkViewport.Bufferview of the struct array pointed to by thepViewportsfield.
-
scissorCount
public int scissorCount()
Returns the value of thescissorCountfield.
-
pScissors
@Nullable public VkRect2D.Buffer pScissors()
Returns aVkRect2D.Bufferview of the struct array pointed to by thepScissorsfield.
-
sType
public VkPipelineViewportStateCreateInfo sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPipelineViewportStateCreateInfo pNext(long value)
Sets the specified value to thepNextfield.
-
flags
public VkPipelineViewportStateCreateInfo flags(int value)
Sets the specified value to theflagsfield.
-
viewportCount
public VkPipelineViewportStateCreateInfo viewportCount(int value)
Sets the specified value to theviewportCountfield.
-
pViewports
public VkPipelineViewportStateCreateInfo pViewports(@Nullable VkViewport.Buffer value)
Sets the address of the specifiedVkViewport.Bufferto thepViewportsfield.
-
scissorCount
public VkPipelineViewportStateCreateInfo scissorCount(int value)
Sets the specified value to thescissorCountfield.
-
pScissors
public VkPipelineViewportStateCreateInfo pScissors(@Nullable VkRect2D.Buffer value)
Sets the address of the specifiedVkRect2D.Bufferto thepScissorsfield.
-
set
public VkPipelineViewportStateCreateInfo set(int sType, long pNext, int flags, int viewportCount, @Nullable VkViewport.Buffer pViewports, int scissorCount, @Nullable VkRect2D.Buffer pScissors)
Initializes this struct with the specified values.
-
set
public VkPipelineViewportStateCreateInfo set(VkPipelineViewportStateCreateInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPipelineViewportStateCreateInfo malloc()
Returns a newVkPipelineViewportStateCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPipelineViewportStateCreateInfo calloc()
Returns a newVkPipelineViewportStateCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPipelineViewportStateCreateInfo create()
Returns a newVkPipelineViewportStateCreateInfoinstance allocated withBufferUtils.
-
create
public static VkPipelineViewportStateCreateInfo create(long address)
Returns a newVkPipelineViewportStateCreateInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkPipelineViewportStateCreateInfo createSafe(long address)
-
malloc
public static VkPipelineViewportStateCreateInfo.Buffer malloc(int capacity)
Returns a newVkPipelineViewportStateCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPipelineViewportStateCreateInfo.Buffer calloc(int capacity)
Returns a newVkPipelineViewportStateCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineViewportStateCreateInfo.Buffer create(int capacity)
Returns a newVkPipelineViewportStateCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineViewportStateCreateInfo.Buffer create(long address, int capacity)
Create aVkPipelineViewportStateCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPipelineViewportStateCreateInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPipelineViewportStateCreateInfo mallocStack()
Returns a newVkPipelineViewportStateCreateInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPipelineViewportStateCreateInfo callocStack()
Returns a newVkPipelineViewportStateCreateInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPipelineViewportStateCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportStateCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPipelineViewportStateCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportStateCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkPipelineViewportStateCreateInfo.Buffer mallocStack(int capacity)
Returns a newVkPipelineViewportStateCreateInfo.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPipelineViewportStateCreateInfo.Buffer callocStack(int capacity)
Returns a newVkPipelineViewportStateCreateInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkPipelineViewportStateCreateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportStateCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkPipelineViewportStateCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportStateCreateInfo.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().
-
nflags
public static int nflags(long struct)
Unsafe version offlags().
-
nviewportCount
public static int nviewportCount(long struct)
Unsafe version ofviewportCount().
-
npViewports
@Nullable public static VkViewport.Buffer npViewports(long struct)
Unsafe version ofpViewports().
-
nscissorCount
public static int nscissorCount(long struct)
Unsafe version ofscissorCount().
-
npScissors
@Nullable public static VkRect2D.Buffer npScissors(long struct)
Unsafe version ofpScissors().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nflags
public static void nflags(long struct, int value)Unsafe version offlags.
-
nviewportCount
public static void nviewportCount(long struct, int value)Sets the specified value to theviewportCountfield of the specifiedstruct.
-
npViewports
public static void npViewports(long struct, @Nullable VkViewport.Buffer value)Unsafe version ofpViewports.
-
nscissorCount
public static void nscissorCount(long struct, int value)Sets the specified value to thescissorCountfield of the specifiedstruct.
-
npScissors
public static void npScissors(long struct, @Nullable VkRect2D.Buffer value)Unsafe version ofpScissors.
-
-