Package org.lwjgl.vulkan
Class VkAttachmentDescription2
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
- Direct Known Subclasses:
VkAttachmentDescription2KHR
public class VkAttachmentDescription2
extends Struct<VkAttachmentDescription2>
implements NativeResource
struct VkAttachmentDescription2 {
VkStructureType sType;
void const * pNext;
VkAttachmentDescriptionFlags flags;
VkFormat format;
VkSampleCountFlagBits samples;
VkAttachmentLoadOp loadOp;
VkAttachmentStoreOp storeOp;
VkAttachmentLoadOp stencilLoadOp;
VkAttachmentStoreOp stencilStoreOp;
VkImageLayout initialLayout;
VkImageLayout finalLayout;
}
-
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 size 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionVkAttachmentDescription2
(ByteBuffer container) Creates aVkAttachmentDescription2
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkAttachmentDescription2
calloc()
Returns a newVkAttachmentDescription2
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVkAttachmentDescription2.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVkAttachmentDescription2.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkAttachmentDescription2
calloc
(MemoryStack stack) Returns a newVkAttachmentDescription2
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkAttachmentDescription2
create()
Returns a newVkAttachmentDescription2
instance allocated withBufferUtils
.create
(int capacity) Returns a newVkAttachmentDescription2.Buffer
instance allocated withBufferUtils
.static VkAttachmentDescription2
create
(long address) Returns a newVkAttachmentDescription2
instance for the specified memory address.create
(long address, int capacity) Create aVkAttachmentDescription2.Buffer
instance at the specified memory.static @Nullable VkAttachmentDescription2
createSafe
(long address) static @Nullable VkAttachmentDescription2.Buffer
createSafe
(long address, int capacity) int
finalLayout
(int value) Sets the specified value to thefinalLayout
field.int
flags()
flags
(int value) Sets the specified value to theflags
field.int
format()
format
(int value) Sets the specified value to theformat
field.int
initialLayout
(int value) Sets the specified value to theinitialLayout
field.int
loadOp()
loadOp
(int value) Sets the specified value to theloadOp
field.static VkAttachmentDescription2
malloc()
Returns a newVkAttachmentDescription2
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVkAttachmentDescription2.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVkAttachmentDescription2.Buffer
instance allocated on the specifiedMemoryStack
.static VkAttachmentDescription2
malloc
(MemoryStack stack) Returns a newVkAttachmentDescription2
instance allocated on the specifiedMemoryStack
.static int
nfinalLayout
(long struct) Unsafe version offinalLayout()
.static void
nfinalLayout
(long struct, int value) Unsafe version offinalLayout
.static int
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, int value) Unsafe version offlags
.static int
nformat
(long struct) Unsafe version offormat()
.static void
nformat
(long struct, int value) Unsafe version offormat
.static int
ninitialLayout
(long struct) Unsafe version ofinitialLayout()
.static void
ninitialLayout
(long struct, int value) Unsafe version ofinitialLayout
.static int
nloadOp
(long struct) Unsafe version ofloadOp()
.static void
nloadOp
(long struct, int value) Unsafe version ofloadOp
.static long
npNext
(long struct) Unsafe version ofpNext()
.static void
npNext
(long struct, long value) Unsafe version ofpNext
.static int
nsamples
(long struct) Unsafe version ofsamples()
.static void
nsamples
(long struct, int value) Unsafe version ofsamples
.static int
nstencilLoadOp
(long struct) Unsafe version ofstencilLoadOp()
.static void
nstencilLoadOp
(long struct, int value) Unsafe version ofstencilLoadOp
.static int
nstencilStoreOp
(long struct) Unsafe version ofstencilStoreOp()
.static void
nstencilStoreOp
(long struct, int value) Unsafe version ofstencilStoreOp
.static int
nstoreOp
(long struct) Unsafe version ofstoreOp()
.static void
nstoreOp
(long struct, int value) Unsafe version ofstoreOp
.static int
nsType
(long struct) Unsafe version ofsType()
.static void
nsType
(long struct, int value) Unsafe version ofsType
.long
pNext()
pNext
(long value) Sets the specified value to thepNext
field.Prepends the specifiedVkAttachmentDescriptionStencilLayout
value to thepNext
chain.Prepends the specifiedVkAttachmentDescriptionStencilLayoutKHR
value to thepNext
chain.pNext
(VkExternalFormatANDROID value) Prepends the specifiedVkExternalFormatANDROID
value to thepNext
chain.int
samples()
samples
(int value) Sets the specified value to thesamples
field.set
(int sType, long pNext, int flags, int format, int samples, int loadOp, int storeOp, int stencilLoadOp, int stencilStoreOp, int initialLayout, int finalLayout) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
stencilLoadOp
(int value) Sets the specified value to thestencilLoadOp
field.int
stencilStoreOp
(int value) Sets the specified value to thestencilStoreOp
field.int
storeOp()
storeOp
(int value) Sets the specified value to thestoreOp
field.int
sType()
sType
(int value) Sets the specified value to thesType
field.Sets theSTRUCTURE_TYPE_ATTACHMENT_DESCRIPTION_2
value to thesType
field.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. -
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. -
FORMAT
public static final int FORMATThe struct member offsets. -
SAMPLES
public static final int SAMPLESThe struct member offsets. -
LOADOP
public static final int LOADOPThe struct member offsets. -
STOREOP
public static final int STOREOPThe struct member offsets. -
STENCILLOADOP
public static final int STENCILLOADOPThe struct member offsets. -
STENCILSTOREOP
public static final int STENCILSTOREOPThe struct member offsets. -
INITIALLAYOUT
public static final int INITIALLAYOUTThe struct member offsets. -
FINALLAYOUT
public static final int FINALLAYOUTThe struct member offsets.
-
-
Constructor Details
-
VkAttachmentDescription2
Creates aVkAttachmentDescription2
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<VkAttachmentDescription2>
-
sType
public int sType()- Returns:
- the value of the
sType
field.
-
pNext
public long pNext()- Returns:
- the value of the
pNext
field.
-
flags
public int flags()- Returns:
- the value of the
flags
field.
-
format
public int format()- Returns:
- the value of the
format
field.
-
samples
public int samples()- Returns:
- the value of the
samples
field.
-
loadOp
public int loadOp()- Returns:
- the value of the
loadOp
field.
-
storeOp
public int storeOp()- Returns:
- the value of the
storeOp
field.
-
stencilLoadOp
public int stencilLoadOp()- Returns:
- the value of the
stencilLoadOp
field.
-
stencilStoreOp
public int stencilStoreOp()- Returns:
- the value of the
stencilStoreOp
field.
-
initialLayout
public int initialLayout()- Returns:
- the value of the
initialLayout
field.
-
finalLayout
public int finalLayout()- Returns:
- the value of the
finalLayout
field.
-
sType
Sets the specified value to thesType
field. -
sType$Default
Sets theSTRUCTURE_TYPE_ATTACHMENT_DESCRIPTION_2
value to thesType
field. -
pNext
Sets the specified value to thepNext
field. -
pNext
Prepends the specifiedVkAttachmentDescriptionStencilLayout
value to thepNext
chain. -
pNext
Prepends the specifiedVkAttachmentDescriptionStencilLayoutKHR
value to thepNext
chain. -
pNext
Prepends the specifiedVkExternalFormatANDROID
value to thepNext
chain. -
flags
Sets the specified value to theflags
field. -
format
Sets the specified value to theformat
field. -
samples
Sets the specified value to thesamples
field. -
loadOp
Sets the specified value to theloadOp
field. -
storeOp
Sets the specified value to thestoreOp
field. -
stencilLoadOp
Sets the specified value to thestencilLoadOp
field. -
stencilStoreOp
Sets the specified value to thestencilStoreOp
field. -
initialLayout
Sets the specified value to theinitialLayout
field. -
finalLayout
Sets the specified value to thefinalLayout
field. -
set
public VkAttachmentDescription2 set(int sType, long pNext, int flags, int format, int samples, int loadOp, int storeOp, int stencilLoadOp, int stencilStoreOp, int initialLayout, int finalLayout) 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 newVkAttachmentDescription2
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkAttachmentDescription2
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkAttachmentDescription2
instance allocated withBufferUtils
. -
create
Returns a newVkAttachmentDescription2
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkAttachmentDescription2.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkAttachmentDescription2.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkAttachmentDescription2.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkAttachmentDescription2.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newVkAttachmentDescription2
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkAttachmentDescription2
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkAttachmentDescription2.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkAttachmentDescription2.Buffer
instance allocated on the specifiedMemoryStack
and 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()
. -
nformat
public static int nformat(long struct) Unsafe version offormat()
. -
nsamples
public static int nsamples(long struct) Unsafe version ofsamples()
. -
nloadOp
public static int nloadOp(long struct) Unsafe version ofloadOp()
. -
nstoreOp
public static int nstoreOp(long struct) Unsafe version ofstoreOp()
. -
nstencilLoadOp
public static int nstencilLoadOp(long struct) Unsafe version ofstencilLoadOp()
. -
nstencilStoreOp
public static int nstencilStoreOp(long struct) Unsafe version ofstencilStoreOp()
. -
ninitialLayout
public static int ninitialLayout(long struct) Unsafe version ofinitialLayout()
. -
nfinalLayout
public static int nfinalLayout(long struct) Unsafe version offinalLayout()
. -
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
. -
nformat
public static void nformat(long struct, int value) Unsafe version offormat
. -
nsamples
public static void nsamples(long struct, int value) Unsafe version ofsamples
. -
nloadOp
public static void nloadOp(long struct, int value) Unsafe version ofloadOp
. -
nstoreOp
public static void nstoreOp(long struct, int value) Unsafe version ofstoreOp
. -
nstencilLoadOp
public static void nstencilLoadOp(long struct, int value) Unsafe version ofstencilLoadOp
. -
nstencilStoreOp
public static void nstencilStoreOp(long struct, int value) Unsafe version ofstencilStoreOp
. -
ninitialLayout
public static void ninitialLayout(long struct, int value) Unsafe version ofinitialLayout
. -
nfinalLayout
public static void nfinalLayout(long struct, int value) Unsafe version offinalLayout
.
-