Package org.lwjgl.vulkan
Class VkAttachmentDescription
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class VkAttachmentDescription
extends Struct<VkAttachmentDescription>
implements NativeResource
struct VkAttachmentDescription {
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 size in bytes.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
ConstructorsConstructorDescriptionVkAttachmentDescription
(ByteBuffer container) Creates aVkAttachmentDescription
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkAttachmentDescription
calloc()
Returns a newVkAttachmentDescription
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVkAttachmentDescription.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVkAttachmentDescription.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkAttachmentDescription
calloc
(MemoryStack stack) Returns a newVkAttachmentDescription
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkAttachmentDescription
Deprecated.callocStack
(int capacity) Deprecated.callocStack
(int capacity, MemoryStack stack) Deprecated.static VkAttachmentDescription
callocStack
(MemoryStack stack) Deprecated.static VkAttachmentDescription
create()
Returns a newVkAttachmentDescription
instance allocated withBufferUtils
.create
(int capacity) Returns a newVkAttachmentDescription.Buffer
instance allocated withBufferUtils
.static VkAttachmentDescription
create
(long address) Returns a newVkAttachmentDescription
instance for the specified memory address.create
(long address, int capacity) Create aVkAttachmentDescription.Buffer
instance at the specified memory.static @Nullable VkAttachmentDescription
createSafe
(long address) static @Nullable VkAttachmentDescription.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 VkAttachmentDescription
malloc()
Returns a newVkAttachmentDescription
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVkAttachmentDescription.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVkAttachmentDescription.Buffer
instance allocated on the specifiedMemoryStack
.static VkAttachmentDescription
malloc
(MemoryStack stack) Returns a newVkAttachmentDescription
instance allocated on the specifiedMemoryStack
.static VkAttachmentDescription
Deprecated.mallocStack
(int capacity) Deprecated.mallocStack
(int capacity, MemoryStack stack) Deprecated.static VkAttachmentDescription
mallocStack
(MemoryStack stack) Deprecated.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 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
.int
samples()
samples
(int value) Sets the specified value to thesamples
field.set
(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.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. -
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
-
VkAttachmentDescription
Creates aVkAttachmentDescription
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<VkAttachmentDescription>
-
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.
-
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 VkAttachmentDescription set(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 newVkAttachmentDescription
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkAttachmentDescription
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkAttachmentDescription
instance allocated withBufferUtils
. -
create
Returns a newVkAttachmentDescription
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkAttachmentDescription.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkAttachmentDescription.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkAttachmentDescription.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkAttachmentDescription.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 public static VkAttachmentDescription.Buffer mallocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
@Deprecated public static VkAttachmentDescription.Buffer callocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newVkAttachmentDescription
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkAttachmentDescription
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkAttachmentDescription.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkAttachmentDescription.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()
. -
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()
. -
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
.
-