Package org.lwjgl.vulkan
Class VkCommandBufferBeginInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkCommandBufferBeginInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkCommandBufferBeginInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying a command buffer begin operation.Valid Usage
- If
flagscontainsCOMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT, therenderPassmember ofpInheritanceInfomust be a validVkRenderPass - If
flagscontainsCOMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT, thesubpassmember ofpInheritanceInfomust be a valid subpass index within therenderPassmember ofpInheritanceInfo - If
flagscontainsCOMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT, theframebuffermember ofpInheritanceInfomust be eitherNULL_HANDLE, or a validVkFramebufferthat is compatible with therenderPassmember ofpInheritanceInfo
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFOpNextmust beNULLor a pointer to a valid instance ofVkDeviceGroupCommandBufferBeginInfoflagsmust be a valid combination ofVkCommandBufferUsageFlagBitsvalues
See Also
VkCommandBufferInheritanceInfo,BeginCommandBufferMember documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.flags– a bitmask ofVkCommandBufferUsageFlagBitsspecifying usage behavior for the command buffer.pInheritanceInfo– a pointer to aVkCommandBufferInheritanceInfostructure, which is used ifcommandBufferis a secondary command buffer. If this is a primary command buffer, then this value is ignored.
Layout
struct VkCommandBufferBeginInfo { VkStructureType sType; void const * pNext; VkCommandBufferUsageFlags flags;VkCommandBufferInheritanceInfoconst * pInheritanceInfo; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkCommandBufferBeginInfo.BufferAn array ofVkCommandBufferBeginInfostructs.
-
Constructor Summary
Constructors Constructor Description VkCommandBufferBeginInfo(java.nio.ByteBuffer container)Creates aVkCommandBufferBeginInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkCommandBufferBeginInfocalloc()Returns a newVkCommandBufferBeginInfoinstance allocated withmemCalloc.static VkCommandBufferBeginInfo.Buffercalloc(int capacity)Returns a newVkCommandBufferBeginInfo.Bufferinstance allocated withmemCalloc.static VkCommandBufferBeginInfocallocStack()Returns a newVkCommandBufferBeginInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkCommandBufferBeginInfo.BuffercallocStack(int capacity)Returns a newVkCommandBufferBeginInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkCommandBufferBeginInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkCommandBufferBeginInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkCommandBufferBeginInfocallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkCommandBufferBeginInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkCommandBufferBeginInfocreate()Returns a newVkCommandBufferBeginInfoinstance allocated withBufferUtils.static VkCommandBufferBeginInfo.Buffercreate(int capacity)Returns a newVkCommandBufferBeginInfo.Bufferinstance allocated withBufferUtils.static VkCommandBufferBeginInfocreate(long address)Returns a newVkCommandBufferBeginInfoinstance for the specified memory address.static VkCommandBufferBeginInfo.Buffercreate(long address, int capacity)Create aVkCommandBufferBeginInfo.Bufferinstance at the specified memory.static VkCommandBufferBeginInfocreateSafe(long address)static VkCommandBufferBeginInfo.BuffercreateSafe(long address, int capacity)intflags()Returns the value of theflagsfield.VkCommandBufferBeginInfoflags(int value)Sets the specified value to theflagsfield.static VkCommandBufferBeginInfomalloc()Returns a newVkCommandBufferBeginInfoinstance allocated withmemAlloc.static VkCommandBufferBeginInfo.Buffermalloc(int capacity)Returns a newVkCommandBufferBeginInfo.Bufferinstance allocated withmemAlloc.static VkCommandBufferBeginInfomallocStack()Returns a newVkCommandBufferBeginInfoinstance allocated on the thread-localMemoryStack.static VkCommandBufferBeginInfo.BuffermallocStack(int capacity)Returns a newVkCommandBufferBeginInfo.Bufferinstance allocated on the thread-localMemoryStack.static VkCommandBufferBeginInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkCommandBufferBeginInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkCommandBufferBeginInfomallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkCommandBufferBeginInfoinstance allocated on the specifiedMemoryStack.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static VkCommandBufferInheritanceInfonpInheritanceInfo(long struct)Unsafe version ofpInheritanceInfo().static voidnpInheritanceInfo(long struct, VkCommandBufferInheritanceInfo value)Unsafe version ofpInheritanceInfo.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.VkCommandBufferInheritanceInfopInheritanceInfo()Returns aVkCommandBufferInheritanceInfoview of the struct pointed to by thepInheritanceInfofield.VkCommandBufferBeginInfopInheritanceInfo(VkCommandBufferInheritanceInfo value)Sets the address of the specifiedVkCommandBufferInheritanceInfoto thepInheritanceInfofield.longpNext()Returns the value of thepNextfield.VkCommandBufferBeginInfopNext(long value)Sets the specified value to thepNextfield.VkCommandBufferBeginInfoset(int sType, long pNext, int flags, VkCommandBufferInheritanceInfo pInheritanceInfo)Initializes this struct with the specified values.VkCommandBufferBeginInfoset(VkCommandBufferBeginInfo src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkCommandBufferBeginInfosType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkCommandBufferBeginInfo
public VkCommandBufferBeginInfo(java.nio.ByteBuffer container)
Creates aVkCommandBufferBeginInfoinstance at the current position of the specifiedByteBuffercontainer. 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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
flags
public int flags()
Returns the value of theflagsfield.
-
pInheritanceInfo
@Nullable public VkCommandBufferInheritanceInfo pInheritanceInfo()
Returns aVkCommandBufferInheritanceInfoview of the struct pointed to by thepInheritanceInfofield.
-
sType
public VkCommandBufferBeginInfo sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkCommandBufferBeginInfo pNext(long value)
Sets the specified value to thepNextfield.
-
flags
public VkCommandBufferBeginInfo flags(int value)
Sets the specified value to theflagsfield.
-
pInheritanceInfo
public VkCommandBufferBeginInfo pInheritanceInfo(@Nullable VkCommandBufferInheritanceInfo value)
Sets the address of the specifiedVkCommandBufferInheritanceInfoto thepInheritanceInfofield.
-
set
public VkCommandBufferBeginInfo set(int sType, long pNext, int flags, @Nullable VkCommandBufferInheritanceInfo pInheritanceInfo)
Initializes this struct with the specified values.
-
set
public VkCommandBufferBeginInfo set(VkCommandBufferBeginInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkCommandBufferBeginInfo malloc()
Returns a newVkCommandBufferBeginInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkCommandBufferBeginInfo calloc()
Returns a newVkCommandBufferBeginInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkCommandBufferBeginInfo create()
Returns a newVkCommandBufferBeginInfoinstance allocated withBufferUtils.
-
create
public static VkCommandBufferBeginInfo create(long address)
Returns a newVkCommandBufferBeginInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkCommandBufferBeginInfo createSafe(long address)
-
malloc
public static VkCommandBufferBeginInfo.Buffer malloc(int capacity)
Returns a newVkCommandBufferBeginInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkCommandBufferBeginInfo.Buffer calloc(int capacity)
Returns a newVkCommandBufferBeginInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkCommandBufferBeginInfo.Buffer create(int capacity)
Returns a newVkCommandBufferBeginInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkCommandBufferBeginInfo.Buffer create(long address, int capacity)
Create aVkCommandBufferBeginInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkCommandBufferBeginInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkCommandBufferBeginInfo mallocStack()
Returns a newVkCommandBufferBeginInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkCommandBufferBeginInfo callocStack()
Returns a newVkCommandBufferBeginInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkCommandBufferBeginInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkCommandBufferBeginInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkCommandBufferBeginInfo callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkCommandBufferBeginInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkCommandBufferBeginInfo.Buffer mallocStack(int capacity)
Returns a newVkCommandBufferBeginInfo.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkCommandBufferBeginInfo.Buffer callocStack(int capacity)
Returns a newVkCommandBufferBeginInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkCommandBufferBeginInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCommandBufferBeginInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkCommandBufferBeginInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCommandBufferBeginInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
nflags
public static int nflags(long struct)
Unsafe version offlags().
-
npInheritanceInfo
@Nullable public static VkCommandBufferInheritanceInfo npInheritanceInfo(long struct)
Unsafe version ofpInheritanceInfo().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nflags
public static void nflags(long struct, int value)Unsafe version offlags.
-
npInheritanceInfo
public static void npInheritanceInfo(long struct, @Nullable VkCommandBufferInheritanceInfo value)Unsafe version ofpInheritanceInfo.
-
-