public class VkAttachmentReferenceStencilLayoutKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
stencilLayout must not be IMAGE_LAYOUT_UNDEFINED, IMAGE_LAYOUT_PREINITIALIZED, IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL, IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL_KHR, IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL_KHR, IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL, IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL, IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL, IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL, or IMAGE_LAYOUT_PRESENT_SRC_KHRsType must be STRUCTURE_TYPE_ATTACHMENT_REFERENCE_STENCIL_LAYOUT_KHRstencilLayout must be a valid VkImageLayout valuesType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.stencilLayout – a VkImageLayout value specifying the layout the stencil aspect of the attachment uses during the subpass.
struct VkAttachmentReferenceStencilLayoutKHR {
VkStructureType sType;
void * pNext;
VkImageLayout stencilLayout;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkAttachmentReferenceStencilLayoutKHR.Buffer
An array of
VkAttachmentReferenceStencilLayoutKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STENCILLAYOUT
The struct member offsets.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkAttachmentReferenceStencilLayoutKHR(java.nio.ByteBuffer container)
Creates a
VkAttachmentReferenceStencilLayoutKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkAttachmentReferenceStencilLayoutKHR |
calloc()
Returns a new
VkAttachmentReferenceStencilLayoutKHR instance allocated with memCalloc. |
static VkAttachmentReferenceStencilLayoutKHR.Buffer |
calloc(int capacity)
Returns a new
VkAttachmentReferenceStencilLayoutKHR.Buffer instance allocated with memCalloc. |
static VkAttachmentReferenceStencilLayoutKHR |
callocStack()
Returns a new
VkAttachmentReferenceStencilLayoutKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkAttachmentReferenceStencilLayoutKHR.Buffer |
callocStack(int capacity)
Returns a new
VkAttachmentReferenceStencilLayoutKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkAttachmentReferenceStencilLayoutKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkAttachmentReferenceStencilLayoutKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkAttachmentReferenceStencilLayoutKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkAttachmentReferenceStencilLayoutKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkAttachmentReferenceStencilLayoutKHR |
create()
Returns a new
VkAttachmentReferenceStencilLayoutKHR instance allocated with BufferUtils. |
static VkAttachmentReferenceStencilLayoutKHR.Buffer |
create(int capacity)
Returns a new
VkAttachmentReferenceStencilLayoutKHR.Buffer instance allocated with BufferUtils. |
static VkAttachmentReferenceStencilLayoutKHR |
create(long address)
Returns a new
VkAttachmentReferenceStencilLayoutKHR instance for the specified memory address. |
static VkAttachmentReferenceStencilLayoutKHR.Buffer |
create(long address,
int capacity)
Create a
VkAttachmentReferenceStencilLayoutKHR.Buffer instance at the specified memory. |
static VkAttachmentReferenceStencilLayoutKHR |
createSafe(long address)
|
static VkAttachmentReferenceStencilLayoutKHR.Buffer |
createSafe(long address,
int capacity)
|
static VkAttachmentReferenceStencilLayoutKHR |
malloc()
Returns a new
VkAttachmentReferenceStencilLayoutKHR instance allocated with memAlloc. |
static VkAttachmentReferenceStencilLayoutKHR.Buffer |
malloc(int capacity)
Returns a new
VkAttachmentReferenceStencilLayoutKHR.Buffer instance allocated with memAlloc. |
static VkAttachmentReferenceStencilLayoutKHR |
mallocStack()
Returns a new
VkAttachmentReferenceStencilLayoutKHR instance allocated on the thread-local MemoryStack. |
static VkAttachmentReferenceStencilLayoutKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkAttachmentReferenceStencilLayoutKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkAttachmentReferenceStencilLayoutKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkAttachmentReferenceStencilLayoutKHR.Buffer instance allocated on the specified MemoryStack. |
static VkAttachmentReferenceStencilLayoutKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkAttachmentReferenceStencilLayoutKHR instance allocated on the specified MemoryStack. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nstencilLayout(long struct)
Unsafe version of
stencilLayout(). |
static void |
nstencilLayout(long struct,
int value)
Unsafe version of
stencilLayout. |
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. |
VkAttachmentReferenceStencilLayoutKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
VkAttachmentReferenceStencilLayoutKHR |
set(int sType,
long pNext,
int stencilLayout)
Initializes this struct with the specified values.
|
VkAttachmentReferenceStencilLayoutKHR |
set(VkAttachmentReferenceStencilLayoutKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
stencilLayout()
Returns the value of the
stencilLayout field. |
VkAttachmentReferenceStencilLayoutKHR |
stencilLayout(int value)
Sets the specified value to the
stencilLayout field. |
int |
sType()
Returns the value of the
sType field. |
VkAttachmentReferenceStencilLayoutKHR |
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 STENCILLAYOUT
public VkAttachmentReferenceStencilLayoutKHR(java.nio.ByteBuffer container)
VkAttachmentReferenceStencilLayoutKHR 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 stencilLayout()
stencilLayout field.public VkAttachmentReferenceStencilLayoutKHR sType(int value)
sType field.public VkAttachmentReferenceStencilLayoutKHR pNext(long value)
pNext field.public VkAttachmentReferenceStencilLayoutKHR stencilLayout(int value)
stencilLayout field.public VkAttachmentReferenceStencilLayoutKHR set(int sType, long pNext, int stencilLayout)
public VkAttachmentReferenceStencilLayoutKHR set(VkAttachmentReferenceStencilLayoutKHR src)
src - the source structpublic static VkAttachmentReferenceStencilLayoutKHR malloc()
VkAttachmentReferenceStencilLayoutKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkAttachmentReferenceStencilLayoutKHR calloc()
VkAttachmentReferenceStencilLayoutKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkAttachmentReferenceStencilLayoutKHR create()
VkAttachmentReferenceStencilLayoutKHR instance allocated with BufferUtils.public static VkAttachmentReferenceStencilLayoutKHR create(long address)
VkAttachmentReferenceStencilLayoutKHR instance for the specified memory address.@Nullable public static VkAttachmentReferenceStencilLayoutKHR createSafe(long address)
public static VkAttachmentReferenceStencilLayoutKHR.Buffer malloc(int capacity)
VkAttachmentReferenceStencilLayoutKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkAttachmentReferenceStencilLayoutKHR.Buffer calloc(int capacity)
VkAttachmentReferenceStencilLayoutKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkAttachmentReferenceStencilLayoutKHR.Buffer create(int capacity)
VkAttachmentReferenceStencilLayoutKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkAttachmentReferenceStencilLayoutKHR.Buffer create(long address, int capacity)
VkAttachmentReferenceStencilLayoutKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkAttachmentReferenceStencilLayoutKHR.Buffer createSafe(long address, int capacity)
public static VkAttachmentReferenceStencilLayoutKHR mallocStack()
VkAttachmentReferenceStencilLayoutKHR instance allocated on the thread-local MemoryStack.public static VkAttachmentReferenceStencilLayoutKHR callocStack()
VkAttachmentReferenceStencilLayoutKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkAttachmentReferenceStencilLayoutKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkAttachmentReferenceStencilLayoutKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkAttachmentReferenceStencilLayoutKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkAttachmentReferenceStencilLayoutKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkAttachmentReferenceStencilLayoutKHR.Buffer mallocStack(int capacity)
VkAttachmentReferenceStencilLayoutKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkAttachmentReferenceStencilLayoutKHR.Buffer callocStack(int capacity)
VkAttachmentReferenceStencilLayoutKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkAttachmentReferenceStencilLayoutKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkAttachmentReferenceStencilLayoutKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkAttachmentReferenceStencilLayoutKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkAttachmentReferenceStencilLayoutKHR.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 nstencilLayout(long struct)
stencilLayout().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nstencilLayout(long struct,
int value)
stencilLayout.Copyright LWJGL. All Rights Reserved. License terms.