Package org.lwjgl.vulkan
Class VkSubpassBeginInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkSubpassBeginInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkSubpassBeginInfoKHR
public class VkSubpassBeginInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying subpass begin information.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_SUBPASS_BEGIN_INFOpNextmust beNULLcontentsmust be a validVkSubpassContentsvalue
See Also
CmdBeginRenderPass2,CmdBeginRenderPass2KHR,CmdNextSubpass2,CmdNextSubpass2KHRLayout
struct VkSubpassBeginInfo { VkStructureTypesType(); void const *pNext(); VkSubpassContentscontents(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkSubpassBeginInfo.BufferAn array ofVkSubpassBeginInfostructs.
-
Constructor Summary
Constructors Constructor Description VkSubpassBeginInfo(java.nio.ByteBuffer container)Creates aVkSubpassBeginInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkSubpassBeginInfocalloc()Returns a newVkSubpassBeginInfoinstance allocated withmemCalloc.static VkSubpassBeginInfo.Buffercalloc(int capacity)Returns a newVkSubpassBeginInfo.Bufferinstance allocated withmemCalloc.static VkSubpassBeginInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSubpassBeginInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSubpassBeginInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkSubpassBeginInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcontents()aVkSubpassContentsvalue specifying how the commands in the next subpass will be provided.VkSubpassBeginInfocontents(int value)Sets the specified value to thecontents()field.static VkSubpassBeginInfocreate()Returns a newVkSubpassBeginInfoinstance allocated withBufferUtils.static VkSubpassBeginInfo.Buffercreate(int capacity)Returns a newVkSubpassBeginInfo.Bufferinstance allocated withBufferUtils.static VkSubpassBeginInfocreate(long address)Returns a newVkSubpassBeginInfoinstance for the specified memory address.static VkSubpassBeginInfo.Buffercreate(long address, int capacity)Create aVkSubpassBeginInfo.Bufferinstance at the specified memory.static VkSubpassBeginInfocreateSafe(long address)static VkSubpassBeginInfo.BuffercreateSafe(long address, int capacity)static VkSubpassBeginInfomalloc()Returns a newVkSubpassBeginInfoinstance allocated withmemAlloc.static VkSubpassBeginInfo.Buffermalloc(int capacity)Returns a newVkSubpassBeginInfo.Bufferinstance allocated withmemAlloc.static VkSubpassBeginInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSubpassBeginInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkSubpassBeginInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkSubpassBeginInfoinstance allocated on the specifiedMemoryStack.static intncontents(long struct)Unsafe version ofcontents().static voidncontents(long struct, int value)Unsafe version ofcontents.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.longpNext()NULLor a pointer to a structure extending this structure.VkSubpassBeginInfopNext(long value)Sets the specified value to thepNext()field.VkSubpassBeginInfoset(int sType, long pNext, int contents)Initializes this struct with the specified values.VkSubpassBeginInfoset(VkSubpassBeginInfo src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkSubpassBeginInfosType(int value)Sets the specified value to thesType()field.VkSubpassBeginInfosType$Default()Sets theSTRUCTURE_TYPE_SUBPASS_BEGIN_INFOvalue to thesType()field.
-
-
-
Constructor Detail
-
VkSubpassBeginInfo
public VkSubpassBeginInfo(java.nio.ByteBuffer container)
Creates aVkSubpassBeginInfoinstance 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.
-
contents
public int contents()
aVkSubpassContentsvalue specifying how the commands in the next subpass will be provided.
-
sType
public VkSubpassBeginInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkSubpassBeginInfo sType$Default()
Sets theSTRUCTURE_TYPE_SUBPASS_BEGIN_INFOvalue to thesType()field.
-
pNext
public VkSubpassBeginInfo pNext(long value)
Sets the specified value to thepNext()field.
-
contents
public VkSubpassBeginInfo contents(int value)
Sets the specified value to thecontents()field.
-
set
public VkSubpassBeginInfo set(int sType, long pNext, int contents)
Initializes this struct with the specified values.
-
set
public VkSubpassBeginInfo set(VkSubpassBeginInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkSubpassBeginInfo malloc()
Returns a newVkSubpassBeginInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkSubpassBeginInfo calloc()
Returns a newVkSubpassBeginInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkSubpassBeginInfo create()
Returns a newVkSubpassBeginInfoinstance allocated withBufferUtils.
-
create
public static VkSubpassBeginInfo create(long address)
Returns a newVkSubpassBeginInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkSubpassBeginInfo createSafe(long address)
-
malloc
public static VkSubpassBeginInfo.Buffer malloc(int capacity)
Returns a newVkSubpassBeginInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkSubpassBeginInfo.Buffer calloc(int capacity)
Returns a newVkSubpassBeginInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkSubpassBeginInfo.Buffer create(int capacity)
Returns a newVkSubpassBeginInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkSubpassBeginInfo.Buffer create(long address, int capacity)
Create aVkSubpassBeginInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkSubpassBeginInfo.Buffer createSafe(long address, int capacity)
-
malloc
public static VkSubpassBeginInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassBeginInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkSubpassBeginInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassBeginInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkSubpassBeginInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassBeginInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkSubpassBeginInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassBeginInfo.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().
-
ncontents
public static int ncontents(long struct)
Unsafe version ofcontents().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
ncontents
public static void ncontents(long struct, int value)Unsafe version ofcontents.
-
-