Package org.lwjgl.vulkan
Class VkRenderingInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkRenderingInfo
-
- org.lwjgl.vulkan.VkRenderingInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkRenderingInfoKHR extends VkRenderingInfo
SeeVkRenderingInfo.Layout
struct VkRenderingInfoKHR { VkStructureType sType; void const * pNext; VkRenderingFlags flags;VkRect2DrenderArea; uint32_t layerCount; uint32_t viewMask; uint32_t colorAttachmentCount;VkRenderingAttachmentInfoconst * pColorAttachments;VkRenderingAttachmentInfoconst * pDepthAttachment;VkRenderingAttachmentInfoconst * pStencilAttachment; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkRenderingInfoKHR.BufferAn array ofVkRenderingInfoKHRstructs.
-
Field Summary
-
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Fields inherited from class org.lwjgl.vulkan.VkRenderingInfo
ALIGNOF, COLORATTACHMENTCOUNT, FLAGS, LAYERCOUNT, PCOLORATTACHMENTS, PDEPTHATTACHMENT, PNEXT, PSTENCILATTACHMENT, RENDERAREA, SIZEOF, STYPE, VIEWMASK
-
-
Constructor Summary
Constructors Constructor Description VkRenderingInfoKHR(java.nio.ByteBuffer container)Creates aVkRenderingInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkRenderingInfoKHRcalloc()Returns a newVkRenderingInfoKHRinstance allocated withmemCalloc.static VkRenderingInfoKHR.Buffercalloc(int capacity)Returns a newVkRenderingInfoKHR.Bufferinstance allocated withmemCalloc.static VkRenderingInfoKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkRenderingInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkRenderingInfoKHRcalloc(org.lwjgl.system.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 VkRenderingInfoKHRcreateSafe(long address)static VkRenderingInfoKHR.BuffercreateSafe(long address, int capacity)VkRenderingInfoKHRflags(int value)Sets the specified value to theflagsfield.VkRenderingInfoKHRlayerCount(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, org.lwjgl.system.MemoryStack stack)Returns a newVkRenderingInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkRenderingInfoKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkRenderingInfoKHRinstance allocated on the specifiedMemoryStack.VkRenderingInfoKHRpColorAttachments(VkRenderingAttachmentInfo.Buffer value)Sets the address of the specifiedVkRenderingAttachmentInfo.Bufferto thepColorAttachmentsfield.VkRenderingInfoKHRpDepthAttachment(VkRenderingAttachmentInfo value)Sets the address of the specifiedVkRenderingAttachmentInfoto thepDepthAttachmentfield.VkRenderingInfoKHRpNext(long value)Sets the specified value to thepNextfield.VkRenderingInfoKHRpStencilAttachment(VkRenderingAttachmentInfo value)Sets the address of the specifiedVkRenderingAttachmentInfoto thepStencilAttachmentfield.VkRenderingInfoKHRrenderArea(java.util.function.Consumer<VkRect2D> consumer)Passes therenderAreafield to the specifiedConsumer.VkRenderingInfoKHRrenderArea(VkRect2D value)Copies the specifiedVkRect2Dto therenderAreafield.VkRenderingInfoKHRset(int sType, long pNext, int flags, VkRect2D renderArea, int layerCount, int viewMask, VkRenderingAttachmentInfo.Buffer pColorAttachments, VkRenderingAttachmentInfo pDepthAttachment, VkRenderingAttachmentInfo pStencilAttachment)Initializes this struct with the specified values.VkRenderingInfoKHRset(VkRenderingInfoKHR src)Copies the specified struct data to this struct.VkRenderingInfoKHRsType(int value)Sets the specified value to thesTypefield.VkRenderingInfoKHRsType$Default()Sets theSTRUCTURE_TYPE_RENDERING_INFOvalue to thesTypefield.VkRenderingInfoKHRviewMask(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, pStencilAttachment, renderArea, set, sizeof, sType, validate, viewMask
-
-
-
-
Constructor Detail
-
VkRenderingInfoKHR
public VkRenderingInfoKHR(java.nio.ByteBuffer container)
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 Detail
-
sType
public VkRenderingInfoKHR sType(int value)
Sets the specified value to thesTypefield.- Overrides:
sTypein classVkRenderingInfo
-
sType$Default
public VkRenderingInfoKHR sType$Default()
Sets theSTRUCTURE_TYPE_RENDERING_INFOvalue to thesTypefield.- Overrides:
sType$Defaultin classVkRenderingInfo
-
pNext
public VkRenderingInfoKHR pNext(long value)
Sets the specified value to thepNextfield.- Overrides:
pNextin classVkRenderingInfo
-
flags
public VkRenderingInfoKHR flags(int value)
Sets the specified value to theflagsfield.- Overrides:
flagsin classVkRenderingInfo
-
renderArea
public VkRenderingInfoKHR renderArea(VkRect2D value)
Copies the specifiedVkRect2Dto therenderAreafield.- Overrides:
renderAreain classVkRenderingInfo
-
renderArea
public VkRenderingInfoKHR renderArea(java.util.function.Consumer<VkRect2D> consumer)
Passes therenderAreafield to the specifiedConsumer.- Overrides:
renderAreain classVkRenderingInfo
-
layerCount
public VkRenderingInfoKHR layerCount(int value)
Sets the specified value to thelayerCountfield.- Overrides:
layerCountin classVkRenderingInfo
-
viewMask
public VkRenderingInfoKHR viewMask(int value)
Sets the specified value to theviewMaskfield.- Overrides:
viewMaskin classVkRenderingInfo
-
pColorAttachments
public VkRenderingInfoKHR pColorAttachments(@Nullable VkRenderingAttachmentInfo.Buffer value)
Sets the address of the specifiedVkRenderingAttachmentInfo.Bufferto thepColorAttachmentsfield.- Overrides:
pColorAttachmentsin classVkRenderingInfo
-
pDepthAttachment
public VkRenderingInfoKHR pDepthAttachment(@Nullable VkRenderingAttachmentInfo value)
Sets the address of the specifiedVkRenderingAttachmentInfoto thepDepthAttachmentfield.- Overrides:
pDepthAttachmentin classVkRenderingInfo
-
pStencilAttachment
public VkRenderingInfoKHR pStencilAttachment(@Nullable VkRenderingAttachmentInfo value)
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
public VkRenderingInfoKHR set(VkRenderingInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkRenderingInfoKHR malloc()
Returns a newVkRenderingInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkRenderingInfoKHR calloc()
Returns a newVkRenderingInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkRenderingInfoKHR create()
Returns a newVkRenderingInfoKHRinstance allocated withBufferUtils.
-
create
public static VkRenderingInfoKHR create(long address)
Returns a newVkRenderingInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkRenderingInfoKHR createSafe(long address)
-
malloc
public static VkRenderingInfoKHR.Buffer malloc(int capacity)
Returns a newVkRenderingInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkRenderingInfoKHR.Buffer calloc(int capacity)
Returns a newVkRenderingInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkRenderingInfoKHR.Buffer create(int capacity)
Returns a newVkRenderingInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkRenderingInfoKHR.Buffer create(long address, int capacity)
Create aVkRenderingInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkRenderingInfoKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkRenderingInfoKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderingInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkRenderingInfoKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderingInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkRenderingInfoKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderingInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkRenderingInfoKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderingInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-