Package org.lwjgl.vulkan
Class VkAttachmentReference2KHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkAttachmentReference2
-
- org.lwjgl.vulkan.VkAttachmentReference2KHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkAttachmentReference2KHR extends VkAttachmentReference2
SeeVkAttachmentReference2.Layout
struct VkAttachmentReference2KHR { VkStructureType sType; void const * pNext; uint32_t attachment; VkImageLayout layout; VkImageAspectFlags aspectMask; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkAttachmentReference2KHR.BufferAn array ofVkAttachmentReference2KHRstructs.
-
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.VkAttachmentReference2
ALIGNOF, ASPECTMASK, ATTACHMENT, LAYOUT, PNEXT, SIZEOF, STYPE
-
-
Constructor Summary
Constructors Constructor Description VkAttachmentReference2KHR(java.nio.ByteBuffer container)Creates aVkAttachmentReference2KHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description VkAttachmentReference2KHRaspectMask(int value)Sets the specified value to theaspectMaskfield.VkAttachmentReference2KHRattachment(int value)Sets the specified value to theattachmentfield.static VkAttachmentReference2KHRcalloc()Returns a newVkAttachmentReference2KHRinstance allocated withmemCalloc.static VkAttachmentReference2KHR.Buffercalloc(int capacity)Returns a newVkAttachmentReference2KHR.Bufferinstance allocated withmemCalloc.static VkAttachmentReference2KHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAttachmentReference2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAttachmentReference2KHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkAttachmentReference2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAttachmentReference2KHRcallocStack()Deprecated.static VkAttachmentReference2KHR.BuffercallocStack(int capacity)Deprecated.static VkAttachmentReference2KHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkAttachmentReference2KHRcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkAttachmentReference2KHRcreate()Returns a newVkAttachmentReference2KHRinstance allocated withBufferUtils.static VkAttachmentReference2KHR.Buffercreate(int capacity)Returns a newVkAttachmentReference2KHR.Bufferinstance allocated withBufferUtils.static VkAttachmentReference2KHRcreate(long address)Returns a newVkAttachmentReference2KHRinstance for the specified memory address.static VkAttachmentReference2KHR.Buffercreate(long address, int capacity)Create aVkAttachmentReference2KHR.Bufferinstance at the specified memory.static VkAttachmentReference2KHRcreateSafe(long address)static VkAttachmentReference2KHR.BuffercreateSafe(long address, int capacity)VkAttachmentReference2KHRlayout(int value)Sets the specified value to thelayoutfield.static VkAttachmentReference2KHRmalloc()Returns a newVkAttachmentReference2KHRinstance allocated withmemAlloc.static VkAttachmentReference2KHR.Buffermalloc(int capacity)Returns a newVkAttachmentReference2KHR.Bufferinstance allocated withmemAlloc.static VkAttachmentReference2KHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAttachmentReference2KHR.Bufferinstance allocated on the specifiedMemoryStack.static VkAttachmentReference2KHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkAttachmentReference2KHRinstance allocated on the specifiedMemoryStack.static VkAttachmentReference2KHRmallocStack()Deprecated.static VkAttachmentReference2KHR.BuffermallocStack(int capacity)Deprecated.static VkAttachmentReference2KHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkAttachmentReference2KHRmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.VkAttachmentReference2KHRpNext(long value)Sets the specified value to thepNextfield.VkAttachmentReference2KHRset(int sType, long pNext, int attachment, int layout, int aspectMask)Initializes this struct with the specified values.VkAttachmentReference2KHRset(VkAttachmentReference2KHR src)Copies the specified struct data to this struct.VkAttachmentReference2KHRsType(int value)Sets the specified value to thesTypefield.VkAttachmentReference2KHRsType$Default()Sets theSTRUCTURE_TYPE_ATTACHMENT_REFERENCE_2value to thesTypefield.-
Methods inherited from class org.lwjgl.vulkan.VkAttachmentReference2
aspectMask, attachment, layout, naspectMask, naspectMask, nattachment, nattachment, nlayout, nlayout, npNext, npNext, nsType, nsType, pNext, pNext, pNext, set, sizeof, sType
-
-
-
-
Constructor Detail
-
VkAttachmentReference2KHR
public VkAttachmentReference2KHR(java.nio.ByteBuffer container)
Creates aVkAttachmentReference2KHRinstance 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 VkAttachmentReference2KHR sType(int value)
Sets the specified value to thesTypefield.- Overrides:
sTypein classVkAttachmentReference2
-
sType$Default
public VkAttachmentReference2KHR sType$Default()
Sets theSTRUCTURE_TYPE_ATTACHMENT_REFERENCE_2value to thesTypefield.- Overrides:
sType$Defaultin classVkAttachmentReference2
-
pNext
public VkAttachmentReference2KHR pNext(long value)
Sets the specified value to thepNextfield.- Overrides:
pNextin classVkAttachmentReference2
-
attachment
public VkAttachmentReference2KHR attachment(int value)
Sets the specified value to theattachmentfield.- Overrides:
attachmentin classVkAttachmentReference2
-
layout
public VkAttachmentReference2KHR layout(int value)
Sets the specified value to thelayoutfield.- Overrides:
layoutin classVkAttachmentReference2
-
aspectMask
public VkAttachmentReference2KHR aspectMask(int value)
Sets the specified value to theaspectMaskfield.- Overrides:
aspectMaskin classVkAttachmentReference2
-
set
public VkAttachmentReference2KHR set(int sType, long pNext, int attachment, int layout, int aspectMask)
Initializes this struct with the specified values.- Overrides:
setin classVkAttachmentReference2
-
set
public VkAttachmentReference2KHR set(VkAttachmentReference2KHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkAttachmentReference2KHR malloc()
Returns a newVkAttachmentReference2KHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkAttachmentReference2KHR calloc()
Returns a newVkAttachmentReference2KHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkAttachmentReference2KHR create()
Returns a newVkAttachmentReference2KHRinstance allocated withBufferUtils.
-
create
public static VkAttachmentReference2KHR create(long address)
Returns a newVkAttachmentReference2KHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkAttachmentReference2KHR createSafe(long address)
-
malloc
public static VkAttachmentReference2KHR.Buffer malloc(int capacity)
Returns a newVkAttachmentReference2KHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkAttachmentReference2KHR.Buffer calloc(int capacity)
Returns a newVkAttachmentReference2KHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkAttachmentReference2KHR.Buffer create(int capacity)
Returns a newVkAttachmentReference2KHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkAttachmentReference2KHR.Buffer create(long address, int capacity)
Create aVkAttachmentReference2KHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkAttachmentReference2KHR.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkAttachmentReference2KHR mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkAttachmentReference2KHR callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkAttachmentReference2KHR mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkAttachmentReference2KHR callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkAttachmentReference2KHR.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkAttachmentReference2KHR.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkAttachmentReference2KHR.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 VkAttachmentReference2KHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkAttachmentReference2KHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkAttachmentReference2KHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkAttachmentReference2KHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkAttachmentReference2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkAttachmentReference2KHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkAttachmentReference2KHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkAttachmentReference2KHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkAttachmentReference2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-