Package org.lwjgl.vulkan
Class VkAttachmentDescription2KHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkAttachmentDescription2
-
- org.lwjgl.vulkan.VkAttachmentDescription2KHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkAttachmentDescription2KHR extends VkAttachmentDescription2
SeeVkAttachmentDescription2.Layout
struct VkAttachmentDescription2KHR { 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 Classes Modifier and Type Class Description static classVkAttachmentDescription2KHR.BufferAn array ofVkAttachmentDescription2KHRstructs.
-
Field Summary
-
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Fields inherited from class org.lwjgl.vulkan.VkAttachmentDescription2
ALIGNOF, FINALLAYOUT, FLAGS, FORMAT, INITIALLAYOUT, LOADOP, PNEXT, SAMPLES, SIZEOF, STENCILLOADOP, STENCILSTOREOP, STOREOP, STYPE
-
-
Constructor Summary
Constructors Constructor Description VkAttachmentDescription2KHR(java.nio.ByteBuffer container)Creates aVkAttachmentDescription2KHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VkAttachmentDescription2KHRcalloc()Returns a newVkAttachmentDescription2KHRinstance allocated withmemCalloc.static VkAttachmentDescription2KHR.Buffercalloc(int capacity)Returns a newVkAttachmentDescription2KHR.Bufferinstance allocated withmemCalloc.static VkAttachmentDescription2KHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAttachmentDescription2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAttachmentDescription2KHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkAttachmentDescription2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAttachmentDescription2KHRcallocStack()Deprecated.static VkAttachmentDescription2KHR.BuffercallocStack(int capacity)Deprecated.static VkAttachmentDescription2KHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkAttachmentDescription2KHRcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkAttachmentDescription2KHRcreate()Returns a newVkAttachmentDescription2KHRinstance allocated withBufferUtils.static VkAttachmentDescription2KHR.Buffercreate(int capacity)Returns a newVkAttachmentDescription2KHR.Bufferinstance allocated withBufferUtils.static VkAttachmentDescription2KHRcreate(long address)Returns a newVkAttachmentDescription2KHRinstance for the specified memory address.static VkAttachmentDescription2KHR.Buffercreate(long address, int capacity)Create aVkAttachmentDescription2KHR.Bufferinstance at the specified memory.static VkAttachmentDescription2KHRcreateSafe(long address)static VkAttachmentDescription2KHR.BuffercreateSafe(long address, int capacity)VkAttachmentDescription2KHRfinalLayout(int value)Sets the specified value to thefinalLayoutfield.VkAttachmentDescription2KHRflags(int value)Sets the specified value to theflagsfield.VkAttachmentDescription2KHRformat(int value)Sets the specified value to theformatfield.VkAttachmentDescription2KHRinitialLayout(int value)Sets the specified value to theinitialLayoutfield.VkAttachmentDescription2KHRloadOp(int value)Sets the specified value to theloadOpfield.static VkAttachmentDescription2KHRmalloc()Returns a newVkAttachmentDescription2KHRinstance allocated withmemAlloc.static VkAttachmentDescription2KHR.Buffermalloc(int capacity)Returns a newVkAttachmentDescription2KHR.Bufferinstance allocated withmemAlloc.static VkAttachmentDescription2KHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAttachmentDescription2KHR.Bufferinstance allocated on the specifiedMemoryStack.static VkAttachmentDescription2KHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkAttachmentDescription2KHRinstance allocated on the specifiedMemoryStack.static VkAttachmentDescription2KHRmallocStack()Deprecated.static VkAttachmentDescription2KHR.BuffermallocStack(int capacity)Deprecated.static VkAttachmentDescription2KHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkAttachmentDescription2KHRmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.VkAttachmentDescription2KHRpNext(long value)Sets the specified value to thepNextfield.VkAttachmentDescription2KHRsamples(int value)Sets the specified value to thesamplesfield.VkAttachmentDescription2KHRset(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.VkAttachmentDescription2KHRset(VkAttachmentDescription2KHR src)Copies the specified struct data to this struct.VkAttachmentDescription2KHRstencilLoadOp(int value)Sets the specified value to thestencilLoadOpfield.VkAttachmentDescription2KHRstencilStoreOp(int value)Sets the specified value to thestencilStoreOpfield.VkAttachmentDescription2KHRstoreOp(int value)Sets the specified value to thestoreOpfield.VkAttachmentDescription2KHRsType(int value)Sets the specified value to thesTypefield.VkAttachmentDescription2KHRsType$Default()Sets theSTRUCTURE_TYPE_ATTACHMENT_DESCRIPTION_2value to thesTypefield.-
Methods inherited from class org.lwjgl.vulkan.VkAttachmentDescription2
finalLayout, flags, format, initialLayout, loadOp, nfinalLayout, nfinalLayout, nflags, nflags, nformat, nformat, ninitialLayout, ninitialLayout, nloadOp, nloadOp, npNext, npNext, nsamples, nsamples, nstencilLoadOp, nstencilLoadOp, nstencilStoreOp, nstencilStoreOp, nstoreOp, nstoreOp, nsType, nsType, pNext, pNext, pNext, samples, set, sizeof, stencilLoadOp, stencilStoreOp, storeOp, sType
-
-
-
-
Constructor Detail
-
VkAttachmentDescription2KHR
public VkAttachmentDescription2KHR(java.nio.ByteBuffer container)
Creates aVkAttachmentDescription2KHRinstance 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 Detail
-
sType
public VkAttachmentDescription2KHR sType(int value)
Sets the specified value to thesTypefield.- Overrides:
sTypein classVkAttachmentDescription2
-
sType$Default
public VkAttachmentDescription2KHR sType$Default()
Sets theSTRUCTURE_TYPE_ATTACHMENT_DESCRIPTION_2value to thesTypefield.- Overrides:
sType$Defaultin classVkAttachmentDescription2
-
pNext
public VkAttachmentDescription2KHR pNext(long value)
Sets the specified value to thepNextfield.- Overrides:
pNextin classVkAttachmentDescription2
-
flags
public VkAttachmentDescription2KHR flags(int value)
Sets the specified value to theflagsfield.- Overrides:
flagsin classVkAttachmentDescription2
-
format
public VkAttachmentDescription2KHR format(int value)
Sets the specified value to theformatfield.- Overrides:
formatin classVkAttachmentDescription2
-
samples
public VkAttachmentDescription2KHR samples(int value)
Sets the specified value to thesamplesfield.- Overrides:
samplesin classVkAttachmentDescription2
-
loadOp
public VkAttachmentDescription2KHR loadOp(int value)
Sets the specified value to theloadOpfield.- Overrides:
loadOpin classVkAttachmentDescription2
-
storeOp
public VkAttachmentDescription2KHR storeOp(int value)
Sets the specified value to thestoreOpfield.- Overrides:
storeOpin classVkAttachmentDescription2
-
stencilLoadOp
public VkAttachmentDescription2KHR stencilLoadOp(int value)
Sets the specified value to thestencilLoadOpfield.- Overrides:
stencilLoadOpin classVkAttachmentDescription2
-
stencilStoreOp
public VkAttachmentDescription2KHR stencilStoreOp(int value)
Sets the specified value to thestencilStoreOpfield.- Overrides:
stencilStoreOpin classVkAttachmentDescription2
-
initialLayout
public VkAttachmentDescription2KHR initialLayout(int value)
Sets the specified value to theinitialLayoutfield.- Overrides:
initialLayoutin classVkAttachmentDescription2
-
finalLayout
public VkAttachmentDescription2KHR finalLayout(int value)
Sets the specified value to thefinalLayoutfield.- Overrides:
finalLayoutin classVkAttachmentDescription2
-
set
public VkAttachmentDescription2KHR 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.- Overrides:
setin classVkAttachmentDescription2
-
set
public VkAttachmentDescription2KHR set(VkAttachmentDescription2KHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkAttachmentDescription2KHR malloc()
Returns a newVkAttachmentDescription2KHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkAttachmentDescription2KHR calloc()
Returns a newVkAttachmentDescription2KHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkAttachmentDescription2KHR create()
Returns a newVkAttachmentDescription2KHRinstance allocated withBufferUtils.
-
create
public static VkAttachmentDescription2KHR create(long address)
Returns a newVkAttachmentDescription2KHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkAttachmentDescription2KHR createSafe(long address)
-
malloc
public static VkAttachmentDescription2KHR.Buffer malloc(int capacity)
Returns a newVkAttachmentDescription2KHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkAttachmentDescription2KHR.Buffer calloc(int capacity)
Returns a newVkAttachmentDescription2KHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkAttachmentDescription2KHR.Buffer create(int capacity)
Returns a newVkAttachmentDescription2KHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkAttachmentDescription2KHR.Buffer create(long address, int capacity)
Create aVkAttachmentDescription2KHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkAttachmentDescription2KHR.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkAttachmentDescription2KHR mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkAttachmentDescription2KHR callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkAttachmentDescription2KHR mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkAttachmentDescription2KHR callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkAttachmentDescription2KHR.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkAttachmentDescription2KHR.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkAttachmentDescription2KHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkAttachmentDescription2KHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkAttachmentDescription2KHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkAttachmentDescription2KHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkAttachmentDescription2KHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkAttachmentDescription2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkAttachmentDescription2KHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkAttachmentDescription2KHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkAttachmentDescription2KHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkAttachmentDescription2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-