Package org.lwjgl.vulkan
Class VkAttachmentReferenceStencilLayout
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkAttachmentReferenceStencilLayout
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkAttachmentReferenceStencilLayoutKHR
public class VkAttachmentReferenceStencilLayout extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying an attachment description.Valid Usage
stencilLayoutmust not beIMAGE_LAYOUT_UNDEFINED,IMAGE_LAYOUT_PREINITIALIZED,IMAGE_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,IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL, orIMAGE_LAYOUT_PRESENT_SRC_KHR
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_ATTACHMENT_REFERENCE_STENCIL_LAYOUTstencilLayoutmust be a validVkImageLayoutvalue
Layout
struct VkAttachmentReferenceStencilLayout { VkStructureTypesType(); void *pNext(); VkImageLayoutstencilLayout(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkAttachmentReferenceStencilLayout.BufferAn array ofVkAttachmentReferenceStencilLayoutstructs.
-
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 intSTENCILLAYOUT
STYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkAttachmentReferenceStencilLayout(java.nio.ByteBuffer container)Creates aVkAttachmentReferenceStencilLayoutinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkAttachmentReferenceStencilLayoutcalloc()Returns a newVkAttachmentReferenceStencilLayoutinstance allocated withmemCalloc.static VkAttachmentReferenceStencilLayout.Buffercalloc(int capacity)Returns a newVkAttachmentReferenceStencilLayout.Bufferinstance allocated withmemCalloc.static VkAttachmentReferenceStencilLayout.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAttachmentReferenceStencilLayout.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAttachmentReferenceStencilLayoutcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkAttachmentReferenceStencilLayoutinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAttachmentReferenceStencilLayoutcreate()Returns a newVkAttachmentReferenceStencilLayoutinstance allocated withBufferUtils.static VkAttachmentReferenceStencilLayout.Buffercreate(int capacity)Returns a newVkAttachmentReferenceStencilLayout.Bufferinstance allocated withBufferUtils.static VkAttachmentReferenceStencilLayoutcreate(long address)Returns a newVkAttachmentReferenceStencilLayoutinstance for the specified memory address.static VkAttachmentReferenceStencilLayout.Buffercreate(long address, int capacity)Create aVkAttachmentReferenceStencilLayout.Bufferinstance at the specified memory.static VkAttachmentReferenceStencilLayoutcreateSafe(long address)static VkAttachmentReferenceStencilLayout.BuffercreateSafe(long address, int capacity)static VkAttachmentReferenceStencilLayoutmalloc()Returns a newVkAttachmentReferenceStencilLayoutinstance allocated withmemAlloc.static VkAttachmentReferenceStencilLayout.Buffermalloc(int capacity)Returns a newVkAttachmentReferenceStencilLayout.Bufferinstance allocated withmemAlloc.static VkAttachmentReferenceStencilLayout.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAttachmentReferenceStencilLayout.Bufferinstance allocated on the specifiedMemoryStack.static VkAttachmentReferenceStencilLayoutmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkAttachmentReferenceStencilLayoutinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnstencilLayout(long struct)Unsafe version ofstencilLayout().static voidnstencilLayout(long struct, int value)Unsafe version ofstencilLayout.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.VkAttachmentReferenceStencilLayoutpNext(long value)Sets the specified value to thepNext()field.VkAttachmentReferenceStencilLayoutset(int sType, long pNext, int stencilLayout)Initializes this struct with the specified values.VkAttachmentReferenceStencilLayoutset(VkAttachmentReferenceStencilLayout src)Copies the specified struct data to this struct.intsizeof()intstencilLayout()aVkImageLayoutvalue specifying the layout the stencil aspect of the attachment uses during the subpass.VkAttachmentReferenceStencilLayoutstencilLayout(int value)Sets the specified value to thestencilLayout()field.intsType()the type of this structure.VkAttachmentReferenceStencilLayoutsType(int value)Sets the specified value to thesType()field.VkAttachmentReferenceStencilLayoutsType$Default()Sets theSTRUCTURE_TYPE_ATTACHMENT_REFERENCE_STENCIL_LAYOUTvalue to thesType()field.
-
-
-
Constructor Detail
-
VkAttachmentReferenceStencilLayout
public VkAttachmentReferenceStencilLayout(java.nio.ByteBuffer container)
Creates aVkAttachmentReferenceStencilLayoutinstance 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.
-
stencilLayout
public int stencilLayout()
aVkImageLayoutvalue specifying the layout the stencil aspect of the attachment uses during the subpass.
-
sType
public VkAttachmentReferenceStencilLayout sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkAttachmentReferenceStencilLayout sType$Default()
Sets theSTRUCTURE_TYPE_ATTACHMENT_REFERENCE_STENCIL_LAYOUTvalue to thesType()field.
-
pNext
public VkAttachmentReferenceStencilLayout pNext(long value)
Sets the specified value to thepNext()field.
-
stencilLayout
public VkAttachmentReferenceStencilLayout stencilLayout(int value)
Sets the specified value to thestencilLayout()field.
-
set
public VkAttachmentReferenceStencilLayout set(int sType, long pNext, int stencilLayout)
Initializes this struct with the specified values.
-
set
public VkAttachmentReferenceStencilLayout set(VkAttachmentReferenceStencilLayout src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkAttachmentReferenceStencilLayout malloc()
Returns a newVkAttachmentReferenceStencilLayoutinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkAttachmentReferenceStencilLayout calloc()
Returns a newVkAttachmentReferenceStencilLayoutinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkAttachmentReferenceStencilLayout create()
Returns a newVkAttachmentReferenceStencilLayoutinstance allocated withBufferUtils.
-
create
public static VkAttachmentReferenceStencilLayout create(long address)
Returns a newVkAttachmentReferenceStencilLayoutinstance for the specified memory address.
-
createSafe
@Nullable public static VkAttachmentReferenceStencilLayout createSafe(long address)
-
malloc
public static VkAttachmentReferenceStencilLayout.Buffer malloc(int capacity)
Returns a newVkAttachmentReferenceStencilLayout.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkAttachmentReferenceStencilLayout.Buffer calloc(int capacity)
Returns a newVkAttachmentReferenceStencilLayout.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkAttachmentReferenceStencilLayout.Buffer create(int capacity)
Returns a newVkAttachmentReferenceStencilLayout.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkAttachmentReferenceStencilLayout.Buffer create(long address, int capacity)
Create aVkAttachmentReferenceStencilLayout.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkAttachmentReferenceStencilLayout.Buffer createSafe(long address, int capacity)
-
malloc
public static VkAttachmentReferenceStencilLayout malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkAttachmentReferenceStencilLayoutinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkAttachmentReferenceStencilLayout calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkAttachmentReferenceStencilLayoutinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkAttachmentReferenceStencilLayout.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkAttachmentReferenceStencilLayout.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkAttachmentReferenceStencilLayout.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkAttachmentReferenceStencilLayout.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().
-
nstencilLayout
public static int nstencilLayout(long struct)
Unsafe version ofstencilLayout().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nstencilLayout
public static void nstencilLayout(long struct, int value)Unsafe version ofstencilLayout.
-
-