public class VkAttachmentReference
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
attachment is not ATTACHMENT_UNUSED, layout must not be IMAGE_LAYOUT_UNDEFINED, IMAGE_LAYOUT_PREINITIALIZED, IMAGE_LAYOUT_PRESENT_SRC_KHR, IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL_KHR, IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL_KHR, IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL_KHR, or IMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL_KHRlayout must be a valid VkImageLayout valueVkRenderPassFragmentDensityMapCreateInfoEXT, VkSubpassDescription
attachment – either an integer value identifying an attachment at the corresponding index in VkRenderPassCreateInfo::pAttachments, or ATTACHMENT_UNUSED to signify that this attachment is not used.layout – a VkImageLayout value specifying the layout the attachment uses during the subpass.
struct VkAttachmentReference {
uint32_t attachment;
VkImageLayout layout;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkAttachmentReference.Buffer
An array of
VkAttachmentReference structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
ATTACHMENT
The struct member offsets.
|
static int |
LAYOUT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
VkAttachmentReference(java.nio.ByteBuffer container)
Creates a
VkAttachmentReference instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
attachment()
Returns the value of the
attachment field. |
VkAttachmentReference |
attachment(int value)
Sets the specified value to the
attachment field. |
static VkAttachmentReference |
calloc()
Returns a new
VkAttachmentReference instance allocated with memCalloc. |
static VkAttachmentReference.Buffer |
calloc(int capacity)
Returns a new
VkAttachmentReference.Buffer instance allocated with memCalloc. |
static VkAttachmentReference |
callocStack()
Returns a new
VkAttachmentReference instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkAttachmentReference.Buffer |
callocStack(int capacity)
Returns a new
VkAttachmentReference.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkAttachmentReference.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkAttachmentReference.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkAttachmentReference |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkAttachmentReference instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkAttachmentReference |
create()
Returns a new
VkAttachmentReference instance allocated with BufferUtils. |
static VkAttachmentReference.Buffer |
create(int capacity)
Returns a new
VkAttachmentReference.Buffer instance allocated with BufferUtils. |
static VkAttachmentReference |
create(long address)
Returns a new
VkAttachmentReference instance for the specified memory address. |
static VkAttachmentReference.Buffer |
create(long address,
int capacity)
Create a
VkAttachmentReference.Buffer instance at the specified memory. |
static VkAttachmentReference |
createSafe(long address)
|
static VkAttachmentReference.Buffer |
createSafe(long address,
int capacity)
|
int |
layout()
Returns the value of the
layout field. |
VkAttachmentReference |
layout(int value)
Sets the specified value to the
layout field. |
static VkAttachmentReference |
malloc()
Returns a new
VkAttachmentReference instance allocated with memAlloc. |
static VkAttachmentReference.Buffer |
malloc(int capacity)
Returns a new
VkAttachmentReference.Buffer instance allocated with memAlloc. |
static VkAttachmentReference |
mallocStack()
Returns a new
VkAttachmentReference instance allocated on the thread-local MemoryStack. |
static VkAttachmentReference.Buffer |
mallocStack(int capacity)
Returns a new
VkAttachmentReference.Buffer instance allocated on the thread-local MemoryStack. |
static VkAttachmentReference.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkAttachmentReference.Buffer instance allocated on the specified MemoryStack. |
static VkAttachmentReference |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkAttachmentReference instance allocated on the specified MemoryStack. |
static int |
nattachment(long struct)
Unsafe version of
attachment(). |
static void |
nattachment(long struct,
int value)
Unsafe version of
attachment. |
static int |
nlayout(long struct)
Unsafe version of
layout(). |
static void |
nlayout(long struct,
int value)
Unsafe version of
layout. |
VkAttachmentReference |
set(int attachment,
int layout)
Initializes this struct with the specified values.
|
VkAttachmentReference |
set(VkAttachmentReference src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int ATTACHMENT
public static final int LAYOUT
public VkAttachmentReference(java.nio.ByteBuffer container)
VkAttachmentReference instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int attachment()
attachment field.public int layout()
layout field.public VkAttachmentReference attachment(int value)
attachment field.public VkAttachmentReference layout(int value)
layout field.public VkAttachmentReference set(int attachment, int layout)
public VkAttachmentReference set(VkAttachmentReference src)
src - the source structpublic static VkAttachmentReference malloc()
VkAttachmentReference instance allocated with memAlloc. The instance must be explicitly freed.public static VkAttachmentReference calloc()
VkAttachmentReference instance allocated with memCalloc. The instance must be explicitly freed.public static VkAttachmentReference create()
VkAttachmentReference instance allocated with BufferUtils.public static VkAttachmentReference create(long address)
VkAttachmentReference instance for the specified memory address.@Nullable public static VkAttachmentReference createSafe(long address)
public static VkAttachmentReference.Buffer malloc(int capacity)
VkAttachmentReference.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkAttachmentReference.Buffer calloc(int capacity)
VkAttachmentReference.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkAttachmentReference.Buffer create(int capacity)
VkAttachmentReference.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkAttachmentReference.Buffer create(long address, int capacity)
VkAttachmentReference.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkAttachmentReference.Buffer createSafe(long address, int capacity)
public static VkAttachmentReference mallocStack()
VkAttachmentReference instance allocated on the thread-local MemoryStack.public static VkAttachmentReference callocStack()
VkAttachmentReference instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkAttachmentReference mallocStack(org.lwjgl.system.MemoryStack stack)
VkAttachmentReference instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkAttachmentReference callocStack(org.lwjgl.system.MemoryStack stack)
VkAttachmentReference instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkAttachmentReference.Buffer mallocStack(int capacity)
VkAttachmentReference.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkAttachmentReference.Buffer callocStack(int capacity)
VkAttachmentReference.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkAttachmentReference.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkAttachmentReference.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkAttachmentReference.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkAttachmentReference.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nattachment(long struct)
attachment().public static int nlayout(long struct)
layout().public static void nattachment(long struct,
int value)
attachment.public static void nlayout(long struct,
int value)
layout.Copyright LWJGL. All Rights Reserved. License terms.