public class VkConditionalRenderingBeginInfoEXT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
If the 32-bit value at offset in buffer memory is zero, then the rendering commands are discarded, otherwise they are executed as normal. If the value of the predicate in buffer memory changes while conditional rendering is active, the rendering commands may be discarded in an implementation-dependent way. Some implementations may latch the value of the predicate upon beginning conditional rendering while others may read it before every rendering command.
buffer is non-sparse then it must be bound completely and contiguously to a single VkDeviceMemory objectbuffer must have been created with the BUFFER_USAGE_CONDITIONAL_RENDERING_BIT_EXT bit setoffset must be less than the size of buffer by at least 32 bits.offset must be a multiple of 4sType must be STRUCTURE_TYPE_CONDITIONAL_RENDERING_BEGIN_INFO_EXTpNext must be NULLbuffer must be a valid VkBuffer handleflags must be a valid combination of VkConditionalRenderingFlagBitsEXT valuesCmdBeginConditionalRenderingEXT
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.buffer – a buffer containing the predicate for conditional rendering.offset – the byte offset into buffer where the predicate is located.flags – a bitmask of VkConditionalRenderingFlagsEXT specifying the behavior of conditional rendering.
struct VkConditionalRenderingBeginInfoEXT {
VkStructureType sType;
void const * pNext;
VkBuffer buffer;
VkDeviceSize offset;
VkConditionalRenderingFlagsEXT flags;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkConditionalRenderingBeginInfoEXT.Buffer
An array of
VkConditionalRenderingBeginInfoEXT structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BUFFER
The struct member offsets.
|
static int |
FLAGS
The struct member offsets.
|
static int |
OFFSET
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 |
|---|
VkConditionalRenderingBeginInfoEXT(java.nio.ByteBuffer container)
Creates a
VkConditionalRenderingBeginInfoEXT instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
long |
buffer()
Returns the value of the
buffer field. |
VkConditionalRenderingBeginInfoEXT |
buffer(long value)
Sets the specified value to the
buffer field. |
static VkConditionalRenderingBeginInfoEXT |
calloc()
Returns a new
VkConditionalRenderingBeginInfoEXT instance allocated with memCalloc. |
static VkConditionalRenderingBeginInfoEXT.Buffer |
calloc(int capacity)
Returns a new
VkConditionalRenderingBeginInfoEXT.Buffer instance allocated with memCalloc. |
static VkConditionalRenderingBeginInfoEXT |
callocStack()
Returns a new
VkConditionalRenderingBeginInfoEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkConditionalRenderingBeginInfoEXT.Buffer |
callocStack(int capacity)
Returns a new
VkConditionalRenderingBeginInfoEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkConditionalRenderingBeginInfoEXT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkConditionalRenderingBeginInfoEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkConditionalRenderingBeginInfoEXT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkConditionalRenderingBeginInfoEXT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkConditionalRenderingBeginInfoEXT |
create()
Returns a new
VkConditionalRenderingBeginInfoEXT instance allocated with BufferUtils. |
static VkConditionalRenderingBeginInfoEXT.Buffer |
create(int capacity)
Returns a new
VkConditionalRenderingBeginInfoEXT.Buffer instance allocated with BufferUtils. |
static VkConditionalRenderingBeginInfoEXT |
create(long address)
Returns a new
VkConditionalRenderingBeginInfoEXT instance for the specified memory address. |
static VkConditionalRenderingBeginInfoEXT.Buffer |
create(long address,
int capacity)
Create a
VkConditionalRenderingBeginInfoEXT.Buffer instance at the specified memory. |
static VkConditionalRenderingBeginInfoEXT |
createSafe(long address)
|
static VkConditionalRenderingBeginInfoEXT.Buffer |
createSafe(long address,
int capacity)
|
int |
flags()
Returns the value of the
flags field. |
VkConditionalRenderingBeginInfoEXT |
flags(int value)
Sets the specified value to the
flags field. |
static VkConditionalRenderingBeginInfoEXT |
malloc()
Returns a new
VkConditionalRenderingBeginInfoEXT instance allocated with memAlloc. |
static VkConditionalRenderingBeginInfoEXT.Buffer |
malloc(int capacity)
Returns a new
VkConditionalRenderingBeginInfoEXT.Buffer instance allocated with memAlloc. |
static VkConditionalRenderingBeginInfoEXT |
mallocStack()
Returns a new
VkConditionalRenderingBeginInfoEXT instance allocated on the thread-local MemoryStack. |
static VkConditionalRenderingBeginInfoEXT.Buffer |
mallocStack(int capacity)
Returns a new
VkConditionalRenderingBeginInfoEXT.Buffer instance allocated on the thread-local MemoryStack. |
static VkConditionalRenderingBeginInfoEXT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkConditionalRenderingBeginInfoEXT.Buffer instance allocated on the specified MemoryStack. |
static VkConditionalRenderingBeginInfoEXT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkConditionalRenderingBeginInfoEXT instance allocated on the specified MemoryStack. |
static long |
nbuffer(long struct)
Unsafe version of
buffer(). |
static void |
nbuffer(long struct,
long value)
Unsafe version of
buffer. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static long |
noffset(long struct)
Unsafe version of
offset(). |
static void |
noffset(long struct,
long value)
Unsafe version of
offset. |
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. |
long |
offset()
Returns the value of the
offset field. |
VkConditionalRenderingBeginInfoEXT |
offset(long value)
Sets the specified value to the
offset field. |
long |
pNext()
Returns the value of the
pNext field. |
VkConditionalRenderingBeginInfoEXT |
pNext(long value)
Sets the specified value to the
pNext field. |
VkConditionalRenderingBeginInfoEXT |
set(int sType,
long pNext,
long buffer,
long offset,
int flags)
Initializes this struct with the specified values.
|
VkConditionalRenderingBeginInfoEXT |
set(VkConditionalRenderingBeginInfoEXT src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkConditionalRenderingBeginInfoEXT |
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 BUFFER
public static final int OFFSET
public static final int FLAGS
public VkConditionalRenderingBeginInfoEXT(java.nio.ByteBuffer container)
VkConditionalRenderingBeginInfoEXT 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 buffer()
buffer field.public long offset()
offset field.public int flags()
flags field.public VkConditionalRenderingBeginInfoEXT sType(int value)
sType field.public VkConditionalRenderingBeginInfoEXT pNext(long value)
pNext field.public VkConditionalRenderingBeginInfoEXT buffer(long value)
buffer field.public VkConditionalRenderingBeginInfoEXT offset(long value)
offset field.public VkConditionalRenderingBeginInfoEXT flags(int value)
flags field.public VkConditionalRenderingBeginInfoEXT set(int sType, long pNext, long buffer, long offset, int flags)
public VkConditionalRenderingBeginInfoEXT set(VkConditionalRenderingBeginInfoEXT src)
src - the source structpublic static VkConditionalRenderingBeginInfoEXT malloc()
VkConditionalRenderingBeginInfoEXT instance allocated with memAlloc. The instance must be explicitly freed.public static VkConditionalRenderingBeginInfoEXT calloc()
VkConditionalRenderingBeginInfoEXT instance allocated with memCalloc. The instance must be explicitly freed.public static VkConditionalRenderingBeginInfoEXT create()
VkConditionalRenderingBeginInfoEXT instance allocated with BufferUtils.public static VkConditionalRenderingBeginInfoEXT create(long address)
VkConditionalRenderingBeginInfoEXT instance for the specified memory address.@Nullable public static VkConditionalRenderingBeginInfoEXT createSafe(long address)
public static VkConditionalRenderingBeginInfoEXT.Buffer malloc(int capacity)
VkConditionalRenderingBeginInfoEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkConditionalRenderingBeginInfoEXT.Buffer calloc(int capacity)
VkConditionalRenderingBeginInfoEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkConditionalRenderingBeginInfoEXT.Buffer create(int capacity)
VkConditionalRenderingBeginInfoEXT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkConditionalRenderingBeginInfoEXT.Buffer create(long address, int capacity)
VkConditionalRenderingBeginInfoEXT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkConditionalRenderingBeginInfoEXT.Buffer createSafe(long address, int capacity)
public static VkConditionalRenderingBeginInfoEXT mallocStack()
VkConditionalRenderingBeginInfoEXT instance allocated on the thread-local MemoryStack.public static VkConditionalRenderingBeginInfoEXT callocStack()
VkConditionalRenderingBeginInfoEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkConditionalRenderingBeginInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
VkConditionalRenderingBeginInfoEXT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkConditionalRenderingBeginInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
VkConditionalRenderingBeginInfoEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkConditionalRenderingBeginInfoEXT.Buffer mallocStack(int capacity)
VkConditionalRenderingBeginInfoEXT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkConditionalRenderingBeginInfoEXT.Buffer callocStack(int capacity)
VkConditionalRenderingBeginInfoEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkConditionalRenderingBeginInfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkConditionalRenderingBeginInfoEXT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkConditionalRenderingBeginInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkConditionalRenderingBeginInfoEXT.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 nbuffer(long struct)
buffer().public static long noffset(long struct)
offset().public static int nflags(long struct)
flags().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nbuffer(long struct,
long value)
buffer.public static void noffset(long struct,
long value)
offset.public static void nflags(long struct,
int value)
flags.Copyright LWJGL. All Rights Reserved. License terms.