public class VkAttachmentDescriptionStencilLayoutKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
stencilInitialLayout must not be 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, or IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMALstencilFinalLayout must not be 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, or IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMALstencilFinalLayout must not be IMAGE_LAYOUT_UNDEFINED or IMAGE_LAYOUT_PREINITIALIZEDsType must be STRUCTURE_TYPE_ATTACHMENT_DESCRIPTION_STENCIL_LAYOUT_KHRstencilInitialLayout must be a valid VkImageLayout valuestencilFinalLayout must be a valid VkImageLayout valuesType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.stencilInitialLayout – the layout the stencil aspect of the attachment image subresource will be in when a render pass instance begins.stencilFinalLayout – the layout the stencil aspect of the attachment image subresource will be transitioned to when a render pass instance ends.
struct VkAttachmentDescriptionStencilLayoutKHR {
VkStructureType sType;
void * pNext;
VkImageLayout stencilInitialLayout;
VkImageLayout stencilFinalLayout;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkAttachmentDescriptionStencilLayoutKHR.Buffer
An array of
VkAttachmentDescriptionStencilLayoutKHR 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 |
STENCILFINALLAYOUT
The struct member offsets.
|
static int |
STENCILINITIALLAYOUT
The struct member offsets.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkAttachmentDescriptionStencilLayoutKHR(java.nio.ByteBuffer container)
Creates a
VkAttachmentDescriptionStencilLayoutKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkAttachmentDescriptionStencilLayoutKHR |
calloc()
Returns a new
VkAttachmentDescriptionStencilLayoutKHR instance allocated with memCalloc. |
static VkAttachmentDescriptionStencilLayoutKHR.Buffer |
calloc(int capacity)
Returns a new
VkAttachmentDescriptionStencilLayoutKHR.Buffer instance allocated with memCalloc. |
static VkAttachmentDescriptionStencilLayoutKHR |
callocStack()
Returns a new
VkAttachmentDescriptionStencilLayoutKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkAttachmentDescriptionStencilLayoutKHR.Buffer |
callocStack(int capacity)
Returns a new
VkAttachmentDescriptionStencilLayoutKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkAttachmentDescriptionStencilLayoutKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkAttachmentDescriptionStencilLayoutKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkAttachmentDescriptionStencilLayoutKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkAttachmentDescriptionStencilLayoutKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkAttachmentDescriptionStencilLayoutKHR |
create()
Returns a new
VkAttachmentDescriptionStencilLayoutKHR instance allocated with BufferUtils. |
static VkAttachmentDescriptionStencilLayoutKHR.Buffer |
create(int capacity)
Returns a new
VkAttachmentDescriptionStencilLayoutKHR.Buffer instance allocated with BufferUtils. |
static VkAttachmentDescriptionStencilLayoutKHR |
create(long address)
Returns a new
VkAttachmentDescriptionStencilLayoutKHR instance for the specified memory address. |
static VkAttachmentDescriptionStencilLayoutKHR.Buffer |
create(long address,
int capacity)
Create a
VkAttachmentDescriptionStencilLayoutKHR.Buffer instance at the specified memory. |
static VkAttachmentDescriptionStencilLayoutKHR |
createSafe(long address)
|
static VkAttachmentDescriptionStencilLayoutKHR.Buffer |
createSafe(long address,
int capacity)
|
static VkAttachmentDescriptionStencilLayoutKHR |
malloc()
Returns a new
VkAttachmentDescriptionStencilLayoutKHR instance allocated with memAlloc. |
static VkAttachmentDescriptionStencilLayoutKHR.Buffer |
malloc(int capacity)
Returns a new
VkAttachmentDescriptionStencilLayoutKHR.Buffer instance allocated with memAlloc. |
static VkAttachmentDescriptionStencilLayoutKHR |
mallocStack()
Returns a new
VkAttachmentDescriptionStencilLayoutKHR instance allocated on the thread-local MemoryStack. |
static VkAttachmentDescriptionStencilLayoutKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkAttachmentDescriptionStencilLayoutKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkAttachmentDescriptionStencilLayoutKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkAttachmentDescriptionStencilLayoutKHR.Buffer instance allocated on the specified MemoryStack. |
static VkAttachmentDescriptionStencilLayoutKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkAttachmentDescriptionStencilLayoutKHR 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 |
nstencilFinalLayout(long struct)
Unsafe version of
stencilFinalLayout(). |
static void |
nstencilFinalLayout(long struct,
int value)
Unsafe version of
stencilFinalLayout. |
static int |
nstencilInitialLayout(long struct)
Unsafe version of
stencilInitialLayout(). |
static void |
nstencilInitialLayout(long struct,
int value)
Unsafe version of
stencilInitialLayout. |
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. |
VkAttachmentDescriptionStencilLayoutKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
VkAttachmentDescriptionStencilLayoutKHR |
set(int sType,
long pNext,
int stencilInitialLayout,
int stencilFinalLayout)
Initializes this struct with the specified values.
|
VkAttachmentDescriptionStencilLayoutKHR |
set(VkAttachmentDescriptionStencilLayoutKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
stencilFinalLayout()
Returns the value of the
stencilFinalLayout field. |
VkAttachmentDescriptionStencilLayoutKHR |
stencilFinalLayout(int value)
Sets the specified value to the
stencilFinalLayout field. |
int |
stencilInitialLayout()
Returns the value of the
stencilInitialLayout field. |
VkAttachmentDescriptionStencilLayoutKHR |
stencilInitialLayout(int value)
Sets the specified value to the
stencilInitialLayout field. |
int |
sType()
Returns the value of the
sType field. |
VkAttachmentDescriptionStencilLayoutKHR |
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 STENCILINITIALLAYOUT
public static final int STENCILFINALLAYOUT
public VkAttachmentDescriptionStencilLayoutKHR(java.nio.ByteBuffer container)
VkAttachmentDescriptionStencilLayoutKHR 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 stencilInitialLayout()
stencilInitialLayout field.public int stencilFinalLayout()
stencilFinalLayout field.public VkAttachmentDescriptionStencilLayoutKHR sType(int value)
sType field.public VkAttachmentDescriptionStencilLayoutKHR pNext(long value)
pNext field.public VkAttachmentDescriptionStencilLayoutKHR stencilInitialLayout(int value)
stencilInitialLayout field.public VkAttachmentDescriptionStencilLayoutKHR stencilFinalLayout(int value)
stencilFinalLayout field.public VkAttachmentDescriptionStencilLayoutKHR set(int sType, long pNext, int stencilInitialLayout, int stencilFinalLayout)
public VkAttachmentDescriptionStencilLayoutKHR set(VkAttachmentDescriptionStencilLayoutKHR src)
src - the source structpublic static VkAttachmentDescriptionStencilLayoutKHR malloc()
VkAttachmentDescriptionStencilLayoutKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkAttachmentDescriptionStencilLayoutKHR calloc()
VkAttachmentDescriptionStencilLayoutKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkAttachmentDescriptionStencilLayoutKHR create()
VkAttachmentDescriptionStencilLayoutKHR instance allocated with BufferUtils.public static VkAttachmentDescriptionStencilLayoutKHR create(long address)
VkAttachmentDescriptionStencilLayoutKHR instance for the specified memory address.@Nullable public static VkAttachmentDescriptionStencilLayoutKHR createSafe(long address)
public static VkAttachmentDescriptionStencilLayoutKHR.Buffer malloc(int capacity)
VkAttachmentDescriptionStencilLayoutKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkAttachmentDescriptionStencilLayoutKHR.Buffer calloc(int capacity)
VkAttachmentDescriptionStencilLayoutKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkAttachmentDescriptionStencilLayoutKHR.Buffer create(int capacity)
VkAttachmentDescriptionStencilLayoutKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkAttachmentDescriptionStencilLayoutKHR.Buffer create(long address, int capacity)
VkAttachmentDescriptionStencilLayoutKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkAttachmentDescriptionStencilLayoutKHR.Buffer createSafe(long address, int capacity)
public static VkAttachmentDescriptionStencilLayoutKHR mallocStack()
VkAttachmentDescriptionStencilLayoutKHR instance allocated on the thread-local MemoryStack.public static VkAttachmentDescriptionStencilLayoutKHR callocStack()
VkAttachmentDescriptionStencilLayoutKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkAttachmentDescriptionStencilLayoutKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkAttachmentDescriptionStencilLayoutKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkAttachmentDescriptionStencilLayoutKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkAttachmentDescriptionStencilLayoutKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkAttachmentDescriptionStencilLayoutKHR.Buffer mallocStack(int capacity)
VkAttachmentDescriptionStencilLayoutKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkAttachmentDescriptionStencilLayoutKHR.Buffer callocStack(int capacity)
VkAttachmentDescriptionStencilLayoutKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkAttachmentDescriptionStencilLayoutKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkAttachmentDescriptionStencilLayoutKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkAttachmentDescriptionStencilLayoutKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkAttachmentDescriptionStencilLayoutKHR.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 nstencilInitialLayout(long struct)
stencilInitialLayout().public static int nstencilFinalLayout(long struct)
stencilFinalLayout().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nstencilInitialLayout(long struct,
int value)
stencilInitialLayout.public static void nstencilFinalLayout(long struct,
int value)
stencilFinalLayout.Copyright LWJGL. All Rights Reserved. License terms.