Class VkImageStencilUsageCreateInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkImageStencilUsageCreateInfoEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkImageStencilUsageCreateInfoEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceSpecify separate usage flags for the stencil aspect of a depth-stencil image.Description
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
pNextchain ofVkImageCreateInfo, the stencil aspect of the image must only be used as specified bystencilUsage. When this structure is not included in thepNextchain ofVkImageCreateInfo, the stencil aspect of an image must only be used as specifiedVkImageCreateInfo::usage. Use of other aspects of an image are unaffected by this structure.This structure can also be included in the
pNextchain ofVkPhysicalDeviceImageFormatInfo2to query additional capabilities specific to image creation parameter combinations including a separate set of usage flags for the stencil aspect of the image usingGetPhysicalDeviceImageFormatProperties2. When this structure is not present in thepNextchain ofVkPhysicalDeviceImageFormatInfo2then the implicit value ofstencilUsagematches that ofVkPhysicalDeviceImageFormatInfo2::usage.Valid Usage
- If
stencilUsageincludesIMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT, then bits other thanIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT, andIMAGE_USAGE_INPUT_ATTACHMENT_BITmust not be set
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_IMAGE_STENCIL_USAGE_CREATE_INFO_EXTstencilUsagemust be a valid combination ofVkImageUsageFlagBitsvaluesstencilUsagemust not be 0
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.stencilUsage– a bitmask ofVkImageUsageFlagBitsdescribing the intended usage of the stencil aspect of the image.
Layout
struct VkImageStencilUsageCreateInfoEXT { VkStructureType sType; void const * pNext; VkImageUsageFlags stencilUsage; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkImageStencilUsageCreateInfoEXT.BufferAn array ofVkImageStencilUsageCreateInfoEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTENCILUSAGE
STYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkImageStencilUsageCreateInfoEXT(java.nio.ByteBuffer container)Creates aVkImageStencilUsageCreateInfoEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkImageStencilUsageCreateInfoEXTcalloc()Returns a newVkImageStencilUsageCreateInfoEXTinstance allocated withmemCalloc.static VkImageStencilUsageCreateInfoEXT.Buffercalloc(int capacity)Returns a newVkImageStencilUsageCreateInfoEXT.Bufferinstance allocated withmemCalloc.static VkImageStencilUsageCreateInfoEXTcallocStack()Returns a newVkImageStencilUsageCreateInfoEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImageStencilUsageCreateInfoEXT.BuffercallocStack(int capacity)Returns a newVkImageStencilUsageCreateInfoEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImageStencilUsageCreateInfoEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageStencilUsageCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageStencilUsageCreateInfoEXTcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkImageStencilUsageCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageStencilUsageCreateInfoEXTcreate()Returns a newVkImageStencilUsageCreateInfoEXTinstance allocated withBufferUtils.static VkImageStencilUsageCreateInfoEXT.Buffercreate(int capacity)Returns a newVkImageStencilUsageCreateInfoEXT.Bufferinstance allocated withBufferUtils.static VkImageStencilUsageCreateInfoEXTcreate(long address)Returns a newVkImageStencilUsageCreateInfoEXTinstance for the specified memory address.static VkImageStencilUsageCreateInfoEXT.Buffercreate(long address, int capacity)Create aVkImageStencilUsageCreateInfoEXT.Bufferinstance at the specified memory.static VkImageStencilUsageCreateInfoEXTcreateSafe(long address)static VkImageStencilUsageCreateInfoEXT.BuffercreateSafe(long address, int capacity)static VkImageStencilUsageCreateInfoEXTmalloc()Returns a newVkImageStencilUsageCreateInfoEXTinstance allocated withmemAlloc.static VkImageStencilUsageCreateInfoEXT.Buffermalloc(int capacity)Returns a newVkImageStencilUsageCreateInfoEXT.Bufferinstance allocated withmemAlloc.static VkImageStencilUsageCreateInfoEXTmallocStack()Returns a newVkImageStencilUsageCreateInfoEXTinstance allocated on the thread-localMemoryStack.static VkImageStencilUsageCreateInfoEXT.BuffermallocStack(int capacity)Returns a newVkImageStencilUsageCreateInfoEXT.Bufferinstance allocated on the thread-localMemoryStack.static VkImageStencilUsageCreateInfoEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageStencilUsageCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkImageStencilUsageCreateInfoEXTmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkImageStencilUsageCreateInfoEXTinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnstencilUsage(long struct)Unsafe version ofstencilUsage().static voidnstencilUsage(long struct, int value)Unsafe version ofstencilUsage.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()Returns the value of thepNextfield.VkImageStencilUsageCreateInfoEXTpNext(long value)Sets the specified value to thepNextfield.VkImageStencilUsageCreateInfoEXTset(int sType, long pNext, int stencilUsage)Initializes this struct with the specified values.VkImageStencilUsageCreateInfoEXTset(VkImageStencilUsageCreateInfoEXT src)Copies the specified struct data to this struct.intsizeof()intstencilUsage()Returns the value of thestencilUsagefield.VkImageStencilUsageCreateInfoEXTstencilUsage(int value)Sets the specified value to thestencilUsagefield.intsType()Returns the value of thesTypefield.VkImageStencilUsageCreateInfoEXTsType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkImageStencilUsageCreateInfoEXT
public VkImageStencilUsageCreateInfoEXT(java.nio.ByteBuffer container)
Creates aVkImageStencilUsageCreateInfoEXTinstance at the current position of the specifiedByteBuffercontainer. 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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
stencilUsage
public int stencilUsage()
Returns the value of thestencilUsagefield.
-
sType
public VkImageStencilUsageCreateInfoEXT sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkImageStencilUsageCreateInfoEXT pNext(long value)
Sets the specified value to thepNextfield.
-
stencilUsage
public VkImageStencilUsageCreateInfoEXT stencilUsage(int value)
Sets the specified value to thestencilUsagefield.
-
set
public VkImageStencilUsageCreateInfoEXT set(int sType, long pNext, int stencilUsage)
Initializes this struct with the specified values.
-
set
public VkImageStencilUsageCreateInfoEXT set(VkImageStencilUsageCreateInfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkImageStencilUsageCreateInfoEXT malloc()
Returns a newVkImageStencilUsageCreateInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkImageStencilUsageCreateInfoEXT calloc()
Returns a newVkImageStencilUsageCreateInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkImageStencilUsageCreateInfoEXT create()
Returns a newVkImageStencilUsageCreateInfoEXTinstance allocated withBufferUtils.
-
create
public static VkImageStencilUsageCreateInfoEXT create(long address)
Returns a newVkImageStencilUsageCreateInfoEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkImageStencilUsageCreateInfoEXT createSafe(long address)
-
malloc
public static VkImageStencilUsageCreateInfoEXT.Buffer malloc(int capacity)
Returns a newVkImageStencilUsageCreateInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkImageStencilUsageCreateInfoEXT.Buffer calloc(int capacity)
Returns a newVkImageStencilUsageCreateInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageStencilUsageCreateInfoEXT.Buffer create(int capacity)
Returns a newVkImageStencilUsageCreateInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageStencilUsageCreateInfoEXT.Buffer create(long address, int capacity)
Create aVkImageStencilUsageCreateInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkImageStencilUsageCreateInfoEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkImageStencilUsageCreateInfoEXT mallocStack()
Returns a newVkImageStencilUsageCreateInfoEXTinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkImageStencilUsageCreateInfoEXT callocStack()
Returns a newVkImageStencilUsageCreateInfoEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkImageStencilUsageCreateInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageStencilUsageCreateInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkImageStencilUsageCreateInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageStencilUsageCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkImageStencilUsageCreateInfoEXT.Buffer mallocStack(int capacity)
Returns a newVkImageStencilUsageCreateInfoEXT.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkImageStencilUsageCreateInfoEXT.Buffer callocStack(int capacity)
Returns a newVkImageStencilUsageCreateInfoEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkImageStencilUsageCreateInfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageStencilUsageCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkImageStencilUsageCreateInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageStencilUsageCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
nstencilUsage
public static int nstencilUsage(long struct)
Unsafe version ofstencilUsage().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nstencilUsage
public static void nstencilUsage(long struct, int value)Unsafe version ofstencilUsage.
-
-