Package org.lwjgl.vulkan
Class VkFramebufferAttachmentsCreateInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkFramebufferAttachmentsCreateInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkFramebufferAttachmentsCreateInfoKHR 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_KHR- If
attachmentImageInfoCountis not 0,pAttachmentImageInfosmust be a valid pointer to an array ofattachmentImageInfoCountvalidVkFramebufferAttachmentImageInfoKHRstructures
See Also
VkFramebufferAttachmentImageInfoKHRMember documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.attachmentImageInfoCount– the number of attachments being described.pAttachmentImageInfos– an array ofVkFramebufferAttachmentImageInfoKHRinstances, each of which describes a number of parameters of the corresponding attachment in a render pass instance.
Layout
struct VkFramebufferAttachmentsCreateInfoKHR { VkStructureType sType; void const * pNext; uint32_t attachmentImageInfoCount;VkFramebufferAttachmentImageInfoKHRconst * pAttachmentImageInfos; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkFramebufferAttachmentsCreateInfoKHR.BufferAn array ofVkFramebufferAttachmentsCreateInfoKHRstructs.
-
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 VkFramebufferAttachmentsCreateInfoKHR(java.nio.ByteBuffer container)Creates aVkFramebufferAttachmentsCreateInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intattachmentImageInfoCount()Returns the value of theattachmentImageInfoCountfield.static VkFramebufferAttachmentsCreateInfoKHRcalloc()Returns a newVkFramebufferAttachmentsCreateInfoKHRinstance allocated withmemCalloc.static VkFramebufferAttachmentsCreateInfoKHR.Buffercalloc(int capacity)Returns a newVkFramebufferAttachmentsCreateInfoKHR.Bufferinstance allocated withmemCalloc.static VkFramebufferAttachmentsCreateInfoKHRcallocStack()Returns a newVkFramebufferAttachmentsCreateInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkFramebufferAttachmentsCreateInfoKHR.BuffercallocStack(int capacity)Returns a newVkFramebufferAttachmentsCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkFramebufferAttachmentsCreateInfoKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkFramebufferAttachmentsCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkFramebufferAttachmentsCreateInfoKHRcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkFramebufferAttachmentsCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkFramebufferAttachmentsCreateInfoKHRcreate()Returns a newVkFramebufferAttachmentsCreateInfoKHRinstance allocated withBufferUtils.static VkFramebufferAttachmentsCreateInfoKHR.Buffercreate(int capacity)Returns a newVkFramebufferAttachmentsCreateInfoKHR.Bufferinstance allocated withBufferUtils.static VkFramebufferAttachmentsCreateInfoKHRcreate(long address)Returns a newVkFramebufferAttachmentsCreateInfoKHRinstance for the specified memory address.static VkFramebufferAttachmentsCreateInfoKHR.Buffercreate(long address, int capacity)Create aVkFramebufferAttachmentsCreateInfoKHR.Bufferinstance at the specified memory.static VkFramebufferAttachmentsCreateInfoKHRcreateSafe(long address)static VkFramebufferAttachmentsCreateInfoKHR.BuffercreateSafe(long address, int capacity)static VkFramebufferAttachmentsCreateInfoKHRmalloc()Returns a newVkFramebufferAttachmentsCreateInfoKHRinstance allocated withmemAlloc.static VkFramebufferAttachmentsCreateInfoKHR.Buffermalloc(int capacity)Returns a newVkFramebufferAttachmentsCreateInfoKHR.Bufferinstance allocated withmemAlloc.static VkFramebufferAttachmentsCreateInfoKHRmallocStack()Returns a newVkFramebufferAttachmentsCreateInfoKHRinstance allocated on the thread-localMemoryStack.static VkFramebufferAttachmentsCreateInfoKHR.BuffermallocStack(int capacity)Returns a newVkFramebufferAttachmentsCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStack.static VkFramebufferAttachmentsCreateInfoKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkFramebufferAttachmentsCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkFramebufferAttachmentsCreateInfoKHRmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkFramebufferAttachmentsCreateInfoKHRinstance 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 VkFramebufferAttachmentImageInfoKHR.BuffernpAttachmentImageInfos(long struct)Unsafe version ofpAttachmentImageInfos().static voidnpAttachmentImageInfos(long struct, VkFramebufferAttachmentImageInfoKHR.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.VkFramebufferAttachmentImageInfoKHR.BufferpAttachmentImageInfos()Returns aVkFramebufferAttachmentImageInfoKHR.Bufferview of the struct array pointed to by thepAttachmentImageInfosfield.VkFramebufferAttachmentsCreateInfoKHRpAttachmentImageInfos(VkFramebufferAttachmentImageInfoKHR.Buffer value)Sets the address of the specifiedVkFramebufferAttachmentImageInfoKHR.Bufferto thepAttachmentImageInfosfield.longpNext()Returns the value of thepNextfield.VkFramebufferAttachmentsCreateInfoKHRpNext(long value)Sets the specified value to thepNextfield.VkFramebufferAttachmentsCreateInfoKHRset(int sType, long pNext, VkFramebufferAttachmentImageInfoKHR.Buffer pAttachmentImageInfos)Initializes this struct with the specified values.VkFramebufferAttachmentsCreateInfoKHRset(VkFramebufferAttachmentsCreateInfoKHR src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkFramebufferAttachmentsCreateInfoKHRsType(int value)Sets the specified value to thesTypefield.static voidvalidate(long struct)Validates pointer members that should not beNULL.static voidvalidate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.
-
-
-
Constructor Detail
-
VkFramebufferAttachmentsCreateInfoKHR
public VkFramebufferAttachmentsCreateInfoKHR(java.nio.ByteBuffer container)
Creates aVkFramebufferAttachmentsCreateInfoKHRinstance 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.
-
attachmentImageInfoCount
public int attachmentImageInfoCount()
Returns the value of theattachmentImageInfoCountfield.
-
pAttachmentImageInfos
@Nullable public VkFramebufferAttachmentImageInfoKHR.Buffer pAttachmentImageInfos()
Returns aVkFramebufferAttachmentImageInfoKHR.Bufferview of the struct array pointed to by thepAttachmentImageInfosfield.
-
sType
public VkFramebufferAttachmentsCreateInfoKHR sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkFramebufferAttachmentsCreateInfoKHR pNext(long value)
Sets the specified value to thepNextfield.
-
pAttachmentImageInfos
public VkFramebufferAttachmentsCreateInfoKHR pAttachmentImageInfos(@Nullable VkFramebufferAttachmentImageInfoKHR.Buffer value)
Sets the address of the specifiedVkFramebufferAttachmentImageInfoKHR.Bufferto thepAttachmentImageInfosfield.
-
set
public VkFramebufferAttachmentsCreateInfoKHR set(int sType, long pNext, @Nullable VkFramebufferAttachmentImageInfoKHR.Buffer pAttachmentImageInfos)
Initializes this struct with the specified values.
-
set
public VkFramebufferAttachmentsCreateInfoKHR set(VkFramebufferAttachmentsCreateInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkFramebufferAttachmentsCreateInfoKHR malloc()
Returns a newVkFramebufferAttachmentsCreateInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkFramebufferAttachmentsCreateInfoKHR calloc()
Returns a newVkFramebufferAttachmentsCreateInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkFramebufferAttachmentsCreateInfoKHR create()
Returns a newVkFramebufferAttachmentsCreateInfoKHRinstance allocated withBufferUtils.
-
create
public static VkFramebufferAttachmentsCreateInfoKHR create(long address)
Returns a newVkFramebufferAttachmentsCreateInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkFramebufferAttachmentsCreateInfoKHR createSafe(long address)
-
malloc
public static VkFramebufferAttachmentsCreateInfoKHR.Buffer malloc(int capacity)
Returns a newVkFramebufferAttachmentsCreateInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkFramebufferAttachmentsCreateInfoKHR.Buffer calloc(int capacity)
Returns a newVkFramebufferAttachmentsCreateInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkFramebufferAttachmentsCreateInfoKHR.Buffer create(int capacity)
Returns a newVkFramebufferAttachmentsCreateInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkFramebufferAttachmentsCreateInfoKHR.Buffer create(long address, int capacity)
Create aVkFramebufferAttachmentsCreateInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkFramebufferAttachmentsCreateInfoKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkFramebufferAttachmentsCreateInfoKHR mallocStack()
Returns a newVkFramebufferAttachmentsCreateInfoKHRinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkFramebufferAttachmentsCreateInfoKHR callocStack()
Returns a newVkFramebufferAttachmentsCreateInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkFramebufferAttachmentsCreateInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkFramebufferAttachmentsCreateInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkFramebufferAttachmentsCreateInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkFramebufferAttachmentsCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkFramebufferAttachmentsCreateInfoKHR.Buffer mallocStack(int capacity)
Returns a newVkFramebufferAttachmentsCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkFramebufferAttachmentsCreateInfoKHR.Buffer callocStack(int capacity)
Returns a newVkFramebufferAttachmentsCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkFramebufferAttachmentsCreateInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkFramebufferAttachmentsCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkFramebufferAttachmentsCreateInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkFramebufferAttachmentsCreateInfoKHR.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 VkFramebufferAttachmentImageInfoKHR.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 VkFramebufferAttachmentImageInfoKHR.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
-
validate
public static void validate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.- Parameters:
array- the struct array to validatecount- the number of structs inarray
-
-