Package org.lwjgl.vulkan
Class VkSubpassDescription
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct VkSubpassDescription {
VkSubpassDescriptionFlags flags;
VkPipelineBindPoint pipelineBindPoint;
uint32_t inputAttachmentCount;
VkAttachmentReference const * pInputAttachments;
uint32_t colorAttachmentCount;
VkAttachmentReference const * pColorAttachments;
VkAttachmentReference const * pResolveAttachments;
VkAttachmentReference 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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkSubpassDescription(ByteBuffer container) Creates aVkSubpassDescriptioninstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkSubpassDescriptioncalloc()Returns a newVkSubpassDescriptioninstance allocated withmemCalloc.static VkSubpassDescription.Buffercalloc(int capacity) Returns a newVkSubpassDescription.Bufferinstance allocated withmemCalloc.static VkSubpassDescription.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkSubpassDescription.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSubpassDescriptioncalloc(MemoryStack stack) Returns a newVkSubpassDescriptioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcolorAttachmentCount(int value) Sets the specified value to thecolorAttachmentCountfield.static VkSubpassDescriptioncreate()Returns a newVkSubpassDescriptioninstance allocated withBufferUtils.static VkSubpassDescription.Buffercreate(int capacity) Returns a newVkSubpassDescription.Bufferinstance allocated withBufferUtils.static VkSubpassDescriptioncreate(long address) Returns a newVkSubpassDescriptioninstance for the specified memory address.static VkSubpassDescription.Buffercreate(long address, int capacity) Create aVkSubpassDescription.Bufferinstance at the specified memory.static @Nullable VkSubpassDescriptioncreateSafe(long address) static @Nullable VkSubpassDescription.BuffercreateSafe(long address, int capacity) intflags()flags(int value) Sets the specified value to theflagsfield.intstatic VkSubpassDescriptionmalloc()Returns a newVkSubpassDescriptioninstance allocated withmemAlloc.static VkSubpassDescription.Buffermalloc(int capacity) Returns a newVkSubpassDescription.Bufferinstance allocated withmemAlloc.static VkSubpassDescription.Buffermalloc(int capacity, MemoryStack stack) Returns a newVkSubpassDescription.Bufferinstance allocated on the specifiedMemoryStack.static VkSubpassDescriptionmalloc(MemoryStack stack) Returns a newVkSubpassDescriptioninstance 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 VkAttachmentReference.BuffernpColorAttachments(long struct) Unsafe version ofpColorAttachments().static voidnpColorAttachments(long struct, @Nullable VkAttachmentReference.Buffer value) Unsafe version ofpColorAttachments.static @Nullable VkAttachmentReferencenpDepthStencilAttachment(long struct) Unsafe version ofpDepthStencilAttachment().static voidnpDepthStencilAttachment(long struct, @Nullable VkAttachmentReference value) Unsafe version ofpDepthStencilAttachment.static @Nullable VkAttachmentReference.BuffernpInputAttachments(long struct) Unsafe version ofpInputAttachments().static voidnpInputAttachments(long struct, @Nullable VkAttachmentReference.Buffer value) Unsafe version ofpInputAttachments.static intnpipelineBindPoint(long struct) Unsafe version ofpipelineBindPoint().static voidnpipelineBindPoint(long struct, int value) Unsafe version ofpipelineBindPoint.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 VkAttachmentReference.BuffernpResolveAttachments(long struct) Unsafe version ofpResolveAttachments().static voidnpResolveAttachments(long struct, @Nullable VkAttachmentReference.Buffer value) Unsafe version ofpResolveAttachments.@Nullable VkAttachmentReference.BufferpColorAttachments(@Nullable VkAttachmentReference.Buffer value) Sets the address of the specifiedVkAttachmentReference.Bufferto thepColorAttachmentsfield.@Nullable VkAttachmentReferencepDepthStencilAttachment(@Nullable VkAttachmentReference value) Sets the address of the specifiedVkAttachmentReferenceto thepDepthStencilAttachmentfield.@Nullable VkAttachmentReference.BufferpInputAttachments(@Nullable VkAttachmentReference.Buffer value) Sets the address of the specifiedVkAttachmentReference.Bufferto thepInputAttachmentsfield.intpipelineBindPoint(int value) Sets the specified value to thepipelineBindPointfield.@Nullable IntBufferpPreserveAttachments(@Nullable IntBuffer value) Sets the address of the specifiedIntBufferto thepPreserveAttachmentsfield.int@Nullable VkAttachmentReference.BufferpResolveAttachments(@Nullable VkAttachmentReference.Buffer value) Sets the address of the specifiedVkAttachmentReference.Bufferto thepResolveAttachmentsfield.set(int flags, int pipelineBindPoint, @Nullable VkAttachmentReference.Buffer pInputAttachments, int colorAttachmentCount, @Nullable VkAttachmentReference.Buffer pColorAttachments, @Nullable VkAttachmentReference.Buffer pResolveAttachments, @Nullable VkAttachmentReference pDepthStencilAttachment, @Nullable IntBuffer pPreserveAttachments) Initializes this struct with the specified values.set(VkSubpassDescription src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).static voidvalidate(long struct) Validates pointer members that should not beNULL.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. -
FLAGS
public static final int FLAGSThe struct member offsets. -
PIPELINEBINDPOINT
public static final int PIPELINEBINDPOINTThe 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
-
VkSubpassDescription
Creates aVkSubpassDescriptioninstance 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<VkSubpassDescription>
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
pipelineBindPoint
public int pipelineBindPoint()- Returns:
- the value of the
pipelineBindPointfield.
-
inputAttachmentCount
public int inputAttachmentCount()- Returns:
- the value of the
inputAttachmentCountfield.
-
pInputAttachments
- Returns:
- a
VkAttachmentReference.Bufferview of the struct array pointed to by thepInputAttachmentsfield.
-
colorAttachmentCount
public int colorAttachmentCount()- Returns:
- the value of the
colorAttachmentCountfield.
-
pColorAttachments
- Returns:
- a
VkAttachmentReference.Bufferview of the struct array pointed to by thepColorAttachmentsfield.
-
pResolveAttachments
- Returns:
- a
VkAttachmentReference.Bufferview of the struct array pointed to by thepResolveAttachmentsfield.
-
pDepthStencilAttachment
- Returns:
- a
VkAttachmentReferenceview 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.
-
flags
Sets the specified value to theflagsfield. -
pipelineBindPoint
Sets the specified value to thepipelineBindPointfield. -
pInputAttachments
Sets the address of the specifiedVkAttachmentReference.Bufferto thepInputAttachmentsfield. -
colorAttachmentCount
Sets the specified value to thecolorAttachmentCountfield. -
pColorAttachments
Sets the address of the specifiedVkAttachmentReference.Bufferto thepColorAttachmentsfield. -
pResolveAttachments
Sets the address of the specifiedVkAttachmentReference.Bufferto thepResolveAttachmentsfield. -
pDepthStencilAttachment
Sets the address of the specifiedVkAttachmentReferenceto thepDepthStencilAttachmentfield. -
pPreserveAttachments
Sets the address of the specifiedIntBufferto thepPreserveAttachmentsfield. -
set
public VkSubpassDescription set(int flags, int pipelineBindPoint, @Nullable VkAttachmentReference.Buffer pInputAttachments, int colorAttachmentCount, @Nullable VkAttachmentReference.Buffer pColorAttachments, @Nullable VkAttachmentReference.Buffer pResolveAttachments, @Nullable VkAttachmentReference 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 newVkSubpassDescriptioninstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkSubpassDescriptioninstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkSubpassDescriptioninstance allocated withBufferUtils. -
create
Returns a newVkSubpassDescriptioninstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkSubpassDescription.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkSubpassDescription.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkSubpassDescription.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkSubpassDescription.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkSubpassDescriptioninstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkSubpassDescriptioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkSubpassDescription.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkSubpassDescription.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nflags
public static int nflags(long struct) Unsafe version offlags(). -
npipelineBindPoint
public static int npipelineBindPoint(long struct) Unsafe version ofpipelineBindPoint(). -
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. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags. -
npipelineBindPoint
public static void npipelineBindPoint(long struct, int value) Unsafe version ofpipelineBindPoint. -
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
-