Package org.lwjgl.vulkan
Class VkFramebufferAttachmentsCreateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkFramebufferAttachmentsCreateInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkFramebufferAttachmentsCreateInfoKHR
public class VkFramebufferAttachmentsCreateInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying parameters of images that will be used with a framebuffer.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_FRAMEBUFFER_ATTACHMENTS_CREATE_INFO- If
attachmentImageInfoCountis not 0,pAttachmentImageInfosmust be a valid pointer to an array ofattachmentImageInfoCountvalidVkFramebufferAttachmentImageInfostructures
See Also
VkFramebufferAttachmentImageInfoLayout
struct VkFramebufferAttachmentsCreateInfo { VkStructureTypesType(); void const *pNext(); uint32_tattachmentImageInfoCount();VkFramebufferAttachmentImageInfoconst *pAttachmentImageInfos(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkFramebufferAttachmentsCreateInfo.BufferAn array ofVkFramebufferAttachmentsCreateInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intATTACHMENTIMAGEINFOCOUNT
PATTACHMENTIMAGEINFOS
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkFramebufferAttachmentsCreateInfo(java.nio.ByteBuffer container)Creates aVkFramebufferAttachmentsCreateInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intattachmentImageInfoCount()the number of attachments being described.static VkFramebufferAttachmentsCreateInfocalloc()Returns a newVkFramebufferAttachmentsCreateInfoinstance allocated withmemCalloc.static VkFramebufferAttachmentsCreateInfo.Buffercalloc(int capacity)Returns a newVkFramebufferAttachmentsCreateInfo.Bufferinstance allocated withmemCalloc.static VkFramebufferAttachmentsCreateInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkFramebufferAttachmentsCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkFramebufferAttachmentsCreateInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkFramebufferAttachmentsCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkFramebufferAttachmentsCreateInfocreate()Returns a newVkFramebufferAttachmentsCreateInfoinstance allocated withBufferUtils.static VkFramebufferAttachmentsCreateInfo.Buffercreate(int capacity)Returns a newVkFramebufferAttachmentsCreateInfo.Bufferinstance allocated withBufferUtils.static VkFramebufferAttachmentsCreateInfocreate(long address)Returns a newVkFramebufferAttachmentsCreateInfoinstance for the specified memory address.static VkFramebufferAttachmentsCreateInfo.Buffercreate(long address, int capacity)Create aVkFramebufferAttachmentsCreateInfo.Bufferinstance at the specified memory.static VkFramebufferAttachmentsCreateInfocreateSafe(long address)static VkFramebufferAttachmentsCreateInfo.BuffercreateSafe(long address, int capacity)static VkFramebufferAttachmentsCreateInfomalloc()Returns a newVkFramebufferAttachmentsCreateInfoinstance allocated withmemAlloc.static VkFramebufferAttachmentsCreateInfo.Buffermalloc(int capacity)Returns a newVkFramebufferAttachmentsCreateInfo.Bufferinstance allocated withmemAlloc.static VkFramebufferAttachmentsCreateInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkFramebufferAttachmentsCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkFramebufferAttachmentsCreateInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkFramebufferAttachmentsCreateInfoinstance allocated on the specifiedMemoryStack.static intnattachmentImageInfoCount(long struct)Unsafe version ofattachmentImageInfoCount().static voidnattachmentImageInfoCount(long struct, int value)Sets the specified value to theattachmentImageInfoCountfield of the specifiedstruct.static VkFramebufferAttachmentImageInfo.BuffernpAttachmentImageInfos(long struct)Unsafe version ofpAttachmentImageInfos().static voidnpAttachmentImageInfos(long struct, VkFramebufferAttachmentImageInfo.Buffer value)Unsafe version ofpAttachmentImageInfos.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.VkFramebufferAttachmentImageInfo.BufferpAttachmentImageInfos()a pointer to an array ofVkFramebufferAttachmentImageInfostructures, each structure describing a number of parameters of the corresponding attachment in a render pass instance.VkFramebufferAttachmentsCreateInfopAttachmentImageInfos(VkFramebufferAttachmentImageInfo.Buffer value)Sets the address of the specifiedVkFramebufferAttachmentImageInfo.Bufferto thepAttachmentImageInfos()field.longpNext()NULLor a pointer to a structure extending this structure.VkFramebufferAttachmentsCreateInfopNext(long value)Sets the specified value to thepNext()field.VkFramebufferAttachmentsCreateInfoset(int sType, long pNext, VkFramebufferAttachmentImageInfo.Buffer pAttachmentImageInfos)Initializes this struct with the specified values.VkFramebufferAttachmentsCreateInfoset(VkFramebufferAttachmentsCreateInfo src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkFramebufferAttachmentsCreateInfosType(int value)Sets the specified value to thesType()field.VkFramebufferAttachmentsCreateInfosType$Default()Sets theSTRUCTURE_TYPE_FRAMEBUFFER_ATTACHMENTS_CREATE_INFOvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
VkFramebufferAttachmentsCreateInfo
public VkFramebufferAttachmentsCreateInfo(java.nio.ByteBuffer container)
Creates aVkFramebufferAttachmentsCreateInfoinstance 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.
-
attachmentImageInfoCount
public int attachmentImageInfoCount()
the number of attachments being described.
-
pAttachmentImageInfos
@Nullable public VkFramebufferAttachmentImageInfo.Buffer pAttachmentImageInfos()
a pointer to an array ofVkFramebufferAttachmentImageInfostructures, each structure describing a number of parameters of the corresponding attachment in a render pass instance.
-
sType
public VkFramebufferAttachmentsCreateInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkFramebufferAttachmentsCreateInfo sType$Default()
Sets theSTRUCTURE_TYPE_FRAMEBUFFER_ATTACHMENTS_CREATE_INFOvalue to thesType()field.
-
pNext
public VkFramebufferAttachmentsCreateInfo pNext(long value)
Sets the specified value to thepNext()field.
-
pAttachmentImageInfos
public VkFramebufferAttachmentsCreateInfo pAttachmentImageInfos(@Nullable VkFramebufferAttachmentImageInfo.Buffer value)
Sets the address of the specifiedVkFramebufferAttachmentImageInfo.Bufferto thepAttachmentImageInfos()field.
-
set
public VkFramebufferAttachmentsCreateInfo set(int sType, long pNext, @Nullable VkFramebufferAttachmentImageInfo.Buffer pAttachmentImageInfos)
Initializes this struct with the specified values.
-
set
public VkFramebufferAttachmentsCreateInfo set(VkFramebufferAttachmentsCreateInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkFramebufferAttachmentsCreateInfo malloc()
Returns a newVkFramebufferAttachmentsCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkFramebufferAttachmentsCreateInfo calloc()
Returns a newVkFramebufferAttachmentsCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkFramebufferAttachmentsCreateInfo create()
Returns a newVkFramebufferAttachmentsCreateInfoinstance allocated withBufferUtils.
-
create
public static VkFramebufferAttachmentsCreateInfo create(long address)
Returns a newVkFramebufferAttachmentsCreateInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkFramebufferAttachmentsCreateInfo createSafe(long address)
-
malloc
public static VkFramebufferAttachmentsCreateInfo.Buffer malloc(int capacity)
Returns a newVkFramebufferAttachmentsCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkFramebufferAttachmentsCreateInfo.Buffer calloc(int capacity)
Returns a newVkFramebufferAttachmentsCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkFramebufferAttachmentsCreateInfo.Buffer create(int capacity)
Returns a newVkFramebufferAttachmentsCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkFramebufferAttachmentsCreateInfo.Buffer create(long address, int capacity)
Create aVkFramebufferAttachmentsCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkFramebufferAttachmentsCreateInfo.Buffer createSafe(long address, int capacity)
-
malloc
public static VkFramebufferAttachmentsCreateInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkFramebufferAttachmentsCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkFramebufferAttachmentsCreateInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkFramebufferAttachmentsCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkFramebufferAttachmentsCreateInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkFramebufferAttachmentsCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkFramebufferAttachmentsCreateInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkFramebufferAttachmentsCreateInfo.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().
-
nattachmentImageInfoCount
public static int nattachmentImageInfoCount(long struct)
Unsafe version ofattachmentImageInfoCount().
-
npAttachmentImageInfos
@Nullable public static VkFramebufferAttachmentImageInfo.Buffer npAttachmentImageInfos(long struct)
Unsafe version ofpAttachmentImageInfos().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nattachmentImageInfoCount
public static void nattachmentImageInfoCount(long struct, int value)Sets the specified value to theattachmentImageInfoCountfield of the specifiedstruct.
-
npAttachmentImageInfos
public static void npAttachmentImageInfos(long struct, @Nullable VkFramebufferAttachmentImageInfo.Buffer value)Unsafe version ofpAttachmentImageInfos.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-