public class VkDeviceGroupRenderPassBeginInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
The deviceMask serves several purposes. It is an upper bound on the set of physical devices that can be used during the render pass instance, and the initial device mask when the render pass instance begins. In addition, commands transitioning to the next subpass in the render pass instance and commands ending the render pass instance, and, accordingly render pass attachment load, store, and resolve operations and subpass dependencies corresponding to the render pass instance, are executed on the physical devices included in the device mask provided here.
If deviceRenderAreaCount is not zero, then the elements of pDeviceRenderAreas override the value of VkRenderPassBeginInfo::renderArea, and provide a render area specific to each physical device. These render areas serve the same purpose as VkRenderPassBeginInfo::renderArea, including controlling the region of attachments that are cleared by ATTACHMENT_LOAD_OP_CLEAR and that are resolved into resolve attachments.
If this structure is not present, the render pass instance's device mask is the value of VkDeviceGroupCommandBufferBeginInfo::deviceMask. If this structure is not present or if deviceRenderAreaCount is zero, VkRenderPassBeginInfo::renderArea is used for all physical devices.
deviceMask must be a valid device mask valuedeviceMask must not be zerodeviceMask must be a subset of the command buffer’s initial device maskdeviceRenderAreaCount must either be zero or equal to the number of physical devices in the logical device.sType must be STRUCTURE_TYPE_DEVICE_GROUP_RENDER_PASS_BEGIN_INFOdeviceRenderAreaCount is not 0, pDeviceRenderAreas must be a valid pointer to an array of deviceRenderAreaCount VkRect2D structuressType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.deviceMask – the device mask for the render pass instance.deviceRenderAreaCount – the number of elements in the pDeviceRenderAreas array.pDeviceRenderAreas – a pointer to an array of VkRect2D structures defining the render area for each physical device.
struct VkDeviceGroupRenderPassBeginInfo {
VkStructureType sType;
void const * pNext;
uint32_t deviceMask;
uint32_t deviceRenderAreaCount;
VkRect2D const * pDeviceRenderAreas;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkDeviceGroupRenderPassBeginInfo.Buffer
An array of
VkDeviceGroupRenderPassBeginInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DEVICEMASK
The struct member offsets.
|
static int |
DEVICERENDERAREACOUNT
The struct member offsets.
|
static int |
PDEVICERENDERAREAS
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkDeviceGroupRenderPassBeginInfo(java.nio.ByteBuffer container)
Creates a
VkDeviceGroupRenderPassBeginInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkDeviceGroupRenderPassBeginInfo |
calloc()
Returns a new
VkDeviceGroupRenderPassBeginInfo instance allocated with memCalloc. |
static VkDeviceGroupRenderPassBeginInfo.Buffer |
calloc(int capacity)
Returns a new
VkDeviceGroupRenderPassBeginInfo.Buffer instance allocated with memCalloc. |
static VkDeviceGroupRenderPassBeginInfo |
callocStack()
Returns a new
VkDeviceGroupRenderPassBeginInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDeviceGroupRenderPassBeginInfo.Buffer |
callocStack(int capacity)
Returns a new
VkDeviceGroupRenderPassBeginInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDeviceGroupRenderPassBeginInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDeviceGroupRenderPassBeginInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDeviceGroupRenderPassBeginInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDeviceGroupRenderPassBeginInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDeviceGroupRenderPassBeginInfo |
create()
Returns a new
VkDeviceGroupRenderPassBeginInfo instance allocated with BufferUtils. |
static VkDeviceGroupRenderPassBeginInfo.Buffer |
create(int capacity)
Returns a new
VkDeviceGroupRenderPassBeginInfo.Buffer instance allocated with BufferUtils. |
static VkDeviceGroupRenderPassBeginInfo |
create(long address)
Returns a new
VkDeviceGroupRenderPassBeginInfo instance for the specified memory address. |
static VkDeviceGroupRenderPassBeginInfo.Buffer |
create(long address,
int capacity)
Create a
VkDeviceGroupRenderPassBeginInfo.Buffer instance at the specified memory. |
static VkDeviceGroupRenderPassBeginInfo |
createSafe(long address)
|
static VkDeviceGroupRenderPassBeginInfo.Buffer |
createSafe(long address,
int capacity)
|
int |
deviceMask()
Returns the value of the
deviceMask field. |
VkDeviceGroupRenderPassBeginInfo |
deviceMask(int value)
Sets the specified value to the
deviceMask field. |
int |
deviceRenderAreaCount()
Returns the value of the
deviceRenderAreaCount field. |
static VkDeviceGroupRenderPassBeginInfo |
malloc()
Returns a new
VkDeviceGroupRenderPassBeginInfo instance allocated with memAlloc. |
static VkDeviceGroupRenderPassBeginInfo.Buffer |
malloc(int capacity)
Returns a new
VkDeviceGroupRenderPassBeginInfo.Buffer instance allocated with memAlloc. |
static VkDeviceGroupRenderPassBeginInfo |
mallocStack()
Returns a new
VkDeviceGroupRenderPassBeginInfo instance allocated on the thread-local MemoryStack. |
static VkDeviceGroupRenderPassBeginInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkDeviceGroupRenderPassBeginInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkDeviceGroupRenderPassBeginInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDeviceGroupRenderPassBeginInfo.Buffer instance allocated on the specified MemoryStack. |
static VkDeviceGroupRenderPassBeginInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDeviceGroupRenderPassBeginInfo instance allocated on the specified MemoryStack. |
static int |
ndeviceMask(long struct)
Unsafe version of
deviceMask(). |
static void |
ndeviceMask(long struct,
int value)
Unsafe version of
deviceMask. |
static int |
ndeviceRenderAreaCount(long struct)
Unsafe version of
deviceRenderAreaCount(). |
static void |
ndeviceRenderAreaCount(long struct,
int value)
Sets the specified value to the
deviceRenderAreaCount field of the specified struct. |
static VkRect2D.Buffer |
npDeviceRenderAreas(long struct)
Unsafe version of
pDeviceRenderAreas(). |
static void |
npDeviceRenderAreas(long struct,
VkRect2D.Buffer value)
Unsafe version of
pDeviceRenderAreas. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
VkRect2D.Buffer |
pDeviceRenderAreas()
Returns a
VkRect2D.Buffer view of the struct array pointed to by the pDeviceRenderAreas field. |
VkDeviceGroupRenderPassBeginInfo |
pDeviceRenderAreas(VkRect2D.Buffer value)
Sets the address of the specified
VkRect2D.Buffer to the pDeviceRenderAreas field. |
long |
pNext()
Returns the value of the
pNext field. |
VkDeviceGroupRenderPassBeginInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
VkDeviceGroupRenderPassBeginInfo |
set(int sType,
long pNext,
int deviceMask,
VkRect2D.Buffer pDeviceRenderAreas)
Initializes this struct with the specified values.
|
VkDeviceGroupRenderPassBeginInfo |
set(VkDeviceGroupRenderPassBeginInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkDeviceGroupRenderPassBeginInfo |
sType(int value)
Sets the specified value to the
sType field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int DEVICEMASK
public static final int DEVICERENDERAREACOUNT
public static final int PDEVICERENDERAREAS
public VkDeviceGroupRenderPassBeginInfo(java.nio.ByteBuffer container)
VkDeviceGroupRenderPassBeginInfo 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 deviceMask()
deviceMask field.public int deviceRenderAreaCount()
deviceRenderAreaCount field.@Nullable public VkRect2D.Buffer pDeviceRenderAreas()
VkRect2D.Buffer view of the struct array pointed to by the pDeviceRenderAreas field.public VkDeviceGroupRenderPassBeginInfo sType(int value)
sType field.public VkDeviceGroupRenderPassBeginInfo pNext(long value)
pNext field.public VkDeviceGroupRenderPassBeginInfo deviceMask(int value)
deviceMask field.public VkDeviceGroupRenderPassBeginInfo pDeviceRenderAreas(@Nullable VkRect2D.Buffer value)
VkRect2D.Buffer to the pDeviceRenderAreas field.public VkDeviceGroupRenderPassBeginInfo set(int sType, long pNext, int deviceMask, @Nullable VkRect2D.Buffer pDeviceRenderAreas)
public VkDeviceGroupRenderPassBeginInfo set(VkDeviceGroupRenderPassBeginInfo src)
src - the source structpublic static VkDeviceGroupRenderPassBeginInfo malloc()
VkDeviceGroupRenderPassBeginInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkDeviceGroupRenderPassBeginInfo calloc()
VkDeviceGroupRenderPassBeginInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkDeviceGroupRenderPassBeginInfo create()
VkDeviceGroupRenderPassBeginInfo instance allocated with BufferUtils.public static VkDeviceGroupRenderPassBeginInfo create(long address)
VkDeviceGroupRenderPassBeginInfo instance for the specified memory address.@Nullable public static VkDeviceGroupRenderPassBeginInfo createSafe(long address)
public static VkDeviceGroupRenderPassBeginInfo.Buffer malloc(int capacity)
VkDeviceGroupRenderPassBeginInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDeviceGroupRenderPassBeginInfo.Buffer calloc(int capacity)
VkDeviceGroupRenderPassBeginInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDeviceGroupRenderPassBeginInfo.Buffer create(int capacity)
VkDeviceGroupRenderPassBeginInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkDeviceGroupRenderPassBeginInfo.Buffer create(long address, int capacity)
VkDeviceGroupRenderPassBeginInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkDeviceGroupRenderPassBeginInfo.Buffer createSafe(long address, int capacity)
public static VkDeviceGroupRenderPassBeginInfo mallocStack()
VkDeviceGroupRenderPassBeginInfo instance allocated on the thread-local MemoryStack.public static VkDeviceGroupRenderPassBeginInfo callocStack()
VkDeviceGroupRenderPassBeginInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkDeviceGroupRenderPassBeginInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkDeviceGroupRenderPassBeginInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkDeviceGroupRenderPassBeginInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkDeviceGroupRenderPassBeginInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkDeviceGroupRenderPassBeginInfo.Buffer mallocStack(int capacity)
VkDeviceGroupRenderPassBeginInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkDeviceGroupRenderPassBeginInfo.Buffer callocStack(int capacity)
VkDeviceGroupRenderPassBeginInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkDeviceGroupRenderPassBeginInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDeviceGroupRenderPassBeginInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkDeviceGroupRenderPassBeginInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDeviceGroupRenderPassBeginInfo.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 ndeviceMask(long struct)
deviceMask().public static int ndeviceRenderAreaCount(long struct)
deviceRenderAreaCount().@Nullable public static VkRect2D.Buffer npDeviceRenderAreas(long struct)
pDeviceRenderAreas().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void ndeviceMask(long struct,
int value)
deviceMask.public static void ndeviceRenderAreaCount(long struct,
int value)
deviceRenderAreaCount field of the specified struct.public static void npDeviceRenderAreas(long struct,
@Nullable
VkRect2D.Buffer value)
pDeviceRenderAreas.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.