Package org.lwjgl.vulkan
Class VkRenderPassBeginInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkRenderPassBeginInfo
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class VkRenderPassBeginInfo extends Struct
Khronos Reference Page
Vulkan SpecificationIndicates the render pass to begin an instance of, and the framebuffer the instance uses.
Valid Usage
sTypemust beSTRUCTURE_TYPE_RENDER_PASS_BEGIN_INFOpNextmust beNULLrenderPassmust be a validVkRenderPasshandleframebuffermust be a validVkFramebufferhandle- If
clearValueCountis not 0,pClearValuesmust be a pointer to an array ofclearValueCountVkClearValueunions - Each of
renderPassandframebuffermust have been created, allocated or retrieved from the sameVkDevice clearValueCountmust be greater than or equal to the number of attachments inrenderPassthat specify aloadOpofATTACHMENT_LOAD_OP_CLEAR
Member documentation
sType– the type of this structure. Must be:STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFOpNext– reserved for use by extensionsrenderPass– the render pass to begin an instance offramebuffer– the framebuffer containing the attachments that are used with the render passrenderArea– the render area that is affected by the render pass instanceclearValueCount– the number of elements inpClearValuespClearValues– an array ofVkClearValuestructures that contains clear values for each attachment, if the attachment uses aloadOpvalue ofATTACHMENT_LOAD_OP_CLEAR. The array is indexed by attachment number. Only elements corresponding to cleared attachments are used. Other elements ofpClearValuesare ignored.
Layout
struct VkRenderPassBeginInfo { VkStructureType sType; const void * pNext; VkRenderPass renderPass; VkFramebuffer framebuffer;VkRect2DrenderArea; uint32_t clearValueCount; const VkClearValue * pClearValues; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classVkRenderPassBeginInfo.BufferAn array ofVkRenderPassBeginInfostructs.-
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 VkRenderPassBeginInfo(java.nio.ByteBuffer container)Creates aVkRenderPassBeginInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static VkRenderPassBeginInfocalloc()Returns a newVkRenderPassBeginInfoinstance allocated withmemCalloc.static VkRenderPassBeginInfo.Buffercalloc(int capacity)Returns a newVkRenderPassBeginInfo.Bufferinstance allocated withmemCalloc.static VkRenderPassBeginInfocallocStack()Returns a newVkRenderPassBeginInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkRenderPassBeginInfo.BuffercallocStack(int capacity)Returns a newVkRenderPassBeginInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkRenderPassBeginInfo.BuffercallocStack(int capacity, MemoryStack stack)Returns a newVkRenderPassBeginInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkRenderPassBeginInfocallocStack(MemoryStack stack)Returns a newVkRenderPassBeginInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intclearValueCount()Returns the value of theclearValueCountfield.static VkRenderPassBeginInfocreate()Returns a newVkRenderPassBeginInfoinstance allocated withBufferUtils.static VkRenderPassBeginInfo.Buffercreate(int capacity)Returns a newVkRenderPassBeginInfo.Bufferinstance allocated withBufferUtils.static VkRenderPassBeginInfocreate(long address)Returns a newVkRenderPassBeginInfoinstance for the specified memory address ornullif the address isNULL.static VkRenderPassBeginInfo.Buffercreate(long address, int capacity)Create aVkRenderPassBeginInfo.Bufferinstance at the specified memory.longframebuffer()Returns the value of theframebufferfield.VkRenderPassBeginInfoframebuffer(long value)Sets the specified value to theframebufferfield.static VkRenderPassBeginInfomalloc()Returns a newVkRenderPassBeginInfoinstance allocated withmemAlloc.static VkRenderPassBeginInfo.Buffermalloc(int capacity)Returns a newVkRenderPassBeginInfo.Bufferinstance allocated withmemAlloc.static VkRenderPassBeginInfomallocStack()Returns a newVkRenderPassBeginInfoinstance allocated on the thread-localMemoryStack.static VkRenderPassBeginInfo.BuffermallocStack(int capacity)Returns a newVkRenderPassBeginInfo.Bufferinstance allocated on the thread-localMemoryStack.static VkRenderPassBeginInfo.BuffermallocStack(int capacity, MemoryStack stack)Returns a newVkRenderPassBeginInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkRenderPassBeginInfomallocStack(MemoryStack stack)Returns a newVkRenderPassBeginInfoinstance allocated on the specifiedMemoryStack.VkRenderPassBeginInfonset(long struct)Unsafe version ofset.VkClearValue.BufferpClearValues()Returns aVkClearValue.Bufferview of the struct array pointed to by thepClearValuesfield.VkRenderPassBeginInfopClearValues(VkClearValue.Buffer value)Sets the address of the specifiedVkClearValue.Bufferto thepClearValuesfield.longpNext()Returns the value of thepNextfield.VkRenderPassBeginInfopNext(long value)Sets the specified value to thepNextfield.VkRect2DrenderArea()Returns aVkRect2Dview of therenderAreafield.VkRenderPassBeginInforenderArea(VkRect2D value)Copies the specifiedVkRect2Dto therenderAreafield.longrenderPass()Returns the value of therenderPassfield.VkRenderPassBeginInforenderPass(long value)Sets the specified value to therenderPassfield.VkRenderPassBeginInfoset(int sType, long pNext, long renderPass, long framebuffer, VkRect2D renderArea, VkClearValue.Buffer pClearValues)Initializes this struct with the specified values.VkRenderPassBeginInfoset(VkRenderPassBeginInfo src)Copies the specified struct data to this struct.intsizeof()Returns thesizeof(struct).intsType()Returns the value of thesTypefield.VkRenderPassBeginInfosType(int value)Sets the specified value to thesTypefield.static voidvalidate(long struct)Validates pointer members that should not beNULL.static voidvalidate(long array, int count)CallsVkRenderPassBeginInfo.validate(long)for each struct contained in the specified struct array.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
VkRenderPassBeginInfo
public VkRenderPassBeginInfo(java.nio.ByteBuffer container)
Creates aVkRenderPassBeginInfoinstance 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.
-
renderPass
public long renderPass()
Returns the value of therenderPassfield.
-
framebuffer
public long framebuffer()
Returns the value of theframebufferfield.
-
clearValueCount
public int clearValueCount()
Returns the value of theclearValueCountfield.
-
pClearValues
public VkClearValue.Buffer pClearValues()
Returns aVkClearValue.Bufferview of the struct array pointed to by thepClearValuesfield.
-
sType
public VkRenderPassBeginInfo sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkRenderPassBeginInfo pNext(long value)
Sets the specified value to thepNextfield.
-
renderPass
public VkRenderPassBeginInfo renderPass(long value)
Sets the specified value to therenderPassfield.
-
framebuffer
public VkRenderPassBeginInfo framebuffer(long value)
Sets the specified value to theframebufferfield.
-
renderArea
public VkRenderPassBeginInfo renderArea(VkRect2D value)
Copies the specifiedVkRect2Dto therenderAreafield.
-
pClearValues
public VkRenderPassBeginInfo pClearValues(VkClearValue.Buffer value)
Sets the address of the specifiedVkClearValue.Bufferto thepClearValuesfield.
-
set
public VkRenderPassBeginInfo set(int sType, long pNext, long renderPass, long framebuffer, VkRect2D renderArea, VkClearValue.Buffer pClearValues)
Initializes this struct with the specified values.
-
nset
public VkRenderPassBeginInfo nset(long struct)
Unsafe version ofset.
-
set
public VkRenderPassBeginInfo set(VkRenderPassBeginInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkRenderPassBeginInfo malloc()
Returns a newVkRenderPassBeginInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkRenderPassBeginInfo calloc()
Returns a newVkRenderPassBeginInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkRenderPassBeginInfo create()
Returns a newVkRenderPassBeginInfoinstance allocated withBufferUtils.
-
create
public static VkRenderPassBeginInfo create(long address)
Returns a newVkRenderPassBeginInfoinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static VkRenderPassBeginInfo.Buffer malloc(int capacity)
Returns a newVkRenderPassBeginInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkRenderPassBeginInfo.Buffer calloc(int capacity)
Returns a newVkRenderPassBeginInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkRenderPassBeginInfo.Buffer create(int capacity)
Returns a newVkRenderPassBeginInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkRenderPassBeginInfo.Buffer create(long address, int capacity)
Create aVkRenderPassBeginInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static VkRenderPassBeginInfo mallocStack()
Returns a newVkRenderPassBeginInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkRenderPassBeginInfo callocStack()
Returns a newVkRenderPassBeginInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkRenderPassBeginInfo mallocStack(MemoryStack stack)
Returns a newVkRenderPassBeginInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkRenderPassBeginInfo callocStack(MemoryStack stack)
Returns a newVkRenderPassBeginInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkRenderPassBeginInfo.Buffer mallocStack(int capacity)
Returns a newVkRenderPassBeginInfo.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkRenderPassBeginInfo.Buffer callocStack(int capacity)
Returns a newVkRenderPassBeginInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkRenderPassBeginInfo.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkRenderPassBeginInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkRenderPassBeginInfo.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newVkRenderPassBeginInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
validate
public static void validate(long array, int count)CallsVkRenderPassBeginInfo.validate(long)for each struct contained in the specified struct array.- Parameters:
array- the struct array to validatecount- the number of structs inarray
-
-