Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkSubpassDescription2

extends Struct<VkSubpassDescription2>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Known Direct Subclasses
org.lwjgl.vulkan.VkSubpassDescription2KHR
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Structure specifying a subpass description.
Description

Parameters defined by this structure with the same name as those in VkSubpassDescription have the identical effect to those parameters.

viewMask has the same effect for the described subpass as VkRenderPassMultiviewCreateInfo::pViewMasks has on each corresponding subpass.

If a VkFragmentShadingRateAttachmentInfoKHR structure is included in the pNext chain, pFragmentShadingRateAttachment is not NULL, and its attachment member is not ATTACHMENT_UNUSED, the identified attachment defines a fragment shading rate attachment for that subpass.

Valid Usage
Valid Usage (Implicit)
See Also

VkAttachmentReference2, VkRenderPassCreateInfo2

Layout


struct VkSubpassDescription2 {
    VkStructureType sType;
    void const * pNext;
    VkSubpassDescriptionFlags flags;
    VkPipelineBindPoint pipelineBindPoint;
    uint32_t viewMask;
    uint32_t inputAttachmentCount;
    VkAttachmentReference2 const * pInputAttachments;
    uint32_t colorAttachmentCount;
    VkAttachmentReference2 const * pColorAttachments;
    VkAttachmentReference2 const * pResolveAttachments;
    VkAttachmentReference2 const * pDepthStencilAttachment;
    uint32_t preserveAttachmentCount;
    uint32_t const * pPreserveAttachments;
}

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
COLORATTACHMENTCOUNT

The struct member offsets.

public static final int
FLAGS

The struct member offsets.

public static final int
INPUTATTACHMENTCOUNT

The struct member offsets.

public static final int
PCOLORATTACHMENTS

The struct member offsets.

public static final int
PDEPTHSTENCILATTACHMENT

The struct member offsets.

public static final int
PINPUTATTACHMENTS

The struct member offsets.

public static final int
PIPELINEBINDPOINT

The struct member offsets.

public static final int
PNEXT

The struct member offsets.

public static final int
PPRESERVEATTACHMENTS

The struct member offsets.

public static final int
PRESERVEATTACHMENTCOUNT

The struct member offsets.

public static final int
PRESOLVEATTACHMENTS

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
VIEWMASK

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
VkSubpassDescription2(long address, ByteBuffer container)

