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.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 size in bytes.static final intThe struct member offsets.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
ConstructorsConstructorDescriptionVkAttachmentDescription(ByteBuffer container) Creates aVkAttachmentDescriptioninstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkAttachmentDescriptioncalloc()Returns a newVkAttachmentDescriptioninstance allocated withmemCalloc.calloc(int capacity) Returns a newVkAttachmentDescription.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkAttachmentDescription.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAttachmentDescriptioncalloc(MemoryStack stack) Returns a newVkAttachmentDescriptioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAttachmentDescriptionDeprecated.callocStack(int capacity) Deprecated.callocStack(int capacity, MemoryStack stack) Deprecated.static VkAttachmentDescriptioncallocStack(MemoryStack stack) Deprecated.static VkAttachmentDescriptioncreate()Returns a newVkAttachmentDescriptioninstance allocated withBufferUtils.create(int capacity) Returns a newVkAttachmentDescription.Bufferinstance allocated withBufferUtils.static VkAttachmentDescriptioncreate(long address) Returns a newVkAttachmentDescriptioninstance for the specified memory address.create(long address, int capacity) Create aVkAttachmentDescription.Bufferinstance at the specified memory.static @Nullable VkAttachmentDescriptioncreateSafe(long address) static @Nullable VkAttachmentDescription.BuffercreateSafe(long address, int capacity) intfinalLayout(int value) Sets the specified value to thefinalLayoutfield.intflags()flags(int value) Sets the specified value to theflagsfield.intformat()format(int value) Sets the specified value to theformatfield.intinitialLayout(int value) Sets the specified value to theinitialLayoutfield.intloadOp()loadOp(int value) Sets the specified value to theloadOpfield.static VkAttachmentDescriptionmalloc()Returns a newVkAttachmentDescriptioninstance allocated withmemAlloc.malloc(int capacity) Returns a newVkAttachmentDescription.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkAttachmentDescription.Bufferinstance allocated on the specifiedMemoryStack.static VkAttachmentDescriptionmalloc(MemoryStack stack) Returns a newVkAttachmentDescriptioninstance allocated on the specifiedMemoryStack.static VkAttachmentDescriptionDeprecated.mallocStack(int capacity) Deprecated.mallocStack(int capacity, MemoryStack stack) Deprecated.static VkAttachmentDescriptionmallocStack(MemoryStack stack) Deprecated.static intnfinalLayout(long struct) Unsafe version offinalLayout().static voidnfinalLayout(long struct, int value) Unsafe version offinalLayout.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static intnformat(long struct) Unsafe version offormat().static voidnformat(long struct, int value) Unsafe version offormat.static intninitialLayout(long struct) Unsafe version ofinitialLayout().static voidninitialLayout(long struct, int value) Unsafe version ofinitialLayout.static intnloadOp(long struct) Unsafe version ofloadOp().static voidnloadOp(long struct, int value) Unsafe version ofloadOp.static intnsamples(long struct) Unsafe version ofsamples().static voidnsamples(long struct, int value) Unsafe version ofsamples.static intnstencilLoadOp(long struct) Unsafe version ofstencilLoadOp().static voidnstencilLoadOp(long struct, int value) Unsafe version ofstencilLoadOp.static intnstencilStoreOp(long struct) Unsafe version ofstencilStoreOp().static voidnstencilStoreOp(long struct, int value) Unsafe version ofstencilStoreOp.static intnstoreOp(long struct) Unsafe version ofstoreOp().static voidnstoreOp(long struct, int value) Unsafe version ofstoreOp.intsamples()samples(int value) Sets the specified value to thesamplesfield.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.intsizeof()Returnssizeof(struct).intstencilLoadOp(int value) Sets the specified value to thestencilLoadOpfield.intstencilStoreOp(int value) Sets the specified value to thestencilStoreOpfield.intstoreOp()storeOp(int value) Sets the specified value to thestoreOpfield.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. -
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 aVkAttachmentDescriptioninstance 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<VkAttachmentDescription>
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
format
public int format()- Returns:
- the value of the
formatfield.
-
samples
public int samples()- Returns:
- the value of the
samplesfield.
-
loadOp
public int loadOp()- Returns:
- the value of the
loadOpfield.
-
storeOp
public int storeOp()- Returns:
- the value of the
storeOpfield.
-
stencilLoadOp
public int stencilLoadOp()- Returns:
- the value of the
stencilLoadOpfield.
-
stencilStoreOp
public int stencilStoreOp()- Returns:
- the value of the
stencilStoreOpfield.
-
initialLayout
public int initialLayout()- Returns:
- the value of the
initialLayoutfield.
-
finalLayout
public int finalLayout()- Returns:
- the value of the
finalLayoutfield.
-
flags
Sets the specified value to theflagsfield. -
format
Sets the specified value to theformatfield. -
samples
Sets the specified value to thesamplesfield. -
loadOp
Sets the specified value to theloadOpfield. -
storeOp
Sets the specified value to thestoreOpfield. -
stencilLoadOp
Sets the specified value to thestencilLoadOpfield. -
stencilStoreOp
Sets the specified value to thestencilStoreOpfield. -
initialLayout
Sets the specified value to theinitialLayoutfield. -
finalLayout
Sets the specified value to thefinalLayoutfield. -
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 newVkAttachmentDescriptioninstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkAttachmentDescriptioninstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkAttachmentDescriptioninstance allocated withBufferUtils. -
create
Returns a newVkAttachmentDescriptioninstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkAttachmentDescription.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkAttachmentDescription.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkAttachmentDescription.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkAttachmentDescription.Bufferinstance 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 newVkAttachmentDescriptioninstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkAttachmentDescriptioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkAttachmentDescription.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkAttachmentDescription.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(). -
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.
-