public class VkCommandBufferBeginInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
flags contains COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT, the renderPass member of pInheritanceInfo must be a valid VkRenderPassflags contains COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT, the subpass member of pInheritanceInfo must be a valid subpass index within the renderPass member of pInheritanceInfoflags contains COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT, the framebuffer member of pInheritanceInfo must be either NULL_HANDLE, or a valid VkFramebuffer that is compatible with the renderPass member of pInheritanceInfosType must be STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFOpNext must be NULL or a pointer to a valid instance of VkDeviceGroupCommandBufferBeginInfoflags must be a valid combination of VkCommandBufferUsageFlagBits valuesVkCommandBufferInheritanceInfo, BeginCommandBuffer
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.flags – a bitmask of VkCommandBufferUsageFlagBits specifying usage behavior for the command buffer.pInheritanceInfo – a pointer to a VkCommandBufferInheritanceInfo structure, used if commandBuffer is a secondary command buffer. If this is a primary command buffer, then this value is ignored.
struct VkCommandBufferBeginInfo {
VkStructureType sType;
void const * pNext;
VkCommandBufferUsageFlags flags;
VkCommandBufferInheritanceInfo const * pInheritanceInfo;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkCommandBufferBeginInfo.Buffer
An array of
VkCommandBufferBeginInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FLAGS
The struct member offsets.
|
static int |
PINHERITANCEINFO
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 |
|---|
VkCommandBufferBeginInfo(java.nio.ByteBuffer container)
Creates a
VkCommandBufferBeginInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkCommandBufferBeginInfo |
calloc()
Returns a new
VkCommandBufferBeginInfo instance allocated with memCalloc. |
static VkCommandBufferBeginInfo.Buffer |
calloc(int capacity)
Returns a new
VkCommandBufferBeginInfo.Buffer instance allocated with memCalloc. |
static VkCommandBufferBeginInfo |
callocStack()
Returns a new
VkCommandBufferBeginInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkCommandBufferBeginInfo.Buffer |
callocStack(int capacity)
Returns a new
VkCommandBufferBeginInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkCommandBufferBeginInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkCommandBufferBeginInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkCommandBufferBeginInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkCommandBufferBeginInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkCommandBufferBeginInfo |
create()
Returns a new
VkCommandBufferBeginInfo instance allocated with BufferUtils. |
static VkCommandBufferBeginInfo.Buffer |
create(int capacity)
Returns a new
VkCommandBufferBeginInfo.Buffer instance allocated with BufferUtils. |
static VkCommandBufferBeginInfo |
create(long address)
Returns a new
VkCommandBufferBeginInfo instance for the specified memory address. |
static VkCommandBufferBeginInfo.Buffer |
create(long address,
int capacity)
Create a
VkCommandBufferBeginInfo.Buffer instance at the specified memory. |
static VkCommandBufferBeginInfo |
createSafe(long address)
|
static VkCommandBufferBeginInfo.Buffer |
createSafe(long address,
int capacity)
|
int |
flags()
Returns the value of the
flags field. |
VkCommandBufferBeginInfo |
flags(int value)
Sets the specified value to the
flags field. |
static VkCommandBufferBeginInfo |
malloc()
Returns a new
VkCommandBufferBeginInfo instance allocated with memAlloc. |
static VkCommandBufferBeginInfo.Buffer |
malloc(int capacity)
Returns a new
VkCommandBufferBeginInfo.Buffer instance allocated with memAlloc. |
static VkCommandBufferBeginInfo |
mallocStack()
Returns a new
VkCommandBufferBeginInfo instance allocated on the thread-local MemoryStack. |
static VkCommandBufferBeginInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkCommandBufferBeginInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkCommandBufferBeginInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkCommandBufferBeginInfo.Buffer instance allocated on the specified MemoryStack. |
static VkCommandBufferBeginInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkCommandBufferBeginInfo instance allocated on the specified MemoryStack. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static VkCommandBufferInheritanceInfo |
npInheritanceInfo(long struct)
Unsafe version of
pInheritanceInfo(). |
static void |
npInheritanceInfo(long struct,
VkCommandBufferInheritanceInfo value)
Unsafe version of
pInheritanceInfo. |
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. |
VkCommandBufferInheritanceInfo |
pInheritanceInfo()
Returns a
VkCommandBufferInheritanceInfo view of the struct pointed to by the pInheritanceInfo field. |
VkCommandBufferBeginInfo |
pInheritanceInfo(VkCommandBufferInheritanceInfo value)
Sets the address of the specified
VkCommandBufferInheritanceInfo to the pInheritanceInfo field. |
long |
pNext()
Returns the value of the
pNext field. |
VkCommandBufferBeginInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
VkCommandBufferBeginInfo |
set(int sType,
long pNext,
int flags,
VkCommandBufferInheritanceInfo pInheritanceInfo)
Initializes this struct with the specified values.
|
VkCommandBufferBeginInfo |
set(VkCommandBufferBeginInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkCommandBufferBeginInfo |
sType(int value)
Sets the specified value to the
sType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int FLAGS
public static final int PINHERITANCEINFO
public VkCommandBufferBeginInfo(java.nio.ByteBuffer container)
VkCommandBufferBeginInfo 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 flags()
flags field.@Nullable public VkCommandBufferInheritanceInfo pInheritanceInfo()
VkCommandBufferInheritanceInfo view of the struct pointed to by the pInheritanceInfo field.public VkCommandBufferBeginInfo sType(int value)
sType field.public VkCommandBufferBeginInfo pNext(long value)
pNext field.public VkCommandBufferBeginInfo flags(int value)
flags field.public VkCommandBufferBeginInfo pInheritanceInfo(@Nullable VkCommandBufferInheritanceInfo value)
VkCommandBufferInheritanceInfo to the pInheritanceInfo field.public VkCommandBufferBeginInfo set(int sType, long pNext, int flags, @Nullable VkCommandBufferInheritanceInfo pInheritanceInfo)
public VkCommandBufferBeginInfo set(VkCommandBufferBeginInfo src)
src - the source structpublic static VkCommandBufferBeginInfo malloc()
VkCommandBufferBeginInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkCommandBufferBeginInfo calloc()
VkCommandBufferBeginInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkCommandBufferBeginInfo create()
VkCommandBufferBeginInfo instance allocated with BufferUtils.public static VkCommandBufferBeginInfo create(long address)
VkCommandBufferBeginInfo instance for the specified memory address.@Nullable public static VkCommandBufferBeginInfo createSafe(long address)
public static VkCommandBufferBeginInfo.Buffer malloc(int capacity)
VkCommandBufferBeginInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkCommandBufferBeginInfo.Buffer calloc(int capacity)
VkCommandBufferBeginInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkCommandBufferBeginInfo.Buffer create(int capacity)
VkCommandBufferBeginInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkCommandBufferBeginInfo.Buffer create(long address, int capacity)
VkCommandBufferBeginInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkCommandBufferBeginInfo.Buffer createSafe(long address, int capacity)
public static VkCommandBufferBeginInfo mallocStack()
VkCommandBufferBeginInfo instance allocated on the thread-local MemoryStack.public static VkCommandBufferBeginInfo callocStack()
VkCommandBufferBeginInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkCommandBufferBeginInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkCommandBufferBeginInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkCommandBufferBeginInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkCommandBufferBeginInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkCommandBufferBeginInfo.Buffer mallocStack(int capacity)
VkCommandBufferBeginInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkCommandBufferBeginInfo.Buffer callocStack(int capacity)
VkCommandBufferBeginInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkCommandBufferBeginInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkCommandBufferBeginInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkCommandBufferBeginInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkCommandBufferBeginInfo.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 nflags(long struct)
flags().@Nullable public static VkCommandBufferInheritanceInfo npInheritanceInfo(long struct)
pInheritanceInfo().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nflags(long struct,
int value)
flags.public static void npInheritanceInfo(long struct,
@Nullable
VkCommandBufferInheritanceInfo value)
pInheritanceInfo.Copyright LWJGL. All Rights Reserved. License terms.