Package org.lwjgl.vulkan
Class VkSubpassDescription2
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
- Direct Known Subclasses:
VkSubpassDescription2KHR
struct VkSubpassDescription2 {
VkStructureType sType;
void const * pNext;
VkSubpassDescriptionFlags flags;
VkPipelineBindPoint pipelineBindPoint;
uint32_t viewMask;
uint32_t inputAttachmentCount;
VkAttachmentReference2 const * pInputAttachments;
uint32_t colorAttachmentCount;
VkAttachmentReference2 const * pColorAttachments;
VkAttachmentReference2 const * pResolveAttachments;
VkAttachmentReference2 const * pDepthStencilAttachment;
uint32_t preserveAttachmentCount;
uint32_t const * pPreserveAttachments;
}-
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 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
ConstructorsConstructorDescriptionVkSubpassDescription2(ByteBuffer container) Creates aVkSubpassDescription2instance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkSubpassDescription2calloc()Returns a newVkSubpassDescription2instance allocated withmemCalloc.static VkSubpassDescription2.Buffercalloc(int capacity) Returns a newVkSubpassDescription2.Bufferinstance allocated withmemCalloc.static VkSubpassDescription2.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkSubpassDescription2.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSubpassDescription2calloc(MemoryStack stack) Returns a newVkSubpassDescription2instance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcolorAttachmentCount(int value) Sets the specified value to thecolorAttachmentCountfield.static VkSubpassDescription2create()Returns a newVkSubpassDescription2instance allocated withBufferUtils.static VkSubpassDescription2.Buffercreate(int capacity) Returns a newVkSubpassDescription2.Bufferinstance allocated withBufferUtils.static VkSubpassDescription2create(long address) Returns a newVkSubpassDescription2instance for the specified memory address.static VkSubpassDescription2.Buffercreate(long address, int capacity) Create aVkSubpassDescription2.Bufferinstance at the specified memory.static @Nullable VkSubpassDescription2createSafe(long address) static @Nullable VkSubpassDescription2.BuffercreateSafe(long address, int capacity) intflags()flags(int value) Sets the specified value to theflagsfield.intstatic VkSubpassDescription2malloc()Returns a newVkSubpassDescription2instance allocated withmemAlloc.static VkSubpassDescription2.Buffermalloc(int capacity) Returns a newVkSubpassDescription2.Bufferinstance allocated withmemAlloc.static VkSubpassDescription2.Buffermalloc(int capacity, MemoryStack stack) Returns a newVkSubpassDescription2.Bufferinstance allocated on the specifiedMemoryStack.static VkSubpassDescription2malloc(MemoryStack stack) Returns a newVkSubpassDescription2instance 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 intninputAttachmentCount(long struct) Unsafe version ofinputAttachmentCount().static voidninputAttachmentCount(long struct, int value) Sets the specified value to theinputAttachmentCountfield of the specifiedstruct.static @Nullable VkAttachmentReference2.BuffernpColorAttachments(long struct) Unsafe version ofpColorAttachments().static voidnpColorAttachments(long struct, @Nullable VkAttachmentReference2.Buffer value) Unsafe version ofpColorAttachments.static @Nullable VkAttachmentReference2npDepthStencilAttachment(long struct) Unsafe version ofpDepthStencilAttachment().static voidnpDepthStencilAttachment(long struct, @Nullable VkAttachmentReference2 value) Unsafe version ofpDepthStencilAttachment.static @Nullable VkAttachmentReference2.BuffernpInputAttachments(long struct) Unsafe version ofpInputAttachments().static voidnpInputAttachments(long struct, @Nullable VkAttachmentReference2.Buffer value) Unsafe version ofpInputAttachments.static intnpipelineBindPoint(long struct) Unsafe version ofpipelineBindPoint().static voidnpipelineBindPoint(long struct, int value) Unsafe version ofpipelineBindPoint.static longnpNext(long struct) Unsafe version ofpNext().static voidnpNext(long struct, long value) Unsafe version ofpNext.static @Nullable IntBuffernpPreserveAttachments(long struct) Unsafe version ofpPreserveAttachments.static voidnpPreserveAttachments(long struct, @Nullable IntBuffer value) Unsafe version ofpPreserveAttachments.static intnpreserveAttachmentCount(long struct) Unsafe version ofpreserveAttachmentCount().static voidnpreserveAttachmentCount(long struct, int value) Sets the specified value to thepreserveAttachmentCountfield of the specifiedstruct.static @Nullable VkAttachmentReference2.BuffernpResolveAttachments(long struct) Unsafe version ofpResolveAttachments().static voidnpResolveAttachments(long struct, @Nullable VkAttachmentReference2.Buffer value) Unsafe version ofpResolveAttachments.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 VkAttachmentReference2.BufferpColorAttachments(@Nullable VkAttachmentReference2.Buffer value) Sets the address of the specifiedVkAttachmentReference2.Bufferto thepColorAttachmentsfield.@Nullable VkAttachmentReference2pDepthStencilAttachment(@Nullable VkAttachmentReference2 value) Sets the address of the specifiedVkAttachmentReference2to thepDepthStencilAttachmentfield.@Nullable VkAttachmentReference2.BufferpInputAttachments(@Nullable VkAttachmentReference2.Buffer value) Sets the address of the specifiedVkAttachmentReference2.Bufferto thepInputAttachmentsfield.intpipelineBindPoint(int value) Sets the specified value to thepipelineBindPointfield.longpNext()pNext(long value) Sets the specified value to thepNextfield.Prepends the specifiedVkFragmentShadingRateAttachmentInfoKHRvalue to thepNextchain.Prepends the specifiedVkMultisampledRenderToSingleSampledInfoEXTvalue to thepNextchain.Prepends the specifiedVkRenderPassCreationControlEXTvalue to thepNextchain.Prepends the specifiedVkRenderPassSubpassFeedbackCreateInfoEXTvalue to thepNextchain.Prepends the specifiedVkSubpassDescriptionDepthStencilResolvevalue to thepNextchain.Prepends the specifiedVkSubpassDescriptionDepthStencilResolveKHRvalue to thepNextchain.@Nullable IntBufferpPreserveAttachments(@Nullable IntBuffer value) Sets the address of the specifiedIntBufferto thepPreserveAttachmentsfield.int@Nullable VkAttachmentReference2.BufferpResolveAttachments(@Nullable VkAttachmentReference2.Buffer value) Sets the address of the specifiedVkAttachmentReference2.Bufferto thepResolveAttachmentsfield.set(int sType, long pNext, int flags, int pipelineBindPoint, int viewMask, @Nullable VkAttachmentReference2.Buffer pInputAttachments, int colorAttachmentCount, @Nullable VkAttachmentReference2.Buffer pColorAttachments, @Nullable VkAttachmentReference2.Buffer pResolveAttachments, @Nullable VkAttachmentReference2 pDepthStencilAttachment, @Nullable IntBuffer pPreserveAttachments) Initializes this struct with the specified values.set(VkSubpassDescription2 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_SUBPASS_DESCRIPTION_2value 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. -
PIPELINEBINDPOINT
public static final int PIPELINEBINDPOINTThe struct member offsets. -
VIEWMASK
public static final int VIEWMASKThe struct member offsets. -
INPUTATTACHMENTCOUNT
public static final int INPUTATTACHMENTCOUNTThe struct member offsets. -
PINPUTATTACHMENTS
public static final int PINPUTATTACHMENTSThe struct member offsets. -
COLORATTACHMENTCOUNT
public static final int COLORATTACHMENTCOUNTThe struct member offsets. -
PCOLORATTACHMENTS
public static final int PCOLORATTACHMENTSThe struct member offsets. -
PRESOLVEATTACHMENTS
public static final int PRESOLVEATTACHMENTSThe struct member offsets. -
PDEPTHSTENCILATTACHMENT
public static final int PDEPTHSTENCILATTACHMENTThe struct member offsets. -
PRESERVEATTACHMENTCOUNT
public static final int PRESERVEATTACHMENTCOUNTThe struct member offsets. -
PPRESERVEATTACHMENTS
public static final int PPRESERVEATTACHMENTSThe struct member offsets.
-
-
Constructor Details
-
VkSubpassDescription2
Creates aVkSubpassDescription2instance 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<VkSubpassDescription2>
-
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.
-
pipelineBindPoint
public int pipelineBindPoint()- Returns:
- the value of the
pipelineBindPointfield.
-
viewMask
public int viewMask()- Returns:
- the value of the
viewMaskfield.
-
inputAttachmentCount
public int inputAttachmentCount()- Returns:
- the value of the
inputAttachmentCountfield.
-
pInputAttachments
- Returns:
- a
VkAttachmentReference2.Bufferview of the struct array pointed to by thepInputAttachmentsfield.
-
colorAttachmentCount
public int colorAttachmentCount()- Returns:
- the value of the
colorAttachmentCountfield.
-
pColorAttachments
- Returns:
- a
VkAttachmentReference2.Bufferview of the struct array pointed to by thepColorAttachmentsfield.
-
pResolveAttachments
- Returns:
- a
VkAttachmentReference2.Bufferview of the struct array pointed to by thepResolveAttachmentsfield.
-
pDepthStencilAttachment
- Returns:
- a
VkAttachmentReference2view of the struct pointed to by thepDepthStencilAttachmentfield.
-
preserveAttachmentCount
public int preserveAttachmentCount()- Returns:
- the value of the
preserveAttachmentCountfield.
-
pPreserveAttachments
- Returns:
- a
IntBufferview of the data pointed to by thepPreserveAttachmentsfield.
-
sType
Sets the specified value to thesTypefield. -
sType$Default
Sets theSTRUCTURE_TYPE_SUBPASS_DESCRIPTION_2value to thesTypefield. -
pNext
Sets the specified value to thepNextfield. -
pNext
Prepends the specifiedVkFragmentShadingRateAttachmentInfoKHRvalue to thepNextchain. -
pNext
Prepends the specifiedVkMultisampledRenderToSingleSampledInfoEXTvalue to thepNextchain. -
pNext
Prepends the specifiedVkRenderPassCreationControlEXTvalue to thepNextchain. -
pNext
Prepends the specifiedVkRenderPassSubpassFeedbackCreateInfoEXTvalue to thepNextchain. -
pNext
Prepends the specifiedVkSubpassDescriptionDepthStencilResolvevalue to thepNextchain. -
pNext
Prepends the specifiedVkSubpassDescriptionDepthStencilResolveKHRvalue to thepNextchain. -
flags
Sets the specified value to theflagsfield. -
pipelineBindPoint
Sets the specified value to thepipelineBindPointfield. -
viewMask
Sets the specified value to theviewMaskfield. -
pInputAttachments
Sets the address of the specifiedVkAttachmentReference2.Bufferto thepInputAttachmentsfield. -
colorAttachmentCount
Sets the specified value to thecolorAttachmentCountfield. -
pColorAttachments
Sets the address of the specifiedVkAttachmentReference2.Bufferto thepColorAttachmentsfield. -
pResolveAttachments
Sets the address of the specifiedVkAttachmentReference2.Bufferto thepResolveAttachmentsfield. -
pDepthStencilAttachment
Sets the address of the specifiedVkAttachmentReference2to thepDepthStencilAttachmentfield. -
pPreserveAttachments
Sets the address of the specifiedIntBufferto thepPreserveAttachmentsfield. -
set
public VkSubpassDescription2 set(int sType, long pNext, int flags, int pipelineBindPoint, int viewMask, @Nullable VkAttachmentReference2.Buffer pInputAttachments, int colorAttachmentCount, @Nullable VkAttachmentReference2.Buffer pColorAttachments, @Nullable VkAttachmentReference2.Buffer pResolveAttachments, @Nullable VkAttachmentReference2 pDepthStencilAttachment, @Nullable IntBuffer pPreserveAttachments) 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 newVkSubpassDescription2instance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkSubpassDescription2instance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkSubpassDescription2instance allocated withBufferUtils. -
create
Returns a newVkSubpassDescription2instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkSubpassDescription2.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkSubpassDescription2.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkSubpassDescription2.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkSubpassDescription2.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkSubpassDescription2instance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkSubpassDescription2instance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkSubpassDescription2.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkSubpassDescription2.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(). -
npipelineBindPoint
public static int npipelineBindPoint(long struct) Unsafe version ofpipelineBindPoint(). -
nviewMask
public static int nviewMask(long struct) Unsafe version ofviewMask(). -
ninputAttachmentCount
public static int ninputAttachmentCount(long struct) Unsafe version ofinputAttachmentCount(). -
npInputAttachments
Unsafe version ofpInputAttachments(). -
ncolorAttachmentCount
public static int ncolorAttachmentCount(long struct) Unsafe version ofcolorAttachmentCount(). -
npColorAttachments
Unsafe version ofpColorAttachments(). -
npResolveAttachments
Unsafe version ofpResolveAttachments(). -
npDepthStencilAttachment
Unsafe version ofpDepthStencilAttachment(). -
npreserveAttachmentCount
public static int npreserveAttachmentCount(long struct) Unsafe version ofpreserveAttachmentCount(). -
npPreserveAttachments
Unsafe version ofpPreserveAttachments. -
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. -
npipelineBindPoint
public static void npipelineBindPoint(long struct, int value) Unsafe version ofpipelineBindPoint. -
nviewMask
public static void nviewMask(long struct, int value) Unsafe version ofviewMask. -
ninputAttachmentCount
public static void ninputAttachmentCount(long struct, int value) Sets the specified value to theinputAttachmentCountfield of the specifiedstruct. -
npInputAttachments
Unsafe version ofpInputAttachments. -
ncolorAttachmentCount
public static void ncolorAttachmentCount(long struct, int value) Sets the specified value to thecolorAttachmentCountfield of the specifiedstruct. -
npColorAttachments
Unsafe version ofpColorAttachments. -
npResolveAttachments
Unsafe version ofpResolveAttachments. -
npDepthStencilAttachment
Unsafe version ofpDepthStencilAttachment. -
npreserveAttachmentCount
public static void npreserveAttachmentCount(long struct, int value) Sets the specified value to thepreserveAttachmentCountfield of the specifiedstruct. -
npPreserveAttachments
Unsafe version ofpPreserveAttachments. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-