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, theframebuffermember ofpInheritanceInfomust be eitherNULL_HANDLE, or a validVkFramebufferthat is compatible with therenderPassmember ofpInheritanceInfo - If
flagscontainsCOMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BITand therenderPassmember ofpInheritanceInfois notNULL_HANDLE,renderPassmust be a validVkRenderPass - If
flagscontainsCOMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BITand therenderPassmember ofpInheritanceInfois notNULL_HANDLE, thesubpassmember ofpInheritanceInfomust be a valid subpass index within therenderPassmember ofpInheritanceInfo - If
flagscontainsCOMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BITand therenderPassmember ofpInheritanceInfoisNULL_HANDLE, thepNextchain ofpInheritanceInfomust include aVkCommandBufferInheritanceRenderingInfostructure - If
flagscontainsCOMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT, therenderPassmember ofpInheritanceInfoisNULL_HANDLE, and thepNextchain ofpInheritanceInfoincludes aVkAttachmentSampleCountInfoAMDorVkAttachmentSampleCountInfoNVstructure, thecolorAttachmentCountmember of that structure must be equal to the value ofVkCommandBufferInheritanceRenderingInfo::colorAttachmentCount
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFOpNextmust beNULLor a pointer to a valid instance ofVkDeviceGroupCommandBufferBeginInfo- The
sTypevalue of each struct in thepNextchain must be unique flagsmust be a valid combination ofVkCommandBufferUsageFlagBitsvalues
See Also
VkCommandBufferInheritanceInfo,BeginCommandBufferLayout
struct VkCommandBufferBeginInfo { VkStructureTypesType(); void const *pNext(); VkCommandBufferUsageFlagsflags();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 Deprecated 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 VkCommandBufferBeginInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkCommandBufferBeginInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkCommandBufferBeginInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkCommandBufferBeginInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkCommandBufferBeginInfocallocStack()Deprecated.static VkCommandBufferBeginInfo.BuffercallocStack(int capacity)Deprecated.static VkCommandBufferBeginInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkCommandBufferBeginInfocallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()a bitmask ofVkCommandBufferUsageFlagBitsspecifying usage behavior for the command buffer.VkCommandBufferBeginInfoflags(int value)Sets the specified value to theflags()field.static VkCommandBufferBeginInfomalloc()Returns a newVkCommandBufferBeginInfoinstance allocated withmemAlloc.static VkCommandBufferBeginInfo.Buffermalloc(int capacity)Returns a newVkCommandBufferBeginInfo.Bufferinstance allocated withmemAlloc.static VkCommandBufferBeginInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkCommandBufferBeginInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkCommandBufferBeginInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkCommandBufferBeginInfoinstance allocated on the specifiedMemoryStack.static VkCommandBufferBeginInfomallocStack()Deprecated.static VkCommandBufferBeginInfo.BuffermallocStack(int capacity)Deprecated.static VkCommandBufferBeginInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkCommandBufferBeginInfomallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()a pointer to aVkCommandBufferInheritanceInfostructure, used ifcommandBufferis a secondary command buffer.VkCommandBufferBeginInfopInheritanceInfo(VkCommandBufferInheritanceInfo value)Sets the address of the specifiedVkCommandBufferInheritanceInfoto thepInheritanceInfo()field.longpNext()NULLor a pointer to a structure extending this structure.VkCommandBufferBeginInfopNext(long value)Sets the specified value to thepNext()field.VkCommandBufferBeginInfopNext(VkDeviceGroupCommandBufferBeginInfo value)Prepends the specifiedVkDeviceGroupCommandBufferBeginInfovalue to thepNextchain.VkCommandBufferBeginInfopNext(VkDeviceGroupCommandBufferBeginInfoKHR value)Prepends the specifiedVkDeviceGroupCommandBufferBeginInfoKHRvalue to thepNextchain.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()the type of this structure.VkCommandBufferBeginInfosType(int value)Sets the specified value to thesType()field.VkCommandBufferBeginInfosType$Default()Sets theSTRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFOvalue to thesType()field.
-
-
-
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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
flags
public int flags()
a bitmask ofVkCommandBufferUsageFlagBitsspecifying usage behavior for the command buffer.
-
pInheritanceInfo
@Nullable public VkCommandBufferInheritanceInfo pInheritanceInfo()
a pointer to aVkCommandBufferInheritanceInfostructure, used ifcommandBufferis a secondary command buffer. If this is a primary command buffer, then this value is ignored.
-
sType
public VkCommandBufferBeginInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkCommandBufferBeginInfo sType$Default()
Sets theSTRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFOvalue to thesType()field.
-
pNext
public VkCommandBufferBeginInfo pNext(long value)
Sets the specified value to thepNext()field.
-
pNext
public VkCommandBufferBeginInfo pNext(VkDeviceGroupCommandBufferBeginInfo value)
Prepends the specifiedVkDeviceGroupCommandBufferBeginInfovalue to thepNextchain.
-
pNext
public VkCommandBufferBeginInfo pNext(VkDeviceGroupCommandBufferBeginInfoKHR value)
Prepends the specifiedVkDeviceGroupCommandBufferBeginInfoKHRvalue to thepNextchain.
-
flags
public VkCommandBufferBeginInfo flags(int value)
Sets the specified value to theflags()field.
-
pInheritanceInfo
public VkCommandBufferBeginInfo pInheritanceInfo(@Nullable VkCommandBufferInheritanceInfo value)
Sets the address of the specifiedVkCommandBufferInheritanceInfoto thepInheritanceInfo()field.
-
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
@Deprecated public static VkCommandBufferBeginInfo mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkCommandBufferBeginInfo callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkCommandBufferBeginInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkCommandBufferBeginInfo callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkCommandBufferBeginInfo.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkCommandBufferBeginInfo.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkCommandBufferBeginInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkCommandBufferBeginInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkCommandBufferBeginInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkCommandBufferBeginInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkCommandBufferBeginInfo calloc(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
-
malloc
public static VkCommandBufferBeginInfo.Buffer malloc(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
-
calloc
public static VkCommandBufferBeginInfo.Buffer calloc(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.
-
-