public
VkSubpassDescription2(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public static VkSubpassDescription2
calloc()

Returns a new VkSubpassDescription2 instance allocated with memCalloc.

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

Returns a new VkSubpassDescription2.Buffer instance allocated with memCalloc.

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

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

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

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

public int
colorAttachmentCount()

the number of color attachments.

public VkSubpassDescription2
colorAttachmentCount(int value)

Sets the specified value to the colorAttachmentCount field.

protected VkSubpassDescription2
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 VkSubpassDescription2
create()

Returns a new VkSubpassDescription2 instance allocated with BufferUtils.

public static VkSubpassDescription2
create(long address)

Returns a new VkSubpassDescription2 instance for the specified memory address.

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

Returns a new VkSubpassDescription2.Buffer instance allocated with BufferUtils.

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

Create a VkSubpassDescription2.Buffer instance at the specified memory.

public static VkSubpassDescription2
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public int
flags()

a bitmask of VkSubpassDescriptionFlagBits specifying usage of the subpass.

public VkSubpassDescription2
flags(int value)

Sets the specified value to the flags field.

public int
inputAttachmentCount()

the number of input attachments.

public static VkSubpassDescription2
malloc()

Returns a new VkSubpassDescription2 instance allocated with memAlloc.

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

Returns a new VkSubpassDescription2.Buffer instance allocated with memAlloc.

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

Returns a new VkSubpassDescription2 instance allocated on the specified MemoryStack.

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

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

public static int
ncolorAttachmentCount(long struct)

Unsafe version of colorAttachmentCount.

public static void
ncolorAttachmentCount(long struct, int value)

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

public static int
nflags(long struct)

Unsafe version of flags.

public static void
nflags(long struct, int value)

Unsafe version of flags.

public static int
ninputAttachmentCount(long struct)

Unsafe version of inputAttachmentCount.

public static void
ninputAttachmentCount(long struct, int value)

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

public static VkAttachmentReference2.Buffer
npColorAttachments(long struct)

Unsafe version of pColorAttachments.

public static void
npColorAttachments(long struct, VkAttachmentReference2.Buffer value)

Unsafe version of pColorAttachments.

public static VkAttachmentReference2
npDepthStencilAttachment(long struct)

Unsafe version of pDepthStencilAttachment.

public static void
public static VkAttachmentReference2.Buffer
npInputAttachments(long struct)

Unsafe version of pInputAttachments.

public static void
npInputAttachments(long struct, VkAttachmentReference2.Buffer value)

Unsafe version of pInputAttachments.

public static int
npipelineBindPoint(long struct)

Unsafe version of pipelineBindPoint.

public static void
npipelineBindPoint(long struct, int value)

Unsafe version of pipelineBindPoint.

public static long
npNext(long struct)

Unsafe version of pNext.

public static void
npNext(long struct, long value)

Unsafe version of pNext.

public static IntBuffer
npPreserveAttachments(long struct)

Unsafe version of pPreserveAttachments.

public static void
npPreserveAttachments(long struct, IntBuffer value)

Unsafe version of pPreserveAttachments.

public static int
npreserveAttachmentCount(long struct)

Unsafe version of preserveAttachmentCount.

public static void
npreserveAttachmentCount(long struct, int value)

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

public static VkAttachmentReference2.Buffer
npResolveAttachments(long struct)

Unsafe version of pResolveAttachments.

public static void
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
nviewMask(long struct)

Unsafe version of viewMask.

public static void
nviewMask(long struct, int value)

Unsafe version of viewMask.

public VkAttachmentReference2.Buffer
pColorAttachments()

a pointer to an array of colorAttachmentCount VkAttachmentReference2 structures defining the color attachments for this subpass and their layouts.

public VkSubpassDescription2
public VkAttachmentReference2
pDepthStencilAttachment()

a pointer to a VkAttachmentReference2 structure specifying the depth/stencil attachment for this subpass and its layout.

public VkSubpassDescription2
public VkAttachmentReference2.Buffer
pInputAttachments()

a pointer to an array of VkAttachmentReference2 structures defining the input attachments for this subpass and their layouts.

public VkSubpassDescription2
public int
pipelineBindPoint()

a VkPipelineBindPoint value specifying the pipeline type supported for this subpass.

public VkSubpassDescription2
pipelineBindPoint(int value)

Sets the specified value to the pipelineBindPoint field.

public long
pNext()

NULL or a pointer to a structure extending this structure.

public VkSubpassDescription2
pNext(long value)

Sets the specified value to the pNext field.

public VkSubpassDescription2
pNext(VkFragmentShadingRateAttachmentInfoKHR value)

Prepends the specified VkFragmentShadingRateAttachmentInfoKHR value to the pNext chain.

public VkSubpassDescription2
public VkSubpassDescription2
pNext(VkRenderPassCreationControlEXT value)

Prepends the specified VkRenderPassCreationControlEXT value to the pNext chain.

public VkSubpassDescription2
pNext(VkRenderPassSubpassFeedbackCreateInfoEXT value)

Prepends the specified VkRenderPassSubpassFeedbackCreateInfoEXT value to the pNext chain.

public VkSubpassDescription2
pNext(VkSubpassDescriptionDepthStencilResolve value)

Prepends the specified VkSubpassDescriptionDepthStencilResolve value to the pNext chain.

public VkSubpassDescription2
public IntBuffer
pPreserveAttachments()

a pointer to an array of preserveAttachmentCount render pass attachment indices identifying attachments that are not used by this subpass, but whose contents must be preserved throughout the subpass.

public VkSubpassDescription2
pPreserveAttachments(IntBuffer value)

Sets the address of the specified IntBuffer to the pPreserveAttachments field.

public int
preserveAttachmentCount()

the number of preserved attachments.

public VkAttachmentReference2.Buffer
pResolveAttachments()

NULL or a pointer to an array of colorAttachmentCount VkAttachmentReference2 structures defining the resolve attachments for this subpass and their layouts.

public VkSubpassDescription2
public VkSubpassDescription2
set(int sType, long pNext, int flags, int pipelineBindPoint, int viewMask, VkAttachmentReference2.Buffer pInputAttachments, int colorAttachmentCount, VkAttachmentReference2.Buffer pColorAttachments, VkAttachmentReference2.Buffer pResolveAttachments, VkAttachmentReference2 pDepthStencilAttachment, IntBuffer pPreserveAttachments)

Initializes this struct with the specified values.

public VkSubpassDescription2

Returns:

this struct
set
(VkSubpassDescription2
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 VkSubpassDescription2
sType(int value)

Sets the specified value to the sType field.

public VkSubpassDescription2
public static void
validate(long
the struct to validate
struct
)

Validates pointer members that should not be NULL.

public int
viewMask()

a bitfield of view indices describing which views rendering is broadcast to in this subpass, when multiview is enabled.

public VkSubpassDescription2
viewMask(int value)

Sets the specified value to the viewMask field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate