Package org.lwjgl.vulkan
Class VkSubpassDescription
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct VkSubpassDescription {
VkSubpassDescriptionFlags flags;
VkPipelineBindPoint pipelineBindPoint;
uint32_t inputAttachmentCount;
{@link VkAttachmentReference VkAttachmentReference} const * pInputAttachments;
uint32_t colorAttachmentCount;
{@link VkAttachmentReference VkAttachmentReference} const * pColorAttachments;
{@link VkAttachmentReference VkAttachmentReference} const * pResolveAttachments;
{@link VkAttachmentReference 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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The 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 aVkSubpassDescription
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkSubpassDescription
calloc()
Returns a newVkSubpassDescription
instance allocated withmemCalloc
.static VkSubpassDescription.Buffer
calloc
(int capacity) Returns a newVkSubpassDescription.Buffer
instance allocated withmemCalloc
.static VkSubpassDescription.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVkSubpassDescription.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkSubpassDescription
calloc
(MemoryStack stack) Returns a newVkSubpassDescription
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkSubpassDescription
Deprecated.static VkSubpassDescription.Buffer
callocStack
(int capacity) Deprecated.static VkSubpassDescription.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static VkSubpassDescription
callocStack
(MemoryStack stack) Deprecated.int
colorAttachmentCount
(int value) Sets the specified value to thecolorAttachmentCount
field.static VkSubpassDescription
create()
Returns a newVkSubpassDescription
instance allocated withBufferUtils
.static VkSubpassDescription.Buffer
create
(int capacity) Returns a newVkSubpassDescription.Buffer
instance allocated withBufferUtils
.static VkSubpassDescription
create
(long address) Returns a newVkSubpassDescription
instance for the specified memory address.static VkSubpassDescription.Buffer
create
(long address, int capacity) Create aVkSubpassDescription.Buffer
instance at the specified memory.static @Nullable VkSubpassDescription
createSafe
(long address) static @Nullable VkSubpassDescription.Buffer
createSafe
(long address, int capacity) int
flags()
flags
(int value) Sets the specified value to theflags
field.int
static VkSubpassDescription
malloc()
Returns a newVkSubpassDescription
instance allocated withmemAlloc
.static VkSubpassDescription.Buffer
malloc
(int capacity) Returns a newVkSubpassDescription.Buffer
instance allocated withmemAlloc
.static VkSubpassDescription.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVkSubpassDescription.Buffer
instance allocated on the specifiedMemoryStack
.static VkSubpassDescription
malloc
(MemoryStack stack) Returns a newVkSubpassDescription
instance allocated on the specifiedMemoryStack
.static VkSubpassDescription
Deprecated.static VkSubpassDescription.Buffer
mallocStack
(int capacity) Deprecated.static VkSubpassDescription.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static VkSubpassDescription
mallocStack
(MemoryStack stack) Deprecated.static int
ncolorAttachmentCount
(long struct) Unsafe version ofcolorAttachmentCount()
.static void
ncolorAttachmentCount
(long struct, int value) Sets the specified value to thecolorAttachmentCount
field of the specifiedstruct
.static int
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, int value) Unsafe version offlags
.static int
ninputAttachmentCount
(long struct) Unsafe version ofinputAttachmentCount()
.static void
ninputAttachmentCount
(long struct, int value) Sets the specified value to theinputAttachmentCount
field of the specifiedstruct
.static @Nullable VkAttachmentReference.Buffer
npColorAttachments
(long struct) Unsafe version ofpColorAttachments()
.static void
npColorAttachments
(long struct, @Nullable VkAttachmentReference.Buffer value) Unsafe version ofpColorAttachments
.static @Nullable VkAttachmentReference
npDepthStencilAttachment
(long struct) Unsafe version ofpDepthStencilAttachment()
.static void
npDepthStencilAttachment
(long struct, @Nullable VkAttachmentReference value) Unsafe version ofpDepthStencilAttachment
.static @Nullable VkAttachmentReference.Buffer
npInputAttachments
(long struct) Unsafe version ofpInputAttachments()
.static void
npInputAttachments
(long struct, @Nullable VkAttachmentReference.Buffer value) Unsafe version ofpInputAttachments
.static int
npipelineBindPoint
(long struct) Unsafe version ofpipelineBindPoint()
.static void
npipelineBindPoint
(long struct, int value) Unsafe version ofpipelineBindPoint
.static @Nullable IntBuffer
npPreserveAttachments
(long struct) Unsafe version ofpPreserveAttachments
.static void
npPreserveAttachments
(long struct, @Nullable IntBuffer value) Unsafe version ofpPreserveAttachments
.static int
npreserveAttachmentCount
(long struct) Unsafe version ofpreserveAttachmentCount()
.static void
npreserveAttachmentCount
(long struct, int value) Sets the specified value to thepreserveAttachmentCount
field of the specifiedstruct
.static @Nullable VkAttachmentReference.Buffer
npResolveAttachments
(long struct) Unsafe version ofpResolveAttachments()
.static void
npResolveAttachments
(long struct, @Nullable VkAttachmentReference.Buffer value) Unsafe version ofpResolveAttachments
.@Nullable VkAttachmentReference.Buffer
pColorAttachments
(@Nullable VkAttachmentReference.Buffer value) Sets the address of the specifiedVkAttachmentReference.Buffer
to thepColorAttachments
field.@Nullable VkAttachmentReference
pDepthStencilAttachment
(@Nullable VkAttachmentReference value) Sets the address of the specifiedVkAttachmentReference
to thepDepthStencilAttachment
field.@Nullable VkAttachmentReference.Buffer
pInputAttachments
(@Nullable VkAttachmentReference.Buffer value) Sets the address of the specifiedVkAttachmentReference.Buffer
to thepInputAttachments
field.int
pipelineBindPoint
(int value) Sets the specified value to thepipelineBindPoint
field.@Nullable IntBuffer
pPreserveAttachments
(@Nullable IntBuffer value) Sets the address of the specifiedIntBuffer
to thepPreserveAttachments
field.int
@Nullable VkAttachmentReference.Buffer
pResolveAttachments
(@Nullable VkAttachmentReference.Buffer value) Sets the address of the specifiedVkAttachmentReference.Buffer
to thepResolveAttachments
field.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.int
sizeof()
Returnssizeof(struct)
.static void
validate
(long struct) Validates pointer members that should not beNULL
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aVkSubpassDescription
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
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VkSubpassDescription>
-
flags
public int flags()- Returns:
- the value of the
flags
field.
-
pipelineBindPoint
public int pipelineBindPoint()- Returns:
- the value of the
pipelineBindPoint
field.
-
inputAttachmentCount
public int inputAttachmentCount()- Returns:
- the value of the
inputAttachmentCount
field.
-
pInputAttachments
- Returns:
- a
VkAttachmentReference.Buffer
view of the struct array pointed to by thepInputAttachments
field.
-
colorAttachmentCount
public int colorAttachmentCount()- Returns:
- the value of the
colorAttachmentCount
field.
-
pColorAttachments
- Returns:
- a
VkAttachmentReference.Buffer
view of the struct array pointed to by thepColorAttachments
field.
-
pResolveAttachments
- Returns:
- a
VkAttachmentReference.Buffer
view of the struct array pointed to by thepResolveAttachments
field.
-
pDepthStencilAttachment
- Returns:
- a
VkAttachmentReference
view of the struct pointed to by thepDepthStencilAttachment
field.
-
preserveAttachmentCount
public int preserveAttachmentCount()- Returns:
- the value of the
preserveAttachmentCount
field.
-
pPreserveAttachments
- Returns:
- a
IntBuffer
view of the data pointed to by thepPreserveAttachments
field.
-
flags
Sets the specified value to theflags
field. -
pipelineBindPoint
Sets the specified value to thepipelineBindPoint
field. -
pInputAttachments
Sets the address of the specifiedVkAttachmentReference.Buffer
to thepInputAttachments
field. -
colorAttachmentCount
Sets the specified value to thecolorAttachmentCount
field. -
pColorAttachments
Sets the address of the specifiedVkAttachmentReference.Buffer
to thepColorAttachments
field. -
pResolveAttachments
Sets the address of the specifiedVkAttachmentReference.Buffer
to thepResolveAttachments
field. -
pDepthStencilAttachment
Sets the address of the specifiedVkAttachmentReference
to thepDepthStencilAttachment
field. -
pPreserveAttachments
Sets the address of the specifiedIntBuffer
to thepPreserveAttachments
field. -
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 newVkSubpassDescription
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkSubpassDescription
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkSubpassDescription
instance allocated withBufferUtils
. -
create
Returns a newVkSubpassDescription
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkSubpassDescription.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkSubpassDescription.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkSubpassDescription.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkSubpassDescription.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newVkSubpassDescription
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkSubpassDescription
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkSubpassDescription.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkSubpassDescription.Buffer
instance allocated on the specifiedMemoryStack
and 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 theinputAttachmentCount
field of the specifiedstruct
. -
npInputAttachments
Unsafe version ofpInputAttachments
. -
ncolorAttachmentCount
public static void ncolorAttachmentCount(long struct, int value) Sets the specified value to thecolorAttachmentCount
field 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 thepreserveAttachmentCount
field 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
-