public class VkCommandBufferInheritanceInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
occlusionQueryEnable must be FALSEqueryFlags must be a valid combination of VkQueryControlFlagBits valuesqueryFlags must be 0pipelineStatistics must be a valid combination of VkQueryPipelineStatisticFlagBits valuespipelineStatistics must be 0sType must be STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFOpNext must be NULL or a pointer to a valid instance of VkCommandBufferInheritanceConditionalRenderingInfoEXTframebuffer, and renderPass that are valid handles of non-ignored parameters must have been created, allocated, or retrieved from the same VkDevicesType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.renderPass – a VkRenderPass object defining which render passes the VkCommandBuffer will be compatible with and can be executed within. If the VkCommandBuffer will not be executed within a render pass instance, renderPass is ignored.subpass – the index of the subpass within the render pass instance that the VkCommandBuffer will be executed within. If the VkCommandBuffer will not be executed within a render pass instance, subpass is ignored.framebuffer – optionally refers to the VkFramebuffer object that the VkCommandBuffer will be rendering to if it is executed within a render pass instance. It can be NULL_HANDLE if the framebuffer is not known, or if the VkCommandBuffer will not be executed within a render pass instance.
Specifying the exact framebuffer that the secondary command buffer will be executed with may result in better performance at command buffer execution time.
occlusionQueryEnable – specifies whether the command buffer can be executed while an occlusion query is active in the primary command buffer. If this is TRUE, then this command buffer can be executed whether the primary command buffer has an occlusion query active or not. If this is FALSE, then the primary command buffer must not have an occlusion query active.queryFlags – specifies the query flags that can be used by an active occlusion query in the primary command buffer when this secondary command buffer is executed. If this value includes the QUERY_CONTROL_PRECISE_BIT bit, then the active query can return boolean results or actual sample counts. If this bit is not set, then the active query must not use the QUERY_CONTROL_PRECISE_BIT bit.pipelineStatistics – a bitmask of VkQueryPipelineStatisticFlagBits specifying the set of pipeline statistics that can be counted by an active query in the primary command buffer when this secondary command buffer is executed. If this value includes a given bit, then this command buffer can be executed whether the primary command buffer has a pipeline statistics query active that includes this bit or not. If this value excludes a given bit, then the active pipeline statistics query must not be from a query pool that counts that statistic.
struct VkCommandBufferInheritanceInfo {
VkStructureType sType;
void const * pNext;
VkRenderPass renderPass;
uint32_t subpass;
VkFramebuffer framebuffer;
VkBool32 occlusionQueryEnable;
VkQueryControlFlags queryFlags;
VkQueryPipelineStatisticFlags pipelineStatistics;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkCommandBufferInheritanceInfo.Buffer
An array of
VkCommandBufferInheritanceInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FRAMEBUFFER
The struct member offsets.
|
static int |
OCCLUSIONQUERYENABLE
The struct member offsets.
|
static int |
PIPELINESTATISTICS
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
QUERYFLAGS
The struct member offsets.
|
static int |
RENDERPASS
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
static int |
SUBPASS
The struct member offsets.
|
| Constructor and Description |
|---|
VkCommandBufferInheritanceInfo(java.nio.ByteBuffer container)
Creates a
VkCommandBufferInheritanceInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkCommandBufferInheritanceInfo |
calloc()
Returns a new
VkCommandBufferInheritanceInfo instance allocated with memCalloc. |
static VkCommandBufferInheritanceInfo.Buffer |
calloc(int capacity)
Returns a new
VkCommandBufferInheritanceInfo.Buffer instance allocated with memCalloc. |
static VkCommandBufferInheritanceInfo |
callocStack()
Returns a new
VkCommandBufferInheritanceInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkCommandBufferInheritanceInfo.Buffer |
callocStack(int capacity)
Returns a new
VkCommandBufferInheritanceInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkCommandBufferInheritanceInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkCommandBufferInheritanceInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkCommandBufferInheritanceInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkCommandBufferInheritanceInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkCommandBufferInheritanceInfo |
create()
Returns a new
VkCommandBufferInheritanceInfo instance allocated with BufferUtils. |
static VkCommandBufferInheritanceInfo.Buffer |
create(int capacity)
Returns a new
VkCommandBufferInheritanceInfo.Buffer instance allocated with BufferUtils. |
static VkCommandBufferInheritanceInfo |
create(long address)
Returns a new
VkCommandBufferInheritanceInfo instance for the specified memory address. |
static VkCommandBufferInheritanceInfo.Buffer |
create(long address,
int capacity)
Create a
VkCommandBufferInheritanceInfo.Buffer instance at the specified memory. |
static VkCommandBufferInheritanceInfo |
createSafe(long address)
|
static VkCommandBufferInheritanceInfo.Buffer |
createSafe(long address,
int capacity)
|
long |
framebuffer()
Returns the value of the
framebuffer field. |
VkCommandBufferInheritanceInfo |
framebuffer(long value)
Sets the specified value to the
framebuffer field. |
static VkCommandBufferInheritanceInfo |
malloc()
Returns a new
VkCommandBufferInheritanceInfo instance allocated with memAlloc. |
static VkCommandBufferInheritanceInfo.Buffer |
malloc(int capacity)
Returns a new
VkCommandBufferInheritanceInfo.Buffer instance allocated with memAlloc. |
static VkCommandBufferInheritanceInfo |
mallocStack()
Returns a new
VkCommandBufferInheritanceInfo instance allocated on the thread-local MemoryStack. |
static VkCommandBufferInheritanceInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkCommandBufferInheritanceInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkCommandBufferInheritanceInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkCommandBufferInheritanceInfo.Buffer instance allocated on the specified MemoryStack. |
static VkCommandBufferInheritanceInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkCommandBufferInheritanceInfo instance allocated on the specified MemoryStack. |
static long |
nframebuffer(long struct)
Unsafe version of
framebuffer(). |
static void |
nframebuffer(long struct,
long value)
Unsafe version of
framebuffer. |
static int |
nocclusionQueryEnable(long struct)
Unsafe version of
occlusionQueryEnable(). |
static void |
nocclusionQueryEnable(long struct,
int value)
Unsafe version of
occlusionQueryEnable. |
static int |
npipelineStatistics(long struct)
Unsafe version of
pipelineStatistics(). |
static void |
npipelineStatistics(long struct,
int value)
Unsafe version of
pipelineStatistics. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nqueryFlags(long struct)
Unsafe version of
queryFlags(). |
static void |
nqueryFlags(long struct,
int value)
Unsafe version of
queryFlags. |
static long |
nrenderPass(long struct)
Unsafe version of
renderPass(). |
static void |
nrenderPass(long struct,
long value)
Unsafe version of
renderPass. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
static int |
nsubpass(long struct)
Unsafe version of
subpass(). |
static void |
nsubpass(long struct,
int value)
Unsafe version of
subpass. |
boolean |
occlusionQueryEnable()
Returns the value of the
occlusionQueryEnable field. |
VkCommandBufferInheritanceInfo |
occlusionQueryEnable(boolean value)
Sets the specified value to the
occlusionQueryEnable field. |
int |
pipelineStatistics()
Returns the value of the
pipelineStatistics field. |
VkCommandBufferInheritanceInfo |
pipelineStatistics(int value)
Sets the specified value to the
pipelineStatistics field. |
long |
pNext()
Returns the value of the
pNext field. |
VkCommandBufferInheritanceInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
int |
queryFlags()
Returns the value of the
queryFlags field. |
VkCommandBufferInheritanceInfo |
queryFlags(int value)
Sets the specified value to the
queryFlags field. |
long |
renderPass()
Returns the value of the
renderPass field. |
VkCommandBufferInheritanceInfo |
renderPass(long value)
Sets the specified value to the
renderPass field. |
VkCommandBufferInheritanceInfo |
set(int sType,
long pNext,
long renderPass,
int subpass,
long framebuffer,
boolean occlusionQueryEnable,
int queryFlags,
int pipelineStatistics)
Initializes this struct with the specified values.
|
VkCommandBufferInheritanceInfo |
set(VkCommandBufferInheritanceInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkCommandBufferInheritanceInfo |
sType(int value)
Sets the specified value to the
sType field. |
int |
subpass()
Returns the value of the
subpass field. |
VkCommandBufferInheritanceInfo |
subpass(int value)
Sets the specified value to the
subpass 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 RENDERPASS
public static final int SUBPASS
public static final int FRAMEBUFFER
public static final int OCCLUSIONQUERYENABLE
public static final int QUERYFLAGS
public static final int PIPELINESTATISTICS
public VkCommandBufferInheritanceInfo(java.nio.ByteBuffer container)
VkCommandBufferInheritanceInfo 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 long renderPass()
renderPass field.public int subpass()
subpass field.public long framebuffer()
framebuffer field.public boolean occlusionQueryEnable()
occlusionQueryEnable field.public int queryFlags()
queryFlags field.public int pipelineStatistics()
pipelineStatistics field.public VkCommandBufferInheritanceInfo sType(int value)
sType field.public VkCommandBufferInheritanceInfo pNext(long value)
pNext field.public VkCommandBufferInheritanceInfo renderPass(long value)
renderPass field.public VkCommandBufferInheritanceInfo subpass(int value)
subpass field.public VkCommandBufferInheritanceInfo framebuffer(long value)
framebuffer field.public VkCommandBufferInheritanceInfo occlusionQueryEnable(boolean value)
occlusionQueryEnable field.public VkCommandBufferInheritanceInfo queryFlags(int value)
queryFlags field.public VkCommandBufferInheritanceInfo pipelineStatistics(int value)
pipelineStatistics field.public VkCommandBufferInheritanceInfo set(int sType, long pNext, long renderPass, int subpass, long framebuffer, boolean occlusionQueryEnable, int queryFlags, int pipelineStatistics)
public VkCommandBufferInheritanceInfo set(VkCommandBufferInheritanceInfo src)
src - the source structpublic static VkCommandBufferInheritanceInfo malloc()
VkCommandBufferInheritanceInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkCommandBufferInheritanceInfo calloc()
VkCommandBufferInheritanceInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkCommandBufferInheritanceInfo create()
VkCommandBufferInheritanceInfo instance allocated with BufferUtils.public static VkCommandBufferInheritanceInfo create(long address)
VkCommandBufferInheritanceInfo instance for the specified memory address.@Nullable public static VkCommandBufferInheritanceInfo createSafe(long address)
public static VkCommandBufferInheritanceInfo.Buffer malloc(int capacity)
VkCommandBufferInheritanceInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkCommandBufferInheritanceInfo.Buffer calloc(int capacity)
VkCommandBufferInheritanceInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkCommandBufferInheritanceInfo.Buffer create(int capacity)
VkCommandBufferInheritanceInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkCommandBufferInheritanceInfo.Buffer create(long address, int capacity)
VkCommandBufferInheritanceInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkCommandBufferInheritanceInfo.Buffer createSafe(long address, int capacity)
public static VkCommandBufferInheritanceInfo mallocStack()
VkCommandBufferInheritanceInfo instance allocated on the thread-local MemoryStack.public static VkCommandBufferInheritanceInfo callocStack()
VkCommandBufferInheritanceInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkCommandBufferInheritanceInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkCommandBufferInheritanceInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkCommandBufferInheritanceInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkCommandBufferInheritanceInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkCommandBufferInheritanceInfo.Buffer mallocStack(int capacity)
VkCommandBufferInheritanceInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkCommandBufferInheritanceInfo.Buffer callocStack(int capacity)
VkCommandBufferInheritanceInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkCommandBufferInheritanceInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkCommandBufferInheritanceInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkCommandBufferInheritanceInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkCommandBufferInheritanceInfo.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 long nrenderPass(long struct)
renderPass().public static int nsubpass(long struct)
subpass().public static long nframebuffer(long struct)
framebuffer().public static int nocclusionQueryEnable(long struct)
occlusionQueryEnable().public static int nqueryFlags(long struct)
queryFlags().public static int npipelineStatistics(long struct)
pipelineStatistics().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nrenderPass(long struct,
long value)
renderPass.public static void nsubpass(long struct,
int value)
subpass.public static void nframebuffer(long struct,
long value)
framebuffer.public static void nocclusionQueryEnable(long struct,
int value)
occlusionQueryEnable.public static void nqueryFlags(long struct,
int value)
queryFlags.public static void npipelineStatistics(long struct,
int value)
pipelineStatistics.Copyright LWJGL. All Rights Reserved. License terms.