Package org.lwjgl.vulkan
Class VkAttachmentDescriptionStencilLayout
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkAttachmentDescriptionStencilLayout
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkAttachmentDescriptionStencilLayoutKHR
public class VkAttachmentDescriptionStencilLayout extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying an attachment description.Valid Usage
stencilInitialLayoutmust not beIMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL,IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL,IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL,IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL,IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL,IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL, orIMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMALstencilFinalLayoutmust not beIMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL,IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL,IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL,IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL,IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL,IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL, orIMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMALstencilFinalLayoutmust not beIMAGE_LAYOUT_UNDEFINEDorIMAGE_LAYOUT_PREINITIALIZED
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_ATTACHMENT_DESCRIPTION_STENCIL_LAYOUTstencilInitialLayoutmust be a validVkImageLayoutvaluestencilFinalLayoutmust be a validVkImageLayoutvalue
Layout
struct VkAttachmentDescriptionStencilLayout { VkStructureTypesType(); void *pNext(); VkImageLayoutstencilInitialLayout(); VkImageLayoutstencilFinalLayout(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkAttachmentDescriptionStencilLayout.BufferAn array ofVkAttachmentDescriptionStencilLayoutstructs.
-
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 intSTENCILFINALLAYOUT
STENCILINITIALLAYOUT
STYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkAttachmentDescriptionStencilLayout(java.nio.ByteBuffer container)Creates aVkAttachmentDescriptionStencilLayoutinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkAttachmentDescriptionStencilLayoutcalloc()Returns a newVkAttachmentDescriptionStencilLayoutinstance allocated withmemCalloc.static VkAttachmentDescriptionStencilLayout.Buffercalloc(int capacity)Returns a newVkAttachmentDescriptionStencilLayout.Bufferinstance allocated withmemCalloc.static VkAttachmentDescriptionStencilLayout.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAttachmentDescriptionStencilLayout.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAttachmentDescriptionStencilLayoutcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkAttachmentDescriptionStencilLayoutinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAttachmentDescriptionStencilLayoutcreate()Returns a newVkAttachmentDescriptionStencilLayoutinstance allocated withBufferUtils.static VkAttachmentDescriptionStencilLayout.Buffercreate(int capacity)Returns a newVkAttachmentDescriptionStencilLayout.Bufferinstance allocated withBufferUtils.static VkAttachmentDescriptionStencilLayoutcreate(long address)Returns a newVkAttachmentDescriptionStencilLayoutinstance for the specified memory address.static VkAttachmentDescriptionStencilLayout.Buffercreate(long address, int capacity)Create aVkAttachmentDescriptionStencilLayout.Bufferinstance at the specified memory.static VkAttachmentDescriptionStencilLayoutcreateSafe(long address)static VkAttachmentDescriptionStencilLayout.BuffercreateSafe(long address, int capacity)static VkAttachmentDescriptionStencilLayoutmalloc()Returns a newVkAttachmentDescriptionStencilLayoutinstance allocated withmemAlloc.static VkAttachmentDescriptionStencilLayout.Buffermalloc(int capacity)Returns a newVkAttachmentDescriptionStencilLayout.Bufferinstance allocated withmemAlloc.static VkAttachmentDescriptionStencilLayout.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAttachmentDescriptionStencilLayout.Bufferinstance allocated on the specifiedMemoryStack.static VkAttachmentDescriptionStencilLayoutmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkAttachmentDescriptionStencilLayoutinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnstencilFinalLayout(long struct)Unsafe version ofstencilFinalLayout().static voidnstencilFinalLayout(long struct, int value)Unsafe version ofstencilFinalLayout.static intnstencilInitialLayout(long struct)Unsafe version ofstencilInitialLayout().static voidnstencilInitialLayout(long struct, int value)Unsafe version ofstencilInitialLayout.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()NULLor a pointer to a structure extending this structure.VkAttachmentDescriptionStencilLayoutpNext(long value)Sets the specified value to thepNext()field.VkAttachmentDescriptionStencilLayoutset(int sType, long pNext, int stencilInitialLayout, int stencilFinalLayout)Initializes this struct with the specified values.VkAttachmentDescriptionStencilLayoutset(VkAttachmentDescriptionStencilLayout src)Copies the specified struct data to this struct.intsizeof()intstencilFinalLayout()the layout the stencil aspect of the attachment image subresource will be transitioned to when a render pass instance ends.VkAttachmentDescriptionStencilLayoutstencilFinalLayout(int value)Sets the specified value to thestencilFinalLayout()field.intstencilInitialLayout()the layout the stencil aspect of the attachment image subresource will be in when a render pass instance begins.VkAttachmentDescriptionStencilLayoutstencilInitialLayout(int value)Sets the specified value to thestencilInitialLayout()field.intsType()the type of this structure.VkAttachmentDescriptionStencilLayoutsType(int value)Sets the specified value to thesType()field.VkAttachmentDescriptionStencilLayoutsType$Default()Sets theSTRUCTURE_TYPE_ATTACHMENT_DESCRIPTION_STENCIL_LAYOUTvalue to thesType()field.
-
-
-
Constructor Detail
-
VkAttachmentDescriptionStencilLayout
public VkAttachmentDescriptionStencilLayout(java.nio.ByteBuffer container)
Creates aVkAttachmentDescriptionStencilLayoutinstance 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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
stencilInitialLayout
public int stencilInitialLayout()
the layout the stencil aspect of the attachment image subresource will be in when a render pass instance begins.
-
stencilFinalLayout
public int stencilFinalLayout()
the layout the stencil aspect of the attachment image subresource will be transitioned to when a render pass instance ends.
-
sType
public VkAttachmentDescriptionStencilLayout sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkAttachmentDescriptionStencilLayout sType$Default()
Sets theSTRUCTURE_TYPE_ATTACHMENT_DESCRIPTION_STENCIL_LAYOUTvalue to thesType()field.
-
pNext
public VkAttachmentDescriptionStencilLayout pNext(long value)
Sets the specified value to thepNext()field.
-
stencilInitialLayout
public VkAttachmentDescriptionStencilLayout stencilInitialLayout(int value)
Sets the specified value to thestencilInitialLayout()field.
-
stencilFinalLayout
public VkAttachmentDescriptionStencilLayout stencilFinalLayout(int value)
Sets the specified value to thestencilFinalLayout()field.
-
set
public VkAttachmentDescriptionStencilLayout set(int sType, long pNext, int stencilInitialLayout, int stencilFinalLayout)
Initializes this struct with the specified values.
-
set
public VkAttachmentDescriptionStencilLayout set(VkAttachmentDescriptionStencilLayout src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkAttachmentDescriptionStencilLayout malloc()
Returns a newVkAttachmentDescriptionStencilLayoutinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkAttachmentDescriptionStencilLayout calloc()
Returns a newVkAttachmentDescriptionStencilLayoutinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkAttachmentDescriptionStencilLayout create()
Returns a newVkAttachmentDescriptionStencilLayoutinstance allocated withBufferUtils.
-
create
public static VkAttachmentDescriptionStencilLayout create(long address)
Returns a newVkAttachmentDescriptionStencilLayoutinstance for the specified memory address.
-
createSafe
@Nullable public static VkAttachmentDescriptionStencilLayout createSafe(long address)
-
malloc
public static VkAttachmentDescriptionStencilLayout.Buffer malloc(int capacity)
Returns a newVkAttachmentDescriptionStencilLayout.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkAttachmentDescriptionStencilLayout.Buffer calloc(int capacity)
Returns a newVkAttachmentDescriptionStencilLayout.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkAttachmentDescriptionStencilLayout.Buffer create(int capacity)
Returns a newVkAttachmentDescriptionStencilLayout.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkAttachmentDescriptionStencilLayout.Buffer create(long address, int capacity)
Create aVkAttachmentDescriptionStencilLayout.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkAttachmentDescriptionStencilLayout.Buffer createSafe(long address, int capacity)
-
malloc
public static VkAttachmentDescriptionStencilLayout malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkAttachmentDescriptionStencilLayoutinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkAttachmentDescriptionStencilLayout calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkAttachmentDescriptionStencilLayoutinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkAttachmentDescriptionStencilLayout.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkAttachmentDescriptionStencilLayout.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkAttachmentDescriptionStencilLayout.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkAttachmentDescriptionStencilLayout.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().
-
nstencilInitialLayout
public static int nstencilInitialLayout(long struct)
Unsafe version ofstencilInitialLayout().
-
nstencilFinalLayout
public static int nstencilFinalLayout(long struct)
Unsafe version ofstencilFinalLayout().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nstencilInitialLayout
public static void nstencilInitialLayout(long struct, int value)Unsafe version ofstencilInitialLayout.
-
nstencilFinalLayout
public static void nstencilFinalLayout(long struct, int value)Unsafe version ofstencilFinalLayout.
-
-