Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkPipelineViewportStateCreateInfo

extends Struct<VkPipelineViewportStateCreateInfo>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Structure specifying parameters of a newly created pipeline viewport state.
Valid Usage
Valid Usage (Implicit)
See Also

VkGraphicsPipelineCreateInfo, VkRect2D, VkViewport

Layout


struct VkPipelineViewportStateCreateInfo {
    VkStructureType sType;
    void const * pNext;
    VkPipelineViewportStateCreateFlags flags;
    uint32_t viewportCount;
    VkViewport const * pViewports;
    uint32_t scissorCount;
    VkRect2D const * pScissors;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
FLAGS

The struct member offsets.

public static final int
PNEXT

The struct member offsets.

public static final int
PSCISSORS

The struct member offsets.

public static final int
PVIEWPORTS

The struct member offsets.

public static final int
SCISSORCOUNT

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
STYPE

The struct member offsets.

public static final int
VIEWPORTCOUNT

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
public
VkPipelineViewportStateCreateInfo(ByteBuffer container)

Creates a VkPipelineViewportStateCreateInfo instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static VkPipelineViewportStateCreateInfo
calloc()

Returns a new VkPipelineViewportStateCreateInfo instance allocated with memCalloc.

public static VkPipelineViewportStateCreateInfo.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new VkPipelineViewportStateCreateInfo.Buffer instance allocated with memCalloc.

public static VkPipelineViewportStateCreateInfo
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkPipelineViewportStateCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkPipelineViewportStateCreateInfo.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkPipelineViewportStateCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkPipelineViewportStateCreateInfo
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static VkPipelineViewportStateCreateInfo
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static VkPipelineViewportStateCreateInfo.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static VkPipelineViewportStateCreateInfo.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected VkPipelineViewportStateCreateInfo
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static VkPipelineViewportStateCreateInfo
create()

Returns a new VkPipelineViewportStateCreateInfo instance allocated with BufferUtils.

public static VkPipelineViewportStateCreateInfo
create(long address)

Returns a new VkPipelineViewportStateCreateInfo instance for the specified memory address.

public static VkPipelineViewportStateCreateInfo.Buffer
create(int
the buffer capacity
capacity
)

Returns a new VkPipelineViewportStateCreateInfo.Buffer instance allocated with BufferUtils.

public static VkPipelineViewportStateCreateInfo.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a VkPipelineViewportStateCreateInfo.Buffer instance at the specified memory.

public static VkPipelineViewportStateCreateInfo
createSafe(long address)

Like create, but returns null if address is NULL.

public static VkPipelineViewportStateCreateInfo.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public int
flags()

reserved for future use.

public VkPipelineViewportStateCreateInfo
flags(int value)

Sets the specified value to the flags field.

public static VkPipelineViewportStateCreateInfo
malloc()

Returns a new VkPipelineViewportStateCreateInfo instance allocated with memAlloc.

public static VkPipelineViewportStateCreateInfo.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new VkPipelineViewportStateCreateInfo.Buffer instance allocated with memAlloc.

public static VkPipelineViewportStateCreateInfo
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkPipelineViewportStateCreateInfo instance allocated on the specified MemoryStack.

public static VkPipelineViewportStateCreateInfo.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkPipelineViewportStateCreateInfo.Buffer instance allocated on the specified MemoryStack.

public static VkPipelineViewportStateCreateInfo
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static VkPipelineViewportStateCreateInfo
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static VkPipelineViewportStateCreateInfo.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static VkPipelineViewportStateCreateInfo.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static int
nflags(long struct)

Unsafe version of flags.

public static void
nflags(long struct, int value)

Unsafe version of flags.

public static long
npNext(long struct)

Unsafe version of pNext.

public static void
npNext(long struct, long value)

Unsafe version of pNext.

public static VkRect2D.Buffer
npScissors(long struct)

Unsafe version of pScissors.

public static void
npScissors(long struct, VkRect2D.Buffer value)

Unsafe version of pScissors.

public static VkViewport.Buffer
npViewports(long struct)

Unsafe version of pViewports.

public static void
npViewports(long struct, VkViewport.Buffer value)

Unsafe version of pViewports.

public static int
nscissorCount(long struct)

Unsafe version of scissorCount.

public static void
nscissorCount(long struct, int value)

Sets the specified value to the scissorCount field of the specified struct.

public static int
nsType(long struct)

Unsafe version of sType.

public static void
nsType(long struct, int value)

Unsafe version of sType.

public static int
nviewportCount(long struct)

Unsafe version of viewportCount.

public static void
nviewportCount(long struct, int value)

Sets the specified value to the viewportCount field of the specified struct.

public long
pNext()

NULL or a pointer to a structure extending this structure.

public VkPipelineViewportStateCreateInfo
pNext(long value)

Sets the specified value to the pNext field.

public VkPipelineViewportStateCreateInfo
public VkPipelineViewportStateCreateInfo
public VkPipelineViewportStateCreateInfo
public VkPipelineViewportStateCreateInfo
public VkPipelineViewportStateCreateInfo
public VkPipelineViewportStateCreateInfo
public VkRect2D.Buffer
pScissors()

a pointer to an array of VkRect2D structures defining the rectangular bounds of the scissor for the corresponding viewport.

public VkPipelineViewportStateCreateInfo
pScissors(VkRect2D.Buffer value)

Sets the address of the specified VkRect2D.Buffer to the pScissors field.

public VkViewport.Buffer
pViewports()

a pointer to an array of VkViewport structures, defining the viewport transforms.

public VkPipelineViewportStateCreateInfo
pViewports(VkViewport.Buffer value)

Sets the address of the specified VkViewport.Buffer to the pViewports field.

public int
scissorCount()

the number of scissors and must match the number of viewports.

public VkPipelineViewportStateCreateInfo
scissorCount(int value)

Sets the specified value to the scissorCount field.

public 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.

public VkPipelineViewportStateCreateInfo

Returns:

this struct
set
(VkPipelineViewportStateCreateInfo
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int
sType()

a VkStructureType value identifying this structure.

public VkPipelineViewportStateCreateInfo
sType(int value)

Sets the specified value to the sType field.

public VkPipelineViewportStateCreateInfo
public int
viewportCount()

the number of viewports used by the pipeline.

public VkPipelineViewportStateCreateInfo
viewportCount(int value)

Sets the specified value to the viewportCount field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate