public class VkFramebufferAttachmentImageInfoKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
Images that can be used with the framebuffer when beginning a render pass, as specified by VkRenderPassAttachmentBeginInfoKHR, must be created with parameters that are identical to those specified here.
sType must be STRUCTURE_TYPE_FRAMEBUFFER_ATTACHMENT_IMAGE_INFO_KHRpNext must be NULLflags must be a valid combination of VkImageCreateFlagBits valuesusage must be a valid combination of VkImageUsageFlagBits valuesusage must not be 0viewFormatCount is not 0, pViewFormats must be a valid pointer to an array of viewFormatCount valid VkFormat valuesVkFramebufferAttachmentsCreateInfoKHR
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.flags – a bitmask of VkImageCreateFlagBits, matching the value of VkImageCreateInfo::flags used to create an image that will be used with this framebuffer.usage – a bitmask of VkImageUsageFlagBits, matching the value of VkImageCreateInfo::usage used to create an image used with this framebuffer.width – the width of the image view used for rendering.height – the height of the image view used for rendering.viewFormatCount – the number of entries in the pViewFormats array, matching the value of VkImageFormatListCreateInfoKHR::viewFormatCount used to create an image used with this framebuffer.pViewFormats – an array which lists of all formats which can be used when creating views of the image, matching the value of VkImageFormatListCreateInfoKHR::pViewFormats used to create an image used with this framebuffer.
struct VkFramebufferAttachmentImageInfoKHR {
VkStructureType sType;
void const * pNext;
VkImageCreateFlags flags;
VkImageUsageFlags usage;
uint32_t width;
uint32_t height;
uint32_t layerCount;
uint32_t viewFormatCount;
VkFormat const * pViewFormats;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkFramebufferAttachmentImageInfoKHR.Buffer
An array of
VkFramebufferAttachmentImageInfoKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FLAGS
The struct member offsets.
|
static int |
HEIGHT
The struct member offsets.
|
static int |
LAYERCOUNT
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
PVIEWFORMATS
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
static int |
USAGE
The struct member offsets.
|
static int |
VIEWFORMATCOUNT
The struct member offsets.
|
static int |
WIDTH
The struct member offsets.
|
| Constructor and Description |
|---|
VkFramebufferAttachmentImageInfoKHR(java.nio.ByteBuffer container)
Creates a
VkFramebufferAttachmentImageInfoKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkFramebufferAttachmentImageInfoKHR |
calloc()
Returns a new
VkFramebufferAttachmentImageInfoKHR instance allocated with memCalloc. |
static VkFramebufferAttachmentImageInfoKHR.Buffer |
calloc(int capacity)
Returns a new
VkFramebufferAttachmentImageInfoKHR.Buffer instance allocated with memCalloc. |
static VkFramebufferAttachmentImageInfoKHR |
callocStack()
Returns a new
VkFramebufferAttachmentImageInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkFramebufferAttachmentImageInfoKHR.Buffer |
callocStack(int capacity)
Returns a new
VkFramebufferAttachmentImageInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkFramebufferAttachmentImageInfoKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkFramebufferAttachmentImageInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkFramebufferAttachmentImageInfoKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkFramebufferAttachmentImageInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkFramebufferAttachmentImageInfoKHR |
create()
Returns a new
VkFramebufferAttachmentImageInfoKHR instance allocated with BufferUtils. |
static VkFramebufferAttachmentImageInfoKHR.Buffer |
create(int capacity)
Returns a new
VkFramebufferAttachmentImageInfoKHR.Buffer instance allocated with BufferUtils. |
static VkFramebufferAttachmentImageInfoKHR |
create(long address)
Returns a new
VkFramebufferAttachmentImageInfoKHR instance for the specified memory address. |
static VkFramebufferAttachmentImageInfoKHR.Buffer |
create(long address,
int capacity)
Create a
VkFramebufferAttachmentImageInfoKHR.Buffer instance at the specified memory. |
static VkFramebufferAttachmentImageInfoKHR |
createSafe(long address)
|
static VkFramebufferAttachmentImageInfoKHR.Buffer |
createSafe(long address,
int capacity)
|
int |
flags()
Returns the value of the
flags field. |
VkFramebufferAttachmentImageInfoKHR |
flags(int value)
Sets the specified value to the
flags field. |
int |
height()
Returns the value of the
height field. |
VkFramebufferAttachmentImageInfoKHR |
height(int value)
Sets the specified value to the
height field. |
int |
layerCount()
Returns the value of the
layerCount field. |
VkFramebufferAttachmentImageInfoKHR |
layerCount(int value)
Sets the specified value to the
layerCount field. |
static VkFramebufferAttachmentImageInfoKHR |
malloc()
Returns a new
VkFramebufferAttachmentImageInfoKHR instance allocated with memAlloc. |
static VkFramebufferAttachmentImageInfoKHR.Buffer |
malloc(int capacity)
Returns a new
VkFramebufferAttachmentImageInfoKHR.Buffer instance allocated with memAlloc. |
static VkFramebufferAttachmentImageInfoKHR |
mallocStack()
Returns a new
VkFramebufferAttachmentImageInfoKHR instance allocated on the thread-local MemoryStack. |
static VkFramebufferAttachmentImageInfoKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkFramebufferAttachmentImageInfoKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkFramebufferAttachmentImageInfoKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkFramebufferAttachmentImageInfoKHR.Buffer instance allocated on the specified MemoryStack. |
static VkFramebufferAttachmentImageInfoKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkFramebufferAttachmentImageInfoKHR instance allocated on the specified MemoryStack. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static int |
nheight(long struct)
Unsafe version of
height(). |
static void |
nheight(long struct,
int value)
Unsafe version of
height. |
static int |
nlayerCount(long struct)
Unsafe version of
layerCount(). |
static void |
nlayerCount(long struct,
int value)
Unsafe version of
layerCount. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static java.nio.IntBuffer |
npViewFormats(long struct)
Unsafe version of
pViewFormats. |
static void |
npViewFormats(long struct,
java.nio.IntBuffer value)
Unsafe version of
pViewFormats. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
static int |
nusage(long struct)
Unsafe version of
usage(). |
static void |
nusage(long struct,
int value)
Unsafe version of
usage. |
static int |
nviewFormatCount(long struct)
Unsafe version of
viewFormatCount(). |
static void |
nviewFormatCount(long struct,
int value)
Sets the specified value to the
viewFormatCount field of the specified struct. |
static int |
nwidth(long struct)
Unsafe version of
width(). |
static void |
nwidth(long struct,
int value)
Unsafe version of
width. |
long |
pNext()
Returns the value of the
pNext field. |
VkFramebufferAttachmentImageInfoKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
java.nio.IntBuffer |
pViewFormats()
Returns a
IntBuffer view of the data pointed to by the pViewFormats field. |
VkFramebufferAttachmentImageInfoKHR |
pViewFormats(java.nio.IntBuffer value)
Sets the address of the specified
IntBuffer to the pViewFormats field. |
VkFramebufferAttachmentImageInfoKHR |
set(int sType,
long pNext,
int flags,
int usage,
int width,
int height,
int layerCount,
java.nio.IntBuffer pViewFormats)
Initializes this struct with the specified values.
|
VkFramebufferAttachmentImageInfoKHR |
set(VkFramebufferAttachmentImageInfoKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkFramebufferAttachmentImageInfoKHR |
sType(int value)
Sets the specified value to the
sType field. |
int |
usage()
Returns the value of the
usage field. |
VkFramebufferAttachmentImageInfoKHR |
usage(int value)
Sets the specified value to the
usage field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
int |
viewFormatCount()
Returns the value of the
viewFormatCount field. |
int |
width()
Returns the value of the
width field. |
VkFramebufferAttachmentImageInfoKHR |
width(int value)
Sets the specified value to the
width field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int FLAGS
public static final int USAGE
public static final int WIDTH
public static final int HEIGHT
public static final int LAYERCOUNT
public static final int VIEWFORMATCOUNT
public static final int PVIEWFORMATS
public VkFramebufferAttachmentImageInfoKHR(java.nio.ByteBuffer container)
VkFramebufferAttachmentImageInfoKHR instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public int flags()
flags field.public int usage()
usage field.public int width()
width field.public int height()
height field.public int layerCount()
layerCount field.public int viewFormatCount()
viewFormatCount field.@Nullable public java.nio.IntBuffer pViewFormats()
IntBuffer view of the data pointed to by the pViewFormats field.public VkFramebufferAttachmentImageInfoKHR sType(int value)
sType field.public VkFramebufferAttachmentImageInfoKHR pNext(long value)
pNext field.public VkFramebufferAttachmentImageInfoKHR flags(int value)
flags field.public VkFramebufferAttachmentImageInfoKHR usage(int value)
usage field.public VkFramebufferAttachmentImageInfoKHR width(int value)
width field.public VkFramebufferAttachmentImageInfoKHR height(int value)
height field.public VkFramebufferAttachmentImageInfoKHR layerCount(int value)
layerCount field.public VkFramebufferAttachmentImageInfoKHR pViewFormats(@Nullable java.nio.IntBuffer value)
IntBuffer to the pViewFormats field.public VkFramebufferAttachmentImageInfoKHR set(int sType, long pNext, int flags, int usage, int width, int height, int layerCount, @Nullable java.nio.IntBuffer pViewFormats)
public VkFramebufferAttachmentImageInfoKHR set(VkFramebufferAttachmentImageInfoKHR src)
src - the source structpublic static VkFramebufferAttachmentImageInfoKHR malloc()
VkFramebufferAttachmentImageInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkFramebufferAttachmentImageInfoKHR calloc()
VkFramebufferAttachmentImageInfoKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkFramebufferAttachmentImageInfoKHR create()
VkFramebufferAttachmentImageInfoKHR instance allocated with BufferUtils.public static VkFramebufferAttachmentImageInfoKHR create(long address)
VkFramebufferAttachmentImageInfoKHR instance for the specified memory address.@Nullable public static VkFramebufferAttachmentImageInfoKHR createSafe(long address)
public static VkFramebufferAttachmentImageInfoKHR.Buffer malloc(int capacity)
VkFramebufferAttachmentImageInfoKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkFramebufferAttachmentImageInfoKHR.Buffer calloc(int capacity)
VkFramebufferAttachmentImageInfoKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkFramebufferAttachmentImageInfoKHR.Buffer create(int capacity)
VkFramebufferAttachmentImageInfoKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkFramebufferAttachmentImageInfoKHR.Buffer create(long address, int capacity)
VkFramebufferAttachmentImageInfoKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkFramebufferAttachmentImageInfoKHR.Buffer createSafe(long address, int capacity)
public static VkFramebufferAttachmentImageInfoKHR mallocStack()
VkFramebufferAttachmentImageInfoKHR instance allocated on the thread-local MemoryStack.public static VkFramebufferAttachmentImageInfoKHR callocStack()
VkFramebufferAttachmentImageInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkFramebufferAttachmentImageInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkFramebufferAttachmentImageInfoKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkFramebufferAttachmentImageInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkFramebufferAttachmentImageInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkFramebufferAttachmentImageInfoKHR.Buffer mallocStack(int capacity)
VkFramebufferAttachmentImageInfoKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkFramebufferAttachmentImageInfoKHR.Buffer callocStack(int capacity)
VkFramebufferAttachmentImageInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkFramebufferAttachmentImageInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkFramebufferAttachmentImageInfoKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkFramebufferAttachmentImageInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkFramebufferAttachmentImageInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int nflags(long struct)
flags().public static int nusage(long struct)
usage().public static int nwidth(long struct)
width().public static int nheight(long struct)
height().public static int nlayerCount(long struct)
layerCount().public static int nviewFormatCount(long struct)
viewFormatCount().@Nullable public static java.nio.IntBuffer npViewFormats(long struct)
pViewFormats.public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nflags(long struct,
int value)
flags.public static void nusage(long struct,
int value)
usage.public static void nwidth(long struct,
int value)
width.public static void nheight(long struct,
int value)
height.public static void nlayerCount(long struct,
int value)
layerCount.public static void nviewFormatCount(long struct,
int value)
viewFormatCount field of the specified struct.public static void npViewFormats(long struct,
@Nullable
java.nio.IntBuffer value)
pViewFormats.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.