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, NativeResource, Pointer
public class VkCommandBufferBeginInfo extends Struct
Khronos Reference Page
Vulkan SpecificationContrains information about a command buffer recording.
Valid Usage
sTypemust beSTRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFOpNextmust beNULLflagsmust be a valid combination ofVkCommandBufferUsageFlagBitsvalues- 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
Member documentation
sType– the type of this structure. Must be:STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFOpNext– reserved for use by extensionsflags– a combination of bitfield flags indicating usage behavior for the command buffer. One or more of:COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BITCOMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BITCOMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_BITpInheritanceInfo– 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; const void * pNext; VkCommandBufferUsageFlags flags; const VkCommandBufferInheritanceInfo * pInheritanceInfo; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classVkCommandBufferBeginInfo.BufferAn array ofVkCommandBufferBeginInfostructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and 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 and 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, MemoryStack stack)Returns a newVkCommandBufferBeginInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkCommandBufferBeginInfocallocStack(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 ornullif the address isNULL.static VkCommandBufferBeginInfo.Buffercreate(long address, int capacity)Create aVkCommandBufferBeginInfo.Bufferinstance at the specified memory.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, MemoryStack stack)Returns a newVkCommandBufferBeginInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkCommandBufferBeginInfomallocStack(MemoryStack stack)Returns a newVkCommandBufferBeginInfoinstance allocated on the specifiedMemoryStack.VkCommandBufferBeginInfonset(long struct)Unsafe version ofset.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()Returns thesizeof(struct).intsType()Returns the value of thesTypefield.VkCommandBufferBeginInfosType(int value)Sets the specified value to thesTypefield.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
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()
Description copied from class:StructReturns thesizeof(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
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(VkCommandBufferInheritanceInfo value)
Sets the address of the specifiedVkCommandBufferInheritanceInfoto thepInheritanceInfofield.
-
set
public VkCommandBufferBeginInfo set(int sType, long pNext, int flags, VkCommandBufferInheritanceInfo pInheritanceInfo)
Initializes this struct with the specified values.
-
nset
public VkCommandBufferBeginInfo nset(long struct)
Unsafe version ofset.
-
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 ornullif the address isNULL.
-
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
-
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(MemoryStack stack)
Returns a newVkCommandBufferBeginInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkCommandBufferBeginInfo callocStack(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, 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, 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
-
-