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.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 size 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkAttachmentDescription2(ByteBuffer container) Creates aVkAttachmentDescription2instance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkAttachmentDescription2calloc()Returns a newVkAttachmentDescription2instance allocated withmemCalloc.calloc(int capacity) Returns a newVkAttachmentDescription2.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkAttachmentDescription2.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAttachmentDescription2calloc(MemoryStack stack) Returns a newVkAttachmentDescription2instance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAttachmentDescription2create()Returns a newVkAttachmentDescription2instance allocated withBufferUtils.create(int capacity) Returns a newVkAttachmentDescription2.Bufferinstance allocated withBufferUtils.static VkAttachmentDescription2create(long address) Returns a newVkAttachmentDescription2instance for the specified memory address.create(long address, int capacity) Create aVkAttachmentDescription2.Bufferinstance at the specified memory.static @Nullable VkAttachmentDescription2createSafe(long address) static @Nullable VkAttachmentDescription2.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 VkAttachmentDescription2malloc()Returns a newVkAttachmentDescription2instance allocated withmemAlloc.malloc(int capacity) Returns a newVkAttachmentDescription2.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkAttachmentDescription2.Bufferinstance allocated on the specifiedMemoryStack.static VkAttachmentDescription2malloc(MemoryStack stack) Returns a newVkAttachmentDescription2instance allocated on the specifiedMemoryStack.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 longnpNext(long struct) Unsafe version ofpNext().static voidnpNext(long struct, long value) Unsafe version ofpNext.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.static intnsType(long struct) Unsafe version ofsType().static voidnsType(long struct, int value) Unsafe version ofsType.longpNext()pNext(long value) Sets the specified value to thepNextfield.Prepends the specifiedVkAttachmentDescriptionStencilLayoutvalue to thepNextchain.Prepends the specifiedVkAttachmentDescriptionStencilLayoutKHRvalue to thepNextchain.pNext(VkExternalFormatANDROID value) Prepends the specifiedVkExternalFormatANDROIDvalue to thepNextchain.intsamples()samples(int value) Sets the specified value to thesamplesfield.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.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.intsType()sType(int value) Sets the specified value to thesTypefield.Sets theSTRUCTURE_TYPE_ATTACHMENT_DESCRIPTION_2value to thesTypefield.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. -
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 aVkAttachmentDescription2instance 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<VkAttachmentDescription2>
-
sType
public int sType()- Returns:
- the value of the
sTypefield.
-
pNext
public long pNext()- Returns:
- the value of the
pNextfield.
-
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.
-
sType
Sets the specified value to thesTypefield. -
sType$Default
Sets theSTRUCTURE_TYPE_ATTACHMENT_DESCRIPTION_2value to thesTypefield. -
pNext
Sets the specified value to thepNextfield. -
pNext
Prepends the specifiedVkAttachmentDescriptionStencilLayoutvalue to thepNextchain. -
pNext
Prepends the specifiedVkAttachmentDescriptionStencilLayoutKHRvalue to thepNextchain. -
pNext
Prepends the specifiedVkExternalFormatANDROIDvalue to thepNextchain. -
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 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 newVkAttachmentDescription2instance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkAttachmentDescription2instance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkAttachmentDescription2instance allocated withBufferUtils. -
create
Returns a newVkAttachmentDescription2instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkAttachmentDescription2.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkAttachmentDescription2.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkAttachmentDescription2.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkAttachmentDescription2.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkAttachmentDescription2instance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkAttachmentDescription2instance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkAttachmentDescription2.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkAttachmentDescription2.Bufferinstance allocated on the specifiedMemoryStackand 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.
-