Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkRenderPassBeginInfo

extends Struct<VkRenderPassBeginInfo>
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 render pass begin information.
Description

renderArea is the render area that is affected by the render pass instance. The effects of attachment load, store and multisample resolve operations are restricted to the pixels whose x and y coordinates fall within the render area on all attachments. The render area extends to all layers of framebuffer. The application must ensure (using scissor if necessary) that all rendering is contained within the render area. The render area, after any transform specified by VkRenderPassTransformBeginInfoQCOM::transform is applied, must be contained within the framebuffer dimensions.

If render pass transform is enabled, then renderArea must equal the framebuffer pre-transformed dimensions. After renderArea has been transformed by VkRenderPassTransformBeginInfoQCOM::transform, the resulting render area must be equal to the framebuffer dimensions.

If multiview is enabled in renderPass, and multiviewPerViewRenderAreas feature is enabled, and there is an instance of VkMultiviewPerViewRenderAreasRenderPassBeginInfoQCOM included in the pNext chain with perViewRenderAreaCount not equal to 0, then the elements of VkMultiviewPerViewRenderAreasRenderPassBeginInfoQCOM::pPerViewRenderAreas override renderArea and define a render area for each view. In this case, renderArea must be set to an area at least as large as the union of all the per-view render areas.

If the subpassShading feature is enabled, then renderArea must equal the framebuffer dimensions.

Note

There may be a performance cost for using a render area smaller than the framebuffer, unless it matches the render area granularity for the render pass.

Valid Usage
Valid Usage (Implicit)
See Also

VkClearValue, VkRect2D, CmdBeginRenderPass, CmdBeginRenderPass2, CmdBeginRenderPass2KHR

Layout


struct VkRenderPassBeginInfo {
    VkStructureType sType;
    void const * pNext;
    VkRenderPass renderPass;
    VkFramebuffer framebuffer;
    VkRect2D renderArea;
    uint32_t clearValueCount;
    VkClearValue const * pClearValues;
}

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
CLEARVALUECOUNT

The struct member offsets.

public static final int
FRAMEBUFFER

The struct member offsets.

public static final int
PCLEARVALUES

The struct member offsets.

public static final int
PNEXT

The struct member offsets.

public static final int
RENDERAREA

The struct member offsets.

public static final int
RENDERPASS

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
STYPE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
VkRenderPassBeginInfo(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public static VkRenderPassBeginInfo
calloc()

Returns a new VkRenderPassBeginInfo instance allocated with memCalloc.

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

Returns a new VkRenderPassBeginInfo.Buffer instance allocated with memCalloc.

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

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

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

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

public static VkRenderPassBeginInfo
callocStack()

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

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

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

Deprecated
Deprecated for removal in 3.4.0.
public int
clearValueCount()

the number of elements in pClearValues.

public VkRenderPassBeginInfo
clearValueCount(int value)

Sets the specified value to the clearValueCount field.

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

Returns a new VkRenderPassBeginInfo instance allocated with BufferUtils.

public static VkRenderPassBeginInfo
create(long address)

Returns a new VkRenderPassBeginInfo instance for the specified memory address.

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

Returns a new VkRenderPassBeginInfo.Buffer instance allocated with BufferUtils.

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

Create a VkRenderPassBeginInfo.Buffer instance at the specified memory.

public static VkRenderPassBeginInfo
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public long
framebuffer()

the framebuffer containing the attachments that are used with the render pass.

public VkRenderPassBeginInfo
framebuffer(long value)

Sets the specified value to the framebuffer field.

public static VkRenderPassBeginInfo
malloc()

Returns a new VkRenderPassBeginInfo instance allocated with memAlloc.

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

Returns a new VkRenderPassBeginInfo.Buffer instance allocated with memAlloc.

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

Returns a new VkRenderPassBeginInfo instance allocated on the specified MemoryStack.

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

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

public static VkRenderPassBeginInfo
mallocStack()

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

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

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

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

Unsafe version of clearValueCount.

public static void
nclearValueCount(long struct, int value)

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

public static long
nframebuffer(long struct)

Unsafe version of framebuffer.

public static void
nframebuffer(long struct, long value)

Unsafe version of framebuffer.

public static VkClearValue.Buffer
npClearValues(long struct)

Unsafe version of pClearValues.

public static void
npClearValues(long struct, VkClearValue.Buffer value)

Unsafe version of pClearValues.

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
nrenderArea(long struct)

Unsafe version of renderArea.

public static void
nrenderArea(long struct, VkRect2D value)

Unsafe version of renderArea.

public static long
nrenderPass(long struct)

Unsafe version of renderPass.

public static void
nrenderPass(long struct, long value)

Unsafe version of renderPass.

public static int
nsType(long struct)

Unsafe version of sType.

public static void
nsType(long struct, int value)

Unsafe version of sType.

public VkClearValue.Buffer
pClearValues()

a pointer to an array of clearValueCount VkClearValue structures containing clear values for each attachment, if the attachment uses a loadOp value of ATTACHMENT_LOAD_OP_CLEAR or if the attachment has a depth/stencil format and uses a stencilLoadOp value of ATTACHMENT_LOAD_OP_CLEAR.

public VkRenderPassBeginInfo
pClearValues(VkClearValue.Buffer value)

Sets the address of the specified VkClearValue.Buffer to the pClearValues field.

public long
pNext()

NULL or a pointer to a structure extending this structure.

public VkRenderPassBeginInfo
pNext(long value)

Sets the specified value to the pNext field.

public VkRenderPassBeginInfo
pNext(VkDeviceGroupRenderPassBeginInfo value)

Prepends the specified VkDeviceGroupRenderPassBeginInfo value to the pNext chain.

public VkRenderPassBeginInfo
pNext(VkDeviceGroupRenderPassBeginInfoKHR value)

Prepends the specified VkDeviceGroupRenderPassBeginInfoKHR value to the pNext chain.

public VkRenderPassBeginInfo
public VkRenderPassBeginInfo
pNext(VkRenderPassAttachmentBeginInfo value)

Prepends the specified VkRenderPassAttachmentBeginInfo value to the pNext chain.

public VkRenderPassBeginInfo
pNext(VkRenderPassAttachmentBeginInfoKHR value)

Prepends the specified VkRenderPassAttachmentBeginInfoKHR value to the pNext chain.

public VkRenderPassBeginInfo
pNext(VkRenderPassSampleLocationsBeginInfoEXT value)

Prepends the specified VkRenderPassSampleLocationsBeginInfoEXT value to the pNext chain.

public VkRenderPassBeginInfo
pNext(VkRenderPassTransformBeginInfoQCOM value)

Prepends the specified VkRenderPassTransformBeginInfoQCOM value to the pNext chain.

public VkRect2D
renderArea()

the render area that is affected by the render pass instance, and is described in more detail below.

public VkRenderPassBeginInfo
renderArea(VkRect2D value)

Copies the specified VkRect2D to the renderArea field.

public VkRenderPassBeginInfo
renderArea(Consumer<VkRect2D> consumer)

Passes the renderArea field to the specified Consumer.

public long
renderPass()

the render pass to begin an instance of.

public VkRenderPassBeginInfo
renderPass(long value)

Sets the specified value to the renderPass field.

public VkRenderPassBeginInfo
set(int sType, long pNext, long renderPass, long framebuffer, VkRect2D renderArea, int clearValueCount, VkClearValue.Buffer pClearValues)

Initializes this struct with the specified values.

public VkRenderPassBeginInfo

Returns:

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

Sets the specified value to the sType field.

public VkRenderPassBeginInfo
Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate