Package org.lwjgl.vulkan
Class VkRenderingInfoKHR
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkRenderingInfo>
org.lwjgl.vulkan.VkRenderingInfo
org.lwjgl.vulkan.VkRenderingInfoKHR
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct VkRenderingInfoKHR {
VkStructureType sType;
void const * pNext;
VkRenderingFlags flags;
VkRect2D renderArea;
uint32_t layerCount;
uint32_t viewMask;
uint32_t colorAttachmentCount;
VkRenderingAttachmentInfo const * pColorAttachments;
VkRenderingAttachmentInfo const * pDepthAttachment;
VkRenderingAttachmentInfo const * pStencilAttachment;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
Fields inherited from class org.lwjgl.vulkan.VkRenderingInfo
ALIGNOF, COLORATTACHMENTCOUNT, FLAGS, LAYERCOUNT, PCOLORATTACHMENTS, PDEPTHATTACHMENT, PNEXT, PSTENCILATTACHMENT, RENDERAREA, SIZEOF, STYPE, VIEWMASKFields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkRenderingInfoKHR(ByteBuffer container) Creates aVkRenderingInfoKHRinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkRenderingInfoKHRcalloc()Returns a newVkRenderingInfoKHRinstance allocated withmemCalloc.static VkRenderingInfoKHR.Buffercalloc(int capacity) Returns a newVkRenderingInfoKHR.Bufferinstance allocated withmemCalloc.static VkRenderingInfoKHR.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkRenderingInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkRenderingInfoKHRcalloc(MemoryStack stack) Returns a newVkRenderingInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkRenderingInfoKHRcreate()Returns a newVkRenderingInfoKHRinstance allocated withBufferUtils.static VkRenderingInfoKHR.Buffercreate(int capacity) Returns a newVkRenderingInfoKHR.Bufferinstance allocated withBufferUtils.static VkRenderingInfoKHRcreate(long address) Returns a newVkRenderingInfoKHRinstance for the specified memory address.static VkRenderingInfoKHR.Buffercreate(long address, int capacity) Create aVkRenderingInfoKHR.Bufferinstance at the specified memory.static @Nullable VkRenderingInfoKHRcreateSafe(long address) static @Nullable VkRenderingInfoKHR.BuffercreateSafe(long address, int capacity) flags(int value) Sets the specified value to theflagsfield.layerCount(int value) Sets the specified value to thelayerCountfield.static VkRenderingInfoKHRmalloc()Returns a newVkRenderingInfoKHRinstance allocated withmemAlloc.static VkRenderingInfoKHR.Buffermalloc(int capacity) Returns a newVkRenderingInfoKHR.Bufferinstance allocated withmemAlloc.static VkRenderingInfoKHR.Buffermalloc(int capacity, MemoryStack stack) Returns a newVkRenderingInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkRenderingInfoKHRmalloc(MemoryStack stack) Returns a newVkRenderingInfoKHRinstance allocated on the specifiedMemoryStack.pColorAttachments(@Nullable VkRenderingAttachmentInfo.Buffer value) Sets the address of the specifiedVkRenderingAttachmentInfo.Bufferto thepColorAttachmentsfield.pDepthAttachment(@Nullable VkRenderingAttachmentInfo value) Sets the address of the specifiedVkRenderingAttachmentInfoto thepDepthAttachmentfield.pNext(long value) Sets the specified value to thepNextfield.pStencilAttachment(@Nullable VkRenderingAttachmentInfo value) Sets the address of the specifiedVkRenderingAttachmentInfoto thepStencilAttachmentfield.renderArea(Consumer<VkRect2D> consumer) Passes therenderAreafield to the specifiedConsumer.renderArea(VkRect2D value) Copies the specifiedVkRect2Dto therenderAreafield.set(int sType, long pNext, int flags, VkRect2D renderArea, int layerCount, int viewMask, @Nullable VkRenderingAttachmentInfo.Buffer pColorAttachments, @Nullable VkRenderingAttachmentInfo pDepthAttachment, @Nullable VkRenderingAttachmentInfo pStencilAttachment) Initializes this struct with the specified values.set(VkRenderingInfoKHR src) Copies the specified struct data to this struct.sType(int value) Sets the specified value to thesTypefield.Sets theSTRUCTURE_TYPE_RENDERING_INFOvalue to thesTypefield.viewMask(int value) Sets the specified value to theviewMaskfield.Methods inherited from class org.lwjgl.vulkan.VkRenderingInfo
colorAttachmentCount, flags, layerCount, ncolorAttachmentCount, ncolorAttachmentCount, nflags, nflags, nlayerCount, nlayerCount, npColorAttachments, npColorAttachments, npDepthAttachment, npDepthAttachment, npNext, npNext, npStencilAttachment, npStencilAttachment, nrenderArea, nrenderArea, nsType, nsType, nviewMask, nviewMask, pColorAttachments, pDepthAttachment, pNext, pNext, pNext, pNext, pNext, pNext, pNext, pNext, pNext, pNext, pNext, pNext, pStencilAttachment, renderArea, set, sizeof, sType, validate, viewMaskMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
VkRenderingInfoKHR
Creates aVkRenderingInfoKHRinstance 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 Details
-
sType
Sets the specified value to thesTypefield.- Overrides:
sTypein classVkRenderingInfo
-
sType$Default
Sets theSTRUCTURE_TYPE_RENDERING_INFOvalue to thesTypefield.- Overrides:
sType$Defaultin classVkRenderingInfo
-
pNext
Sets the specified value to thepNextfield.- Overrides:
pNextin classVkRenderingInfo
-
flags
Sets the specified value to theflagsfield.- Overrides:
flagsin classVkRenderingInfo
-
renderArea
Copies the specifiedVkRect2Dto therenderAreafield.- Overrides:
renderAreain classVkRenderingInfo
-
renderArea
Passes therenderAreafield to the specifiedConsumer.- Overrides:
renderAreain classVkRenderingInfo
-
layerCount
Sets the specified value to thelayerCountfield.- Overrides:
layerCountin classVkRenderingInfo
-
viewMask
Sets the specified value to theviewMaskfield.- Overrides:
viewMaskin classVkRenderingInfo
-
pColorAttachments
Sets the address of the specifiedVkRenderingAttachmentInfo.Bufferto thepColorAttachmentsfield.- Overrides:
pColorAttachmentsin classVkRenderingInfo
-
pDepthAttachment
Sets the address of the specifiedVkRenderingAttachmentInfoto thepDepthAttachmentfield.- Overrides:
pDepthAttachmentin classVkRenderingInfo
-
pStencilAttachment
Sets the address of the specifiedVkRenderingAttachmentInfoto thepStencilAttachmentfield.- Overrides:
pStencilAttachmentin classVkRenderingInfo
-
set
public VkRenderingInfoKHR set(int sType, long pNext, int flags, VkRect2D renderArea, int layerCount, int viewMask, @Nullable VkRenderingAttachmentInfo.Buffer pColorAttachments, @Nullable VkRenderingAttachmentInfo pDepthAttachment, @Nullable VkRenderingAttachmentInfo pStencilAttachment) Initializes this struct with the specified values.- Overrides:
setin classVkRenderingInfo
-
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkRenderingInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkRenderingInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkRenderingInfoKHRinstance allocated withBufferUtils. -
create
Returns a newVkRenderingInfoKHRinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkRenderingInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkRenderingInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkRenderingInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkRenderingInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkRenderingInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkRenderingInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkRenderingInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkRenderingInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-