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;
{@link VkRect2D VkRect2D} renderArea;
uint32_t layerCount;
uint32_t viewMask;
uint32_t colorAttachmentCount;
{@link VkRenderingAttachmentInfo VkRenderingAttachmentInfo} const * pColorAttachments;
{@link VkRenderingAttachmentInfo VkRenderingAttachmentInfo} const * pDepthAttachment;
{@link VkRenderingAttachmentInfo VkRenderingAttachmentInfo} const * pStencilAttachment;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested 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, VIEWMASK
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionVkRenderingInfoKHR
(ByteBuffer container) Creates aVkRenderingInfoKHR
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkRenderingInfoKHR
calloc()
Returns a newVkRenderingInfoKHR
instance allocated withmemCalloc
.static VkRenderingInfoKHR.Buffer
calloc
(int capacity) Returns a newVkRenderingInfoKHR.Buffer
instance allocated withmemCalloc
.static VkRenderingInfoKHR.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVkRenderingInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkRenderingInfoKHR
calloc
(MemoryStack stack) Returns a newVkRenderingInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkRenderingInfoKHR
create()
Returns a newVkRenderingInfoKHR
instance allocated withBufferUtils
.static VkRenderingInfoKHR.Buffer
create
(int capacity) Returns a newVkRenderingInfoKHR.Buffer
instance allocated withBufferUtils
.static VkRenderingInfoKHR
create
(long address) Returns a newVkRenderingInfoKHR
instance for the specified memory address.static VkRenderingInfoKHR.Buffer
create
(long address, int capacity) Create aVkRenderingInfoKHR.Buffer
instance at the specified memory.static @Nullable VkRenderingInfoKHR
createSafe
(long address) static @Nullable VkRenderingInfoKHR.Buffer
createSafe
(long address, int capacity) flags
(int value) Sets the specified value to theflags
field.layerCount
(int value) Sets the specified value to thelayerCount
field.static VkRenderingInfoKHR
malloc()
Returns a newVkRenderingInfoKHR
instance allocated withmemAlloc
.static VkRenderingInfoKHR.Buffer
malloc
(int capacity) Returns a newVkRenderingInfoKHR.Buffer
instance allocated withmemAlloc
.static VkRenderingInfoKHR.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVkRenderingInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkRenderingInfoKHR
malloc
(MemoryStack stack) Returns a newVkRenderingInfoKHR
instance allocated on the specifiedMemoryStack
.pColorAttachments
(@Nullable VkRenderingAttachmentInfo.Buffer value) Sets the address of the specifiedVkRenderingAttachmentInfo.Buffer
to thepColorAttachments
field.pDepthAttachment
(@Nullable VkRenderingAttachmentInfo value) Sets the address of the specifiedVkRenderingAttachmentInfo
to thepDepthAttachment
field.pNext
(long value) Sets the specified value to thepNext
field.pStencilAttachment
(@Nullable VkRenderingAttachmentInfo value) Sets the address of the specifiedVkRenderingAttachmentInfo
to thepStencilAttachment
field.renderArea
(Consumer<VkRect2D> consumer) Passes therenderArea
field to the specifiedConsumer
.renderArea
(VkRect2D value) Copies the specifiedVkRect2D
to therenderArea
field.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 thesType
field.Sets theSTRUCTURE_TYPE_RENDERING_INFO
value to thesType
field.viewMask
(int value) Sets the specified value to theviewMask
field.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, pStencilAttachment, renderArea, set, sizeof, sType, validate, viewMask
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
VkRenderingInfoKHR
Creates aVkRenderingInfoKHR
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sType
Sets the specified value to thesType
field.- Overrides:
sType
in classVkRenderingInfo
-
sType$Default
Sets theSTRUCTURE_TYPE_RENDERING_INFO
value to thesType
field.- Overrides:
sType$Default
in classVkRenderingInfo
-
pNext
Sets the specified value to thepNext
field.- Overrides:
pNext
in classVkRenderingInfo
-
flags
Sets the specified value to theflags
field.- Overrides:
flags
in classVkRenderingInfo
-
renderArea
Copies the specifiedVkRect2D
to therenderArea
field.- Overrides:
renderArea
in classVkRenderingInfo
-
renderArea
Passes therenderArea
field to the specifiedConsumer
.- Overrides:
renderArea
in classVkRenderingInfo
-
layerCount
Sets the specified value to thelayerCount
field.- Overrides:
layerCount
in classVkRenderingInfo
-
viewMask
Sets the specified value to theviewMask
field.- Overrides:
viewMask
in classVkRenderingInfo
-
pColorAttachments
Sets the address of the specifiedVkRenderingAttachmentInfo.Buffer
to thepColorAttachments
field.- Overrides:
pColorAttachments
in classVkRenderingInfo
-
pDepthAttachment
Sets the address of the specifiedVkRenderingAttachmentInfo
to thepDepthAttachment
field.- Overrides:
pDepthAttachment
in classVkRenderingInfo
-
pStencilAttachment
Sets the address of the specifiedVkRenderingAttachmentInfo
to thepStencilAttachment
field.- Overrides:
pStencilAttachment
in 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:
set
in classVkRenderingInfo
-
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVkRenderingInfoKHR
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkRenderingInfoKHR
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkRenderingInfoKHR
instance allocated withBufferUtils
. -
create
Returns a newVkRenderingInfoKHR
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkRenderingInfoKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkRenderingInfoKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkRenderingInfoKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkRenderingInfoKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newVkRenderingInfoKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkRenderingInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkRenderingInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkRenderingInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-