Package org.lwjgl.vulkan
Class VkRenderingInfo
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
- Direct Known Subclasses:
VkRenderingInfoKHR
struct VkRenderingInfo {
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
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkRenderingInfo(ByteBuffer container) Creates aVkRenderingInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkRenderingInfocalloc()Returns a newVkRenderingInfoinstance allocated withmemCalloc.static VkRenderingInfo.Buffercalloc(int capacity) Returns a newVkRenderingInfo.Bufferinstance allocated withmemCalloc.static VkRenderingInfo.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkRenderingInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkRenderingInfocalloc(MemoryStack stack) Returns a newVkRenderingInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intstatic VkRenderingInfocreate()Returns a newVkRenderingInfoinstance allocated withBufferUtils.static VkRenderingInfo.Buffercreate(int capacity) Returns a newVkRenderingInfo.Bufferinstance allocated withBufferUtils.static VkRenderingInfocreate(long address) Returns a newVkRenderingInfoinstance for the specified memory address.static VkRenderingInfo.Buffercreate(long address, int capacity) Create aVkRenderingInfo.Bufferinstance at the specified memory.static @Nullable VkRenderingInfocreateSafe(long address) static @Nullable VkRenderingInfo.BuffercreateSafe(long address, int capacity) intflags()flags(int value) Sets the specified value to theflagsfield.intlayerCount(int value) Sets the specified value to thelayerCountfield.static VkRenderingInfomalloc()Returns a newVkRenderingInfoinstance allocated withmemAlloc.static VkRenderingInfo.Buffermalloc(int capacity) Returns a newVkRenderingInfo.Bufferinstance allocated withmemAlloc.static VkRenderingInfo.Buffermalloc(int capacity, MemoryStack stack) Returns a newVkRenderingInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkRenderingInfomalloc(MemoryStack stack) Returns a newVkRenderingInfoinstance allocated on the specifiedMemoryStack.static intncolorAttachmentCount(long struct) Unsafe version ofcolorAttachmentCount().static voidncolorAttachmentCount(long struct, int value) Sets the specified value to thecolorAttachmentCountfield of the specifiedstruct.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static intnlayerCount(long struct) Unsafe version oflayerCount().static voidnlayerCount(long struct, int value) Unsafe version oflayerCount.static @Nullable VkRenderingAttachmentInfo.BuffernpColorAttachments(long struct) Unsafe version ofpColorAttachments().static voidnpColorAttachments(long struct, @Nullable VkRenderingAttachmentInfo.Buffer value) Unsafe version ofpColorAttachments.static @Nullable VkRenderingAttachmentInfonpDepthAttachment(long struct) Unsafe version ofpDepthAttachment().static voidnpDepthAttachment(long struct, @Nullable VkRenderingAttachmentInfo value) Unsafe version ofpDepthAttachment.static longnpNext(long struct) Unsafe version ofpNext().static voidnpNext(long struct, long value) Unsafe version ofpNext.static @Nullable VkRenderingAttachmentInfonpStencilAttachment(long struct) Unsafe version ofpStencilAttachment().static voidnpStencilAttachment(long struct, @Nullable VkRenderingAttachmentInfo value) Unsafe version ofpStencilAttachment.static VkRect2DnrenderArea(long struct) Unsafe version ofrenderArea().static voidnrenderArea(long struct, VkRect2D value) Unsafe version ofrenderArea.static intnsType(long struct) Unsafe version ofsType().static voidnsType(long struct, int value) Unsafe version ofsType.static intnviewMask(long struct) Unsafe version ofviewMask().static voidnviewMask(long struct, int value) Unsafe version ofviewMask.@Nullable VkRenderingAttachmentInfo.BufferpColorAttachments(@Nullable VkRenderingAttachmentInfo.Buffer value) Sets the address of the specifiedVkRenderingAttachmentInfo.Bufferto thepColorAttachmentsfield.@Nullable VkRenderingAttachmentInfopDepthAttachment(@Nullable VkRenderingAttachmentInfo value) Sets the address of the specifiedVkRenderingAttachmentInfoto thepDepthAttachmentfield.longpNext()pNext(long value) Sets the specified value to thepNextfield.Prepends the specifiedVkDeviceGroupRenderPassBeginInfovalue to thepNextchain.Prepends the specifiedVkDeviceGroupRenderPassBeginInfoKHRvalue to thepNextchain.Prepends the specifiedVkMultisampledRenderToSingleSampledInfoEXTvalue to thepNextchain.Prepends the specifiedVkMultiviewPerViewAttributesInfoNVXvalue to thepNextchain.Prepends the specifiedVkMultiviewPerViewRenderAreasRenderPassBeginInfoQCOMvalue to thepNextchain.Prepends the specifiedVkRenderingFragmentDensityMapAttachmentInfoEXTvalue to thepNextchain.Prepends the specifiedVkRenderingFragmentShadingRateAttachmentInfoKHRvalue to thepNextchain.Prepends the specifiedVkRenderPassPerformanceCountersByRegionBeginInfoARMvalue to thepNextchain.Prepends the specifiedVkRenderPassStripeBeginInfoARMvalue to thepNextchain.Prepends the specifiedVkRenderPassTileShadingCreateInfoQCOMvalue to thepNextchain.pNext(VkTileMemorySizeInfoQCOM value) Prepends the specifiedVkTileMemorySizeInfoQCOMvalue to thepNextchain.@Nullable VkRenderingAttachmentInfopStencilAttachment(@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(VkRenderingInfo src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intsType()sType(int value) Sets the specified value to thesTypefield.Sets theSTRUCTURE_TYPE_RENDERING_INFOvalue to thesTypefield.static voidvalidate(long struct) Validates pointer members that should not beNULL.intviewMask()viewMask(int value) Sets the specified value to theviewMaskfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
STYPE
public static final int STYPEThe struct member offsets. -
PNEXT
public static final int PNEXTThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
RENDERAREA
public static final int RENDERAREAThe struct member offsets. -
LAYERCOUNT
public static final int LAYERCOUNTThe struct member offsets. -
VIEWMASK
public static final int VIEWMASKThe struct member offsets. -
COLORATTACHMENTCOUNT
public static final int COLORATTACHMENTCOUNTThe struct member offsets. -
PCOLORATTACHMENTS
public static final int PCOLORATTACHMENTSThe struct member offsets. -
PDEPTHATTACHMENT
public static final int PDEPTHATTACHMENTThe struct member offsets. -
PSTENCILATTACHMENT
public static final int PSTENCILATTACHMENTThe struct member offsets.
-
-
Constructor Details
-
VkRenderingInfo
Creates aVkRenderingInfoinstance 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
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkRenderingInfo>
-
sType
public int sType()- Returns:
- the value of the
sTypefield.
-
pNext
public long pNext()- Returns:
- the value of the
pNextfield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
renderArea
- Returns:
- a
VkRect2Dview of therenderAreafield.
-
layerCount
public int layerCount()- Returns:
- the value of the
layerCountfield.
-
viewMask
public int viewMask()- Returns:
- the value of the
viewMaskfield.
-
colorAttachmentCount
public int colorAttachmentCount()- Returns:
- the value of the
colorAttachmentCountfield.
-
pColorAttachments
- Returns:
- a
VkRenderingAttachmentInfo.Bufferview of the struct array pointed to by thepColorAttachmentsfield.
-
pDepthAttachment
- Returns:
- a
VkRenderingAttachmentInfoview of the struct pointed to by thepDepthAttachmentfield.
-
pStencilAttachment
- Returns:
- a
VkRenderingAttachmentInfoview of the struct pointed to by thepStencilAttachmentfield.
-
sType
Sets the specified value to thesTypefield. -
sType$Default
Sets theSTRUCTURE_TYPE_RENDERING_INFOvalue to thesTypefield. -
pNext
Sets the specified value to thepNextfield. -
pNext
Prepends the specifiedVkDeviceGroupRenderPassBeginInfovalue to thepNextchain. -
pNext
Prepends the specifiedVkDeviceGroupRenderPassBeginInfoKHRvalue to thepNextchain. -
pNext
Prepends the specifiedVkMultisampledRenderToSingleSampledInfoEXTvalue to thepNextchain. -
pNext
Prepends the specifiedVkMultiviewPerViewAttributesInfoNVXvalue to thepNextchain. -
pNext
Prepends the specifiedVkMultiviewPerViewRenderAreasRenderPassBeginInfoQCOMvalue to thepNextchain. -
pNext
Prepends the specifiedVkRenderPassPerformanceCountersByRegionBeginInfoARMvalue to thepNextchain. -
pNext
Prepends the specifiedVkRenderPassStripeBeginInfoARMvalue to thepNextchain. -
pNext
Prepends the specifiedVkRenderPassTileShadingCreateInfoQCOMvalue to thepNextchain. -
pNext
Prepends the specifiedVkRenderingFragmentDensityMapAttachmentInfoEXTvalue to thepNextchain. -
pNext
Prepends the specifiedVkRenderingFragmentShadingRateAttachmentInfoKHRvalue to thepNextchain. -
pNext
Prepends the specifiedVkTileMemorySizeInfoQCOMvalue to thepNextchain. -
flags
Sets the specified value to theflagsfield. -
renderArea
Copies the specifiedVkRect2Dto therenderAreafield. -
renderArea
Passes therenderAreafield to the specifiedConsumer. -
layerCount
Sets the specified value to thelayerCountfield. -
viewMask
Sets the specified value to theviewMaskfield. -
pColorAttachments
Sets the address of the specifiedVkRenderingAttachmentInfo.Bufferto thepColorAttachmentsfield. -
pDepthAttachment
Sets the address of the specifiedVkRenderingAttachmentInfoto thepDepthAttachmentfield. -
pStencilAttachment
Sets the address of the specifiedVkRenderingAttachmentInfoto thepStencilAttachmentfield. -
set
public VkRenderingInfo 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
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkRenderingInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkRenderingInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkRenderingInfoinstance allocated withBufferUtils. -
create
Returns a newVkRenderingInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkRenderingInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkRenderingInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkRenderingInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkRenderingInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkRenderingInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkRenderingInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkRenderingInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkRenderingInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nsType
public static int nsType(long struct) Unsafe version ofsType(). -
npNext
public static long npNext(long struct) Unsafe version ofpNext(). -
nflags
public static int nflags(long struct) Unsafe version offlags(). -
nrenderArea
Unsafe version ofrenderArea(). -
nlayerCount
public static int nlayerCount(long struct) Unsafe version oflayerCount(). -
nviewMask
public static int nviewMask(long struct) Unsafe version ofviewMask(). -
ncolorAttachmentCount
public static int ncolorAttachmentCount(long struct) Unsafe version ofcolorAttachmentCount(). -
npColorAttachments
Unsafe version ofpColorAttachments(). -
npDepthAttachment
Unsafe version ofpDepthAttachment(). -
npStencilAttachment
Unsafe version ofpStencilAttachment(). -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags. -
nrenderArea
Unsafe version ofrenderArea. -
nlayerCount
public static void nlayerCount(long struct, int value) Unsafe version oflayerCount. -
nviewMask
public static void nviewMask(long struct, int value) Unsafe version ofviewMask. -
ncolorAttachmentCount
public static void ncolorAttachmentCount(long struct, int value) Sets the specified value to thecolorAttachmentCountfield of the specifiedstruct. -
npColorAttachments
public static void npColorAttachments(long struct, @Nullable VkRenderingAttachmentInfo.Buffer value) Unsafe version ofpColorAttachments. -
npDepthAttachment
Unsafe version ofpDepthAttachment. -
npStencilAttachment
Unsafe version ofpStencilAttachment. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-