public class VkImageStencilUsageCreateInfoEXT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
This structure specifies image usages which only apply to the stencil aspect of a depth/stencil format image. When this structure is included in the pNext chain of VkImageCreateInfo, the stencil aspect of the image must only be used as specified by stencilUsage. When this structure is not included in the pNext chain of VkImageCreateInfo, the stencil aspect of an image must only be used as specified VkImageCreateInfo::usage. Use of other aspects of an image are unaffected by this structure.
This structure can also be included in the pNext chain of VkPhysicalDeviceImageFormatInfo2 to query additional capabilities specific to image creation parameter combinations including a separate set of usage flags for the stencil aspect of the image using GetPhysicalDeviceImageFormatProperties2. When this structure is not included in the pNext chain of VkPhysicalDeviceImageFormatInfo2 then the implicit value of stencilUsage matches that of VkPhysicalDeviceImageFormatInfo2::usage.
stencilUsage includes IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT, it must not include bits other than IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT or IMAGE_USAGE_INPUT_ATTACHMENT_BITsType must be STRUCTURE_TYPE_IMAGE_STENCIL_USAGE_CREATE_INFO_EXTstencilUsage must be a valid combination of VkImageUsageFlagBits valuesstencilUsage must not be 0sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.stencilUsage – a bitmask of VkImageUsageFlagBits describing the intended usage of the stencil aspect of the image.
struct VkImageStencilUsageCreateInfoEXT {
VkStructureType sType;
void const * pNext;
VkImageUsageFlags stencilUsage;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkImageStencilUsageCreateInfoEXT.Buffer
An array of
VkImageStencilUsageCreateInfoEXT 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 |
STENCILUSAGE
The struct member offsets.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkImageStencilUsageCreateInfoEXT(java.nio.ByteBuffer container)
Creates a
VkImageStencilUsageCreateInfoEXT instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkImageStencilUsageCreateInfoEXT |
calloc()
Returns a new
VkImageStencilUsageCreateInfoEXT instance allocated with memCalloc. |
static VkImageStencilUsageCreateInfoEXT.Buffer |
calloc(int capacity)
Returns a new
VkImageStencilUsageCreateInfoEXT.Buffer instance allocated with memCalloc. |
static VkImageStencilUsageCreateInfoEXT |
callocStack()
Returns a new
VkImageStencilUsageCreateInfoEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImageStencilUsageCreateInfoEXT.Buffer |
callocStack(int capacity)
Returns a new
VkImageStencilUsageCreateInfoEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImageStencilUsageCreateInfoEXT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageStencilUsageCreateInfoEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImageStencilUsageCreateInfoEXT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageStencilUsageCreateInfoEXT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImageStencilUsageCreateInfoEXT |
create()
Returns a new
VkImageStencilUsageCreateInfoEXT instance allocated with BufferUtils. |
static VkImageStencilUsageCreateInfoEXT.Buffer |
create(int capacity)
Returns a new
VkImageStencilUsageCreateInfoEXT.Buffer instance allocated with BufferUtils. |
static VkImageStencilUsageCreateInfoEXT |
create(long address)
Returns a new
VkImageStencilUsageCreateInfoEXT instance for the specified memory address. |
static VkImageStencilUsageCreateInfoEXT.Buffer |
create(long address,
int capacity)
Create a
VkImageStencilUsageCreateInfoEXT.Buffer instance at the specified memory. |
static VkImageStencilUsageCreateInfoEXT |
createSafe(long address)
|
static VkImageStencilUsageCreateInfoEXT.Buffer |
createSafe(long address,
int capacity)
|
static VkImageStencilUsageCreateInfoEXT |
malloc()
Returns a new
VkImageStencilUsageCreateInfoEXT instance allocated with memAlloc. |
static VkImageStencilUsageCreateInfoEXT.Buffer |
malloc(int capacity)
Returns a new
VkImageStencilUsageCreateInfoEXT.Buffer instance allocated with memAlloc. |
static VkImageStencilUsageCreateInfoEXT |
mallocStack()
Returns a new
VkImageStencilUsageCreateInfoEXT instance allocated on the thread-local MemoryStack. |
static VkImageStencilUsageCreateInfoEXT.Buffer |
mallocStack(int capacity)
Returns a new
VkImageStencilUsageCreateInfoEXT.Buffer instance allocated on the thread-local MemoryStack. |
static VkImageStencilUsageCreateInfoEXT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageStencilUsageCreateInfoEXT.Buffer instance allocated on the specified MemoryStack. |
static VkImageStencilUsageCreateInfoEXT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageStencilUsageCreateInfoEXT 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 |
nstencilUsage(long struct)
Unsafe version of
stencilUsage(). |
static void |
nstencilUsage(long struct,
int value)
Unsafe version of
stencilUsage. |
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. |
VkImageStencilUsageCreateInfoEXT |
pNext(long value)
Sets the specified value to the
pNext field. |
VkImageStencilUsageCreateInfoEXT |
set(int sType,
long pNext,
int stencilUsage)
Initializes this struct with the specified values.
|
VkImageStencilUsageCreateInfoEXT |
set(VkImageStencilUsageCreateInfoEXT src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
stencilUsage()
Returns the value of the
stencilUsage field. |
VkImageStencilUsageCreateInfoEXT |
stencilUsage(int value)
Sets the specified value to the
stencilUsage field. |
int |
sType()
Returns the value of the
sType field. |
VkImageStencilUsageCreateInfoEXT |
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 STENCILUSAGE
public VkImageStencilUsageCreateInfoEXT(java.nio.ByteBuffer container)
VkImageStencilUsageCreateInfoEXT 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 stencilUsage()
stencilUsage field.public VkImageStencilUsageCreateInfoEXT sType(int value)
sType field.public VkImageStencilUsageCreateInfoEXT pNext(long value)
pNext field.public VkImageStencilUsageCreateInfoEXT stencilUsage(int value)
stencilUsage field.public VkImageStencilUsageCreateInfoEXT set(int sType, long pNext, int stencilUsage)
public VkImageStencilUsageCreateInfoEXT set(VkImageStencilUsageCreateInfoEXT src)
src - the source structpublic static VkImageStencilUsageCreateInfoEXT malloc()
VkImageStencilUsageCreateInfoEXT instance allocated with memAlloc. The instance must be explicitly freed.public static VkImageStencilUsageCreateInfoEXT calloc()
VkImageStencilUsageCreateInfoEXT instance allocated with memCalloc. The instance must be explicitly freed.public static VkImageStencilUsageCreateInfoEXT create()
VkImageStencilUsageCreateInfoEXT instance allocated with BufferUtils.public static VkImageStencilUsageCreateInfoEXT create(long address)
VkImageStencilUsageCreateInfoEXT instance for the specified memory address.@Nullable public static VkImageStencilUsageCreateInfoEXT createSafe(long address)
public static VkImageStencilUsageCreateInfoEXT.Buffer malloc(int capacity)
VkImageStencilUsageCreateInfoEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImageStencilUsageCreateInfoEXT.Buffer calloc(int capacity)
VkImageStencilUsageCreateInfoEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImageStencilUsageCreateInfoEXT.Buffer create(int capacity)
VkImageStencilUsageCreateInfoEXT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkImageStencilUsageCreateInfoEXT.Buffer create(long address, int capacity)
VkImageStencilUsageCreateInfoEXT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkImageStencilUsageCreateInfoEXT.Buffer createSafe(long address, int capacity)
public static VkImageStencilUsageCreateInfoEXT mallocStack()
VkImageStencilUsageCreateInfoEXT instance allocated on the thread-local MemoryStack.public static VkImageStencilUsageCreateInfoEXT callocStack()
VkImageStencilUsageCreateInfoEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkImageStencilUsageCreateInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
VkImageStencilUsageCreateInfoEXT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkImageStencilUsageCreateInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
VkImageStencilUsageCreateInfoEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkImageStencilUsageCreateInfoEXT.Buffer mallocStack(int capacity)
VkImageStencilUsageCreateInfoEXT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkImageStencilUsageCreateInfoEXT.Buffer callocStack(int capacity)
VkImageStencilUsageCreateInfoEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkImageStencilUsageCreateInfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImageStencilUsageCreateInfoEXT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkImageStencilUsageCreateInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImageStencilUsageCreateInfoEXT.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 nstencilUsage(long struct)
stencilUsage().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nstencilUsage(long struct,
int value)
stencilUsage.Copyright LWJGL. All Rights Reserved. License terms.