public class VkAttachmentReference2KHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
Parameters defined by this structure with the same name as those in VkAttachmentReference have the identical effect to those parameters.
aspectMask has the same effect for the described attachment as VkInputAttachmentAspectReference::aspectMask has on each corresponding attachment. It is ignored when this structure is used to describe anything other than an input attachment reference.
If the separateDepthStencilLayouts feature is enabled, and attachment has a depth/stencil format, layout can be set to a layout that only specifies the layout of the depth aspect.
If layout only specifies the layout of the depth aspect of the attachment, the layout of the stencil aspect is specified by the stencilLayout member of a VkAttachmentReferenceStencilLayoutKHR structure included in the pNext chain. Otherwise, layout describes the layout for all relevant image aspects.
attachment is not ATTACHMENT_UNUSED, layout must not be IMAGE_LAYOUT_UNDEFINED, IMAGE_LAYOUT_PREINITIALIZED, or IMAGE_LAYOUT_PRESENT_SRC_KHRattachment is not ATTACHMENT_UNUSED, and aspectMask does not include IMAGE_ASPECT_STENCIL_BIT or IMAGE_ASPECT_DEPTH_BIT, layout must not be IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL, IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL, IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL, or IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMALattachment is not ATTACHMENT_UNUSED, and aspectMask does not include IMAGE_ASPECT_COLOR_BIT, layout must not be IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMALseparateDepthStencilLayouts feature is not enabled, and attachment is not ATTACHMENT_UNUSED, layout must not be 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_KHR,attachment is not ATTACHMENT_UNUSED, and aspectMask includes IMAGE_ASPECT_COLOR_BIT, layout must not be 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_KHR,attachment is not ATTACHMENT_UNUSED, and aspectMask includes both IMAGE_ASPECT_DEPTH_BIT and IMAGE_ASPECT_STENCIL_BIT, and layout is IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL_KHR or IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL_KHR, the pNext chain must include a VkAttachmentReferenceStencilLayoutKHR structureattachment is not ATTACHMENT_UNUSED, and aspectMask includes only IMAGE_ASPECT_DEPTH_BIT then layout must not be IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL_KHR, or IMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL_KHRattachment is not ATTACHMENT_UNUSED, and aspectMask includes only IMAGE_ASPECT_STENCIL_BIT then layout must not be IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL_KHR, or IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL_KHRsType must be STRUCTURE_TYPE_ATTACHMENT_REFERENCE_2_KHRlayout must be a valid VkImageLayout valueVkSubpassDescription2KHR, VkSubpassDescriptionDepthStencilResolveKHR
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.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.aspectMask – a mask of which aspect(s) can be accessed within the specified subpass as an input attachment.
struct VkAttachmentReference2KHR {
VkStructureType sType;
void const * pNext;
uint32_t attachment;
VkImageLayout layout;
VkImageAspectFlags aspectMask;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkAttachmentReference2KHR.Buffer
An array of
VkAttachmentReference2KHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
ASPECTMASK
The struct member offsets.
|
static int |
ATTACHMENT
The struct member offsets.
|
static int |
LAYOUT
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkAttachmentReference2KHR(java.nio.ByteBuffer container)
Creates a
VkAttachmentReference2KHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
aspectMask()
Returns the value of the
aspectMask field. |
VkAttachmentReference2KHR |
aspectMask(int value)
Sets the specified value to the
aspectMask field. |
int |
attachment()
Returns the value of the
attachment field. |
VkAttachmentReference2KHR |
attachment(int value)
Sets the specified value to the
attachment field. |
static VkAttachmentReference2KHR |
calloc()
Returns a new
VkAttachmentReference2KHR instance allocated with memCalloc. |
static VkAttachmentReference2KHR.Buffer |
calloc(int capacity)
Returns a new
VkAttachmentReference2KHR.Buffer instance allocated with memCalloc. |
static VkAttachmentReference2KHR |
callocStack()
Returns a new
VkAttachmentReference2KHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkAttachmentReference2KHR.Buffer |
callocStack(int capacity)
Returns a new
VkAttachmentReference2KHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkAttachmentReference2KHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkAttachmentReference2KHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkAttachmentReference2KHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkAttachmentReference2KHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkAttachmentReference2KHR |
create()
Returns a new
VkAttachmentReference2KHR instance allocated with BufferUtils. |
static VkAttachmentReference2KHR.Buffer |
create(int capacity)
Returns a new
VkAttachmentReference2KHR.Buffer instance allocated with BufferUtils. |
static VkAttachmentReference2KHR |
create(long address)
Returns a new
VkAttachmentReference2KHR instance for the specified memory address. |
static VkAttachmentReference2KHR.Buffer |
create(long address,
int capacity)
Create a
VkAttachmentReference2KHR.Buffer instance at the specified memory. |
static VkAttachmentReference2KHR |
createSafe(long address)
|
static VkAttachmentReference2KHR.Buffer |
createSafe(long address,
int capacity)
|
int |
layout()
Returns the value of the
layout field. |
VkAttachmentReference2KHR |
layout(int value)
Sets the specified value to the
layout field. |
static VkAttachmentReference2KHR |
malloc()
Returns a new
VkAttachmentReference2KHR instance allocated with memAlloc. |
static VkAttachmentReference2KHR.Buffer |
malloc(int capacity)
Returns a new
VkAttachmentReference2KHR.Buffer instance allocated with memAlloc. |
static VkAttachmentReference2KHR |
mallocStack()
Returns a new
VkAttachmentReference2KHR instance allocated on the thread-local MemoryStack. |
static VkAttachmentReference2KHR.Buffer |
mallocStack(int capacity)
Returns a new
VkAttachmentReference2KHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkAttachmentReference2KHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkAttachmentReference2KHR.Buffer instance allocated on the specified MemoryStack. |
static VkAttachmentReference2KHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkAttachmentReference2KHR instance allocated on the specified MemoryStack. |
static int |
naspectMask(long struct)
Unsafe version of
aspectMask(). |
static void |
naspectMask(long struct,
int value)
Unsafe version of
aspectMask. |
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. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
long |
pNext()
Returns the value of the
pNext field. |
VkAttachmentReference2KHR |
pNext(long value)
Sets the specified value to the
pNext field. |
VkAttachmentReference2KHR |
set(int sType,
long pNext,
int attachment,
int layout,
int aspectMask)
Initializes this struct with the specified values.
|
VkAttachmentReference2KHR |
set(VkAttachmentReference2KHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkAttachmentReference2KHR |
sType(int value)
Sets the specified value to the
sType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int ATTACHMENT
public static final int LAYOUT
public static final int ASPECTMASK
public VkAttachmentReference2KHR(java.nio.ByteBuffer container)
VkAttachmentReference2KHR 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 sType()
sType field.public long pNext()
pNext field.public int attachment()
attachment field.public int layout()
layout field.public int aspectMask()
aspectMask field.public VkAttachmentReference2KHR sType(int value)
sType field.public VkAttachmentReference2KHR pNext(long value)
pNext field.public VkAttachmentReference2KHR attachment(int value)
attachment field.public VkAttachmentReference2KHR layout(int value)
layout field.public VkAttachmentReference2KHR aspectMask(int value)
aspectMask field.public VkAttachmentReference2KHR set(int sType, long pNext, int attachment, int layout, int aspectMask)
public VkAttachmentReference2KHR set(VkAttachmentReference2KHR src)
src - the source structpublic static VkAttachmentReference2KHR malloc()
VkAttachmentReference2KHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkAttachmentReference2KHR calloc()
VkAttachmentReference2KHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkAttachmentReference2KHR create()
VkAttachmentReference2KHR instance allocated with BufferUtils.public static VkAttachmentReference2KHR create(long address)
VkAttachmentReference2KHR instance for the specified memory address.@Nullable public static VkAttachmentReference2KHR createSafe(long address)
public static VkAttachmentReference2KHR.Buffer malloc(int capacity)
VkAttachmentReference2KHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkAttachmentReference2KHR.Buffer calloc(int capacity)
VkAttachmentReference2KHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkAttachmentReference2KHR.Buffer create(int capacity)
VkAttachmentReference2KHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkAttachmentReference2KHR.Buffer create(long address, int capacity)
VkAttachmentReference2KHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkAttachmentReference2KHR.Buffer createSafe(long address, int capacity)
public static VkAttachmentReference2KHR mallocStack()
VkAttachmentReference2KHR instance allocated on the thread-local MemoryStack.public static VkAttachmentReference2KHR callocStack()
VkAttachmentReference2KHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkAttachmentReference2KHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkAttachmentReference2KHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkAttachmentReference2KHR callocStack(org.lwjgl.system.MemoryStack stack)
VkAttachmentReference2KHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkAttachmentReference2KHR.Buffer mallocStack(int capacity)
VkAttachmentReference2KHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkAttachmentReference2KHR.Buffer callocStack(int capacity)
VkAttachmentReference2KHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkAttachmentReference2KHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkAttachmentReference2KHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkAttachmentReference2KHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkAttachmentReference2KHR.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 nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int nattachment(long struct)
attachment().public static int nlayout(long struct)
layout().public static int naspectMask(long struct)
aspectMask().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nattachment(long struct,
int value)
attachment.public static void nlayout(long struct,
int value)
layout.public static void naspectMask(long struct,
int value)
aspectMask.Copyright LWJGL. All Rights Reserved. License terms.