Package org.lwjgl.vulkan
Class VkRenderPassAttachmentBeginInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkRenderPassAttachmentBeginInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkRenderPassAttachmentBeginInfoKHR
public class VkRenderPassAttachmentBeginInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying images to be used as framebuffer attachments.Valid Usage
- Each element of
pAttachmentsmust only specify a single mip level - Each element of
pAttachmentsmust have been created with the identity swizzle - Each element of
pAttachmentsmust have been created withVkImageViewCreateInfo::viewTypenot equal toIMAGE_VIEW_TYPE_3D
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_RENDER_PASS_ATTACHMENT_BEGIN_INFO- If
attachmentCountis not 0,pAttachmentsmust be a valid pointer to an array ofattachmentCountvalidVkImageViewhandles
Layout
struct VkRenderPassAttachmentBeginInfo { VkStructureTypesType(); void const *pNext(); uint32_tattachmentCount(); VkImageView const *pAttachments(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkRenderPassAttachmentBeginInfo.BufferAn array ofVkRenderPassAttachmentBeginInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intATTACHMENTCOUNT
PATTACHMENTS
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkRenderPassAttachmentBeginInfo(java.nio.ByteBuffer container)Creates aVkRenderPassAttachmentBeginInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intattachmentCount()the number of attachments.static VkRenderPassAttachmentBeginInfocalloc()Returns a newVkRenderPassAttachmentBeginInfoinstance allocated withmemCalloc.static VkRenderPassAttachmentBeginInfo.Buffercalloc(int capacity)Returns a newVkRenderPassAttachmentBeginInfo.Bufferinstance allocated withmemCalloc.static VkRenderPassAttachmentBeginInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkRenderPassAttachmentBeginInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkRenderPassAttachmentBeginInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkRenderPassAttachmentBeginInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkRenderPassAttachmentBeginInfocreate()Returns a newVkRenderPassAttachmentBeginInfoinstance allocated withBufferUtils.static VkRenderPassAttachmentBeginInfo.Buffercreate(int capacity)Returns a newVkRenderPassAttachmentBeginInfo.Bufferinstance allocated withBufferUtils.static VkRenderPassAttachmentBeginInfocreate(long address)Returns a newVkRenderPassAttachmentBeginInfoinstance for the specified memory address.static VkRenderPassAttachmentBeginInfo.Buffercreate(long address, int capacity)Create aVkRenderPassAttachmentBeginInfo.Bufferinstance at the specified memory.static VkRenderPassAttachmentBeginInfocreateSafe(long address)static VkRenderPassAttachmentBeginInfo.BuffercreateSafe(long address, int capacity)static VkRenderPassAttachmentBeginInfomalloc()Returns a newVkRenderPassAttachmentBeginInfoinstance allocated withmemAlloc.static VkRenderPassAttachmentBeginInfo.Buffermalloc(int capacity)Returns a newVkRenderPassAttachmentBeginInfo.Bufferinstance allocated withmemAlloc.static VkRenderPassAttachmentBeginInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkRenderPassAttachmentBeginInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkRenderPassAttachmentBeginInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkRenderPassAttachmentBeginInfoinstance allocated on the specifiedMemoryStack.static intnattachmentCount(long struct)Unsafe version ofattachmentCount().static voidnattachmentCount(long struct, int value)Sets the specified value to theattachmentCountfield of the specifiedstruct.static java.nio.LongBuffernpAttachments(long struct)Unsafe version ofpAttachments.static voidnpAttachments(long struct, java.nio.LongBuffer value)Unsafe version ofpAttachments.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.java.nio.LongBufferpAttachments()a pointer to an array ofVkImageViewhandles, each of which will be used as the corresponding attachment in the render pass instance.VkRenderPassAttachmentBeginInfopAttachments(java.nio.LongBuffer value)Sets the address of the specifiedLongBufferto thepAttachments()field.longpNext()NULLor a pointer to a structure extending this structure.VkRenderPassAttachmentBeginInfopNext(long value)Sets the specified value to thepNext()field.VkRenderPassAttachmentBeginInfoset(int sType, long pNext, java.nio.LongBuffer pAttachments)Initializes this struct with the specified values.VkRenderPassAttachmentBeginInfoset(VkRenderPassAttachmentBeginInfo src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkRenderPassAttachmentBeginInfosType(int value)Sets the specified value to thesType()field.VkRenderPassAttachmentBeginInfosType$Default()Sets theSTRUCTURE_TYPE_RENDER_PASS_ATTACHMENT_BEGIN_INFOvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
VkRenderPassAttachmentBeginInfo
public VkRenderPassAttachmentBeginInfo(java.nio.ByteBuffer container)
Creates aVkRenderPassAttachmentBeginInfoinstance 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.
-
attachmentCount
public int attachmentCount()
the number of attachments.
-
pAttachments
@Nullable public java.nio.LongBuffer pAttachments()
a pointer to an array ofVkImageViewhandles, each of which will be used as the corresponding attachment in the render pass instance.
-
sType
public VkRenderPassAttachmentBeginInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkRenderPassAttachmentBeginInfo sType$Default()
Sets theSTRUCTURE_TYPE_RENDER_PASS_ATTACHMENT_BEGIN_INFOvalue to thesType()field.
-
pNext
public VkRenderPassAttachmentBeginInfo pNext(long value)
Sets the specified value to thepNext()field.
-
pAttachments
public VkRenderPassAttachmentBeginInfo pAttachments(@Nullable java.nio.LongBuffer value)
Sets the address of the specifiedLongBufferto thepAttachments()field.
-
set
public VkRenderPassAttachmentBeginInfo set(int sType, long pNext, @Nullable java.nio.LongBuffer pAttachments)
Initializes this struct with the specified values.
-
set
public VkRenderPassAttachmentBeginInfo set(VkRenderPassAttachmentBeginInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkRenderPassAttachmentBeginInfo malloc()
Returns a newVkRenderPassAttachmentBeginInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkRenderPassAttachmentBeginInfo calloc()
Returns a newVkRenderPassAttachmentBeginInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkRenderPassAttachmentBeginInfo create()
Returns a newVkRenderPassAttachmentBeginInfoinstance allocated withBufferUtils.
-
create
public static VkRenderPassAttachmentBeginInfo create(long address)
Returns a newVkRenderPassAttachmentBeginInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkRenderPassAttachmentBeginInfo createSafe(long address)
-
malloc
public static VkRenderPassAttachmentBeginInfo.Buffer malloc(int capacity)
Returns a newVkRenderPassAttachmentBeginInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkRenderPassAttachmentBeginInfo.Buffer calloc(int capacity)
Returns a newVkRenderPassAttachmentBeginInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkRenderPassAttachmentBeginInfo.Buffer create(int capacity)
Returns a newVkRenderPassAttachmentBeginInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkRenderPassAttachmentBeginInfo.Buffer create(long address, int capacity)
Create aVkRenderPassAttachmentBeginInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkRenderPassAttachmentBeginInfo.Buffer createSafe(long address, int capacity)
-
malloc
public static VkRenderPassAttachmentBeginInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderPassAttachmentBeginInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkRenderPassAttachmentBeginInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderPassAttachmentBeginInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkRenderPassAttachmentBeginInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderPassAttachmentBeginInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkRenderPassAttachmentBeginInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderPassAttachmentBeginInfo.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().
-
nattachmentCount
public static int nattachmentCount(long struct)
Unsafe version ofattachmentCount().
-
npAttachments
@Nullable public static java.nio.LongBuffer npAttachments(long struct)
Unsafe version ofpAttachments.
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nattachmentCount
public static void nattachmentCount(long struct, int value)Sets the specified value to theattachmentCountfield of the specifiedstruct.
-
npAttachments
public static void npAttachments(long struct, @Nullable java.nio.LongBuffer value)Unsafe version ofpAttachments.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-