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.NativeResource
Structure specifying parameters of images that will be used with a framebuffer.Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_FRAMEBUFFER_ATTACHMENTS_CREATE_INFO_KHR
- If
attachmentImageInfoCount
is not 0,pAttachmentImageInfos
must be a valid pointer to an array ofattachmentImageInfoCount
validVkFramebufferAttachmentImageInfoKHR
structures
See Also
VkFramebufferAttachmentImageInfoKHR
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.attachmentImageInfoCount
– the number of attachments being described.pAttachmentImageInfos
– an array ofVkFramebufferAttachmentImageInfoKHR
instances, 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;
VkFramebufferAttachmentImageInfoKHR
const * pAttachmentImageInfos; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkFramebufferAttachmentsCreateInfoKHR.Buffer
An array ofVkFramebufferAttachmentsCreateInfoKHR
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
ATTACHMENTIMAGEINFOCOUNT
PATTACHMENTIMAGEINFOS
PNEXTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkFramebufferAttachmentsCreateInfoKHR(java.nio.ByteBuffer container)
Creates aVkFramebufferAttachmentsCreateInfoKHR
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
attachmentImageInfoCount()
Returns the value of theattachmentImageInfoCount
field.static VkFramebufferAttachmentsCreateInfoKHR
calloc()
Returns a newVkFramebufferAttachmentsCreateInfoKHR
instance allocated withmemCalloc
.static VkFramebufferAttachmentsCreateInfoKHR.Buffer
calloc(int capacity)
Returns a newVkFramebufferAttachmentsCreateInfoKHR.Buffer
instance allocated withmemCalloc
.static VkFramebufferAttachmentsCreateInfoKHR
callocStack()
Returns a newVkFramebufferAttachmentsCreateInfoKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkFramebufferAttachmentsCreateInfoKHR.Buffer
callocStack(int capacity)
Returns a newVkFramebufferAttachmentsCreateInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkFramebufferAttachmentsCreateInfoKHR.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkFramebufferAttachmentsCreateInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkFramebufferAttachmentsCreateInfoKHR
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkFramebufferAttachmentsCreateInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkFramebufferAttachmentsCreateInfoKHR
create()
Returns a newVkFramebufferAttachmentsCreateInfoKHR
instance allocated withBufferUtils
.static VkFramebufferAttachmentsCreateInfoKHR.Buffer
create(int capacity)
Returns a newVkFramebufferAttachmentsCreateInfoKHR.Buffer
instance allocated withBufferUtils
.static VkFramebufferAttachmentsCreateInfoKHR
create(long address)
Returns a newVkFramebufferAttachmentsCreateInfoKHR
instance for the specified memory address.static VkFramebufferAttachmentsCreateInfoKHR.Buffer
create(long address, int capacity)
Create aVkFramebufferAttachmentsCreateInfoKHR.Buffer
instance at the specified memory.static VkFramebufferAttachmentsCreateInfoKHR
createSafe(long address)
static VkFramebufferAttachmentsCreateInfoKHR.Buffer
createSafe(long address, int capacity)
static VkFramebufferAttachmentsCreateInfoKHR
malloc()
Returns a newVkFramebufferAttachmentsCreateInfoKHR
instance allocated withmemAlloc
.static VkFramebufferAttachmentsCreateInfoKHR.Buffer
malloc(int capacity)
Returns a newVkFramebufferAttachmentsCreateInfoKHR.Buffer
instance allocated withmemAlloc
.static VkFramebufferAttachmentsCreateInfoKHR
mallocStack()
Returns a newVkFramebufferAttachmentsCreateInfoKHR
instance allocated on the thread-localMemoryStack
.static VkFramebufferAttachmentsCreateInfoKHR.Buffer
mallocStack(int capacity)
Returns a newVkFramebufferAttachmentsCreateInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
.static VkFramebufferAttachmentsCreateInfoKHR.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkFramebufferAttachmentsCreateInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkFramebufferAttachmentsCreateInfoKHR
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkFramebufferAttachmentsCreateInfoKHR
instance allocated on the specifiedMemoryStack
.static int
nattachmentImageInfoCount(long struct)
Unsafe version ofattachmentImageInfoCount()
.static void
nattachmentImageInfoCount(long struct, int value)
Sets the specified value to theattachmentImageInfoCount
field of the specifiedstruct
.static VkFramebufferAttachmentImageInfoKHR.Buffer
npAttachmentImageInfos(long struct)
Unsafe version ofpAttachmentImageInfos()
.static void
npAttachmentImageInfos(long struct, VkFramebufferAttachmentImageInfoKHR.Buffer value)
Unsafe version ofpAttachmentImageInfos
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.VkFramebufferAttachmentImageInfoKHR.Buffer
pAttachmentImageInfos()
Returns aVkFramebufferAttachmentImageInfoKHR.Buffer
view of the struct array pointed to by thepAttachmentImageInfos
field.VkFramebufferAttachmentsCreateInfoKHR
pAttachmentImageInfos(VkFramebufferAttachmentImageInfoKHR.Buffer value)
Sets the address of the specifiedVkFramebufferAttachmentImageInfoKHR.Buffer
to thepAttachmentImageInfos
field.long
pNext()
Returns the value of thepNext
field.VkFramebufferAttachmentsCreateInfoKHR
pNext(long value)
Sets the specified value to thepNext
field.VkFramebufferAttachmentsCreateInfoKHR
set(int sType, long pNext, VkFramebufferAttachmentImageInfoKHR.Buffer pAttachmentImageInfos)
Initializes this struct with the specified values.VkFramebufferAttachmentsCreateInfoKHR
set(VkFramebufferAttachmentsCreateInfoKHR src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkFramebufferAttachmentsCreateInfoKHR
sType(int value)
Sets the specified value to thesType
field.static void
validate(long struct)
Validates pointer members that should not beNULL
.static void
validate(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 aVkFramebufferAttachmentsCreateInfoKHR
instance at the current position of the specifiedByteBuffer
container. 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:
sizeof
in classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
attachmentImageInfoCount
public int attachmentImageInfoCount()
Returns the value of theattachmentImageInfoCount
field.
-
pAttachmentImageInfos
@Nullable public VkFramebufferAttachmentImageInfoKHR.Buffer pAttachmentImageInfos()
Returns aVkFramebufferAttachmentImageInfoKHR.Buffer
view of the struct array pointed to by thepAttachmentImageInfos
field.
-
sType
public VkFramebufferAttachmentsCreateInfoKHR sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkFramebufferAttachmentsCreateInfoKHR pNext(long value)
Sets the specified value to thepNext
field.
-
pAttachmentImageInfos
public VkFramebufferAttachmentsCreateInfoKHR pAttachmentImageInfos(@Nullable VkFramebufferAttachmentImageInfoKHR.Buffer value)
Sets the address of the specifiedVkFramebufferAttachmentImageInfoKHR.Buffer
to thepAttachmentImageInfos
field.
-
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 newVkFramebufferAttachmentsCreateInfoKHR
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkFramebufferAttachmentsCreateInfoKHR calloc()
Returns a newVkFramebufferAttachmentsCreateInfoKHR
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkFramebufferAttachmentsCreateInfoKHR create()
Returns a newVkFramebufferAttachmentsCreateInfoKHR
instance allocated withBufferUtils
.
-
create
public static VkFramebufferAttachmentsCreateInfoKHR create(long address)
Returns a newVkFramebufferAttachmentsCreateInfoKHR
instance for the specified memory address.
-
createSafe
@Nullable public static VkFramebufferAttachmentsCreateInfoKHR createSafe(long address)
-
malloc
public static VkFramebufferAttachmentsCreateInfoKHR.Buffer malloc(int capacity)
Returns a newVkFramebufferAttachmentsCreateInfoKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkFramebufferAttachmentsCreateInfoKHR.Buffer calloc(int capacity)
Returns a newVkFramebufferAttachmentsCreateInfoKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkFramebufferAttachmentsCreateInfoKHR.Buffer create(int capacity)
Returns a newVkFramebufferAttachmentsCreateInfoKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkFramebufferAttachmentsCreateInfoKHR.Buffer create(long address, int capacity)
Create aVkFramebufferAttachmentsCreateInfoKHR.Buffer
instance 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 newVkFramebufferAttachmentsCreateInfoKHR
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkFramebufferAttachmentsCreateInfoKHR callocStack()
Returns a newVkFramebufferAttachmentsCreateInfoKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkFramebufferAttachmentsCreateInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkFramebufferAttachmentsCreateInfoKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkFramebufferAttachmentsCreateInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkFramebufferAttachmentsCreateInfoKHR
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkFramebufferAttachmentsCreateInfoKHR.Buffer callocStack(int capacity)
Returns a newVkFramebufferAttachmentsCreateInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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 theattachmentImageInfoCount
field 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
-
-