Package org.lwjgl.vulkan
Class VkFramebufferAttachmentImageInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkFramebufferAttachmentImageInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkFramebufferAttachmentImageInfoKHR
public class VkFramebufferAttachmentImageInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying parameters of an image that will be used with a framebuffer.Description
Images that can be used with the framebuffer when beginning a render pass, as specified by
VkRenderPassAttachmentBeginInfo, must be created with parameters that are identical to those specified here.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_FRAMEBUFFER_ATTACHMENT_IMAGE_INFOpNextmust beNULLflagsmust be a valid combination ofVkImageCreateFlagBitsvaluesusagemust be a valid combination ofVkImageUsageFlagBitsvaluesusagemust not be 0- If
viewFormatCountis not 0,pViewFormatsmust be a valid pointer to an array ofviewFormatCountvalidVkFormatvalues
See Also
VkFramebufferAttachmentsCreateInfoLayout
struct VkFramebufferAttachmentImageInfo { VkStructureTypesType(); void const *pNext(); VkImageCreateFlagsflags(); VkImageUsageFlagsusage(); uint32_twidth(); uint32_theight(); uint32_tlayerCount(); uint32_tviewFormatCount(); VkFormat const *pViewFormats(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkFramebufferAttachmentImageInfo.BufferAn array ofVkFramebufferAttachmentImageInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intFLAGS
HEIGHT
LAYERCOUNT
PNEXT
PVIEWFORMATSThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
USAGE
VIEWFORMATCOUNT
WIDTHThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkFramebufferAttachmentImageInfo(java.nio.ByteBuffer container)Creates aVkFramebufferAttachmentImageInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkFramebufferAttachmentImageInfocalloc()Returns a newVkFramebufferAttachmentImageInfoinstance allocated withmemCalloc.static VkFramebufferAttachmentImageInfo.Buffercalloc(int capacity)Returns a newVkFramebufferAttachmentImageInfo.Bufferinstance allocated withmemCalloc.static VkFramebufferAttachmentImageInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkFramebufferAttachmentImageInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkFramebufferAttachmentImageInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkFramebufferAttachmentImageInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkFramebufferAttachmentImageInfocreate()Returns a newVkFramebufferAttachmentImageInfoinstance allocated withBufferUtils.static VkFramebufferAttachmentImageInfo.Buffercreate(int capacity)Returns a newVkFramebufferAttachmentImageInfo.Bufferinstance allocated withBufferUtils.static VkFramebufferAttachmentImageInfocreate(long address)Returns a newVkFramebufferAttachmentImageInfoinstance for the specified memory address.static VkFramebufferAttachmentImageInfo.Buffercreate(long address, int capacity)Create aVkFramebufferAttachmentImageInfo.Bufferinstance at the specified memory.static VkFramebufferAttachmentImageInfocreateSafe(long address)static VkFramebufferAttachmentImageInfo.BuffercreateSafe(long address, int capacity)intflags()a bitmask ofVkImageCreateFlagBits, matching the value ofVkImageCreateInfo::flagsused to create an image that will be used with this framebuffer.VkFramebufferAttachmentImageInfoflags(int value)Sets the specified value to theflags()field.intheight()the height of the image view used for rendering.VkFramebufferAttachmentImageInfoheight(int value)Sets the specified value to theheight()field.intlayerCount()the number of array layers of the image view used for rendering.VkFramebufferAttachmentImageInfolayerCount(int value)Sets the specified value to thelayerCount()field.static VkFramebufferAttachmentImageInfomalloc()Returns a newVkFramebufferAttachmentImageInfoinstance allocated withmemAlloc.static VkFramebufferAttachmentImageInfo.Buffermalloc(int capacity)Returns a newVkFramebufferAttachmentImageInfo.Bufferinstance allocated withmemAlloc.static VkFramebufferAttachmentImageInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkFramebufferAttachmentImageInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkFramebufferAttachmentImageInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkFramebufferAttachmentImageInfoinstance allocated on the specifiedMemoryStack.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static intnheight(long struct)Unsafe version ofheight().static voidnheight(long struct, int value)Unsafe version ofheight.static intnlayerCount(long struct)Unsafe version oflayerCount().static voidnlayerCount(long struct, int value)Unsafe version oflayerCount.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static java.nio.IntBuffernpViewFormats(long struct)Unsafe version ofpViewFormats.static voidnpViewFormats(long struct, java.nio.IntBuffer value)Unsafe version ofpViewFormats.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static intnusage(long struct)Unsafe version ofusage().static voidnusage(long struct, int value)Unsafe version ofusage.static intnviewFormatCount(long struct)Unsafe version ofviewFormatCount().static voidnviewFormatCount(long struct, int value)Sets the specified value to theviewFormatCountfield of the specifiedstruct.static intnwidth(long struct)Unsafe version ofwidth().static voidnwidth(long struct, int value)Unsafe version ofwidth.longpNext()NULLor a pointer to a structure extending this structure.VkFramebufferAttachmentImageInfopNext(long value)Sets the specified value to thepNext()field.java.nio.IntBufferpViewFormats()a pointer to an array ofVkFormatvalues specifying all of the formats which can be used when creating views of the image, matching the value ofVkImageFormatListCreateInfo::pViewFormatsused to create an image used with this framebuffer.VkFramebufferAttachmentImageInfopViewFormats(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thepViewFormats()field.VkFramebufferAttachmentImageInfoset(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.VkFramebufferAttachmentImageInfoset(VkFramebufferAttachmentImageInfo src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkFramebufferAttachmentImageInfosType(int value)Sets the specified value to thesType()field.VkFramebufferAttachmentImageInfosType$Default()Sets theSTRUCTURE_TYPE_FRAMEBUFFER_ATTACHMENT_IMAGE_INFOvalue to thesType()field.intusage()a bitmask ofVkImageUsageFlagBits, matching the value ofVkImageCreateInfo::usageused to create an image used with this framebuffer.VkFramebufferAttachmentImageInfousage(int value)Sets the specified value to theusage()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.intviewFormatCount()the number of entries in thepViewFormatsarray, matching the value ofVkImageFormatListCreateInfo::viewFormatCountused to create an image used with this framebuffer.intwidth()the width of the image view used for rendering.VkFramebufferAttachmentImageInfowidth(int value)Sets the specified value to thewidth()field.
-
-
-
Constructor Detail
-
VkFramebufferAttachmentImageInfo
public VkFramebufferAttachmentImageInfo(java.nio.ByteBuffer container)
Creates aVkFramebufferAttachmentImageInfoinstance 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.
-
flags
public int flags()
a bitmask ofVkImageCreateFlagBits, matching the value ofVkImageCreateInfo::flagsused to create an image that will be used with this framebuffer.
-
usage
public int usage()
a bitmask ofVkImageUsageFlagBits, matching the value ofVkImageCreateInfo::usageused to create an image used with this framebuffer.
-
width
public int width()
the width of the image view used for rendering.
-
height
public int height()
the height of the image view used for rendering.
-
layerCount
public int layerCount()
the number of array layers of the image view used for rendering.
-
viewFormatCount
public int viewFormatCount()
the number of entries in thepViewFormatsarray, matching the value ofVkImageFormatListCreateInfo::viewFormatCountused to create an image used with this framebuffer.
-
pViewFormats
@Nullable public java.nio.IntBuffer pViewFormats()
a pointer to an array ofVkFormatvalues specifying all of the formats which can be used when creating views of the image, matching the value ofVkImageFormatListCreateInfo::pViewFormatsused to create an image used with this framebuffer.
-
sType
public VkFramebufferAttachmentImageInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkFramebufferAttachmentImageInfo sType$Default()
Sets theSTRUCTURE_TYPE_FRAMEBUFFER_ATTACHMENT_IMAGE_INFOvalue to thesType()field.
-
pNext
public VkFramebufferAttachmentImageInfo pNext(long value)
Sets the specified value to thepNext()field.
-
flags
public VkFramebufferAttachmentImageInfo flags(int value)
Sets the specified value to theflags()field.
-
usage
public VkFramebufferAttachmentImageInfo usage(int value)
Sets the specified value to theusage()field.
-
width
public VkFramebufferAttachmentImageInfo width(int value)
Sets the specified value to thewidth()field.
-
height
public VkFramebufferAttachmentImageInfo height(int value)
Sets the specified value to theheight()field.
-
layerCount
public VkFramebufferAttachmentImageInfo layerCount(int value)
Sets the specified value to thelayerCount()field.
-
pViewFormats
public VkFramebufferAttachmentImageInfo pViewFormats(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thepViewFormats()field.
-
set
public VkFramebufferAttachmentImageInfo set(int sType, long pNext, int flags, int usage, int width, int height, int layerCount, @Nullable java.nio.IntBuffer pViewFormats)
Initializes this struct with the specified values.
-
set
public VkFramebufferAttachmentImageInfo set(VkFramebufferAttachmentImageInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkFramebufferAttachmentImageInfo malloc()
Returns a newVkFramebufferAttachmentImageInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkFramebufferAttachmentImageInfo calloc()
Returns a newVkFramebufferAttachmentImageInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkFramebufferAttachmentImageInfo create()
Returns a newVkFramebufferAttachmentImageInfoinstance allocated withBufferUtils.
-
create
public static VkFramebufferAttachmentImageInfo create(long address)
Returns a newVkFramebufferAttachmentImageInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkFramebufferAttachmentImageInfo createSafe(long address)
-
malloc
public static VkFramebufferAttachmentImageInfo.Buffer malloc(int capacity)
Returns a newVkFramebufferAttachmentImageInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkFramebufferAttachmentImageInfo.Buffer calloc(int capacity)
Returns a newVkFramebufferAttachmentImageInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkFramebufferAttachmentImageInfo.Buffer create(int capacity)
Returns a newVkFramebufferAttachmentImageInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkFramebufferAttachmentImageInfo.Buffer create(long address, int capacity)
Create aVkFramebufferAttachmentImageInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkFramebufferAttachmentImageInfo.Buffer createSafe(long address, int capacity)
-
malloc
public static VkFramebufferAttachmentImageInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkFramebufferAttachmentImageInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkFramebufferAttachmentImageInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkFramebufferAttachmentImageInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkFramebufferAttachmentImageInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkFramebufferAttachmentImageInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkFramebufferAttachmentImageInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkFramebufferAttachmentImageInfo.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().
-
nflags
public static int nflags(long struct)
Unsafe version offlags().
-
nusage
public static int nusage(long struct)
Unsafe version ofusage().
-
nwidth
public static int nwidth(long struct)
Unsafe version ofwidth().
-
nheight
public static int nheight(long struct)
Unsafe version ofheight().
-
nlayerCount
public static int nlayerCount(long struct)
Unsafe version oflayerCount().
-
nviewFormatCount
public static int nviewFormatCount(long struct)
Unsafe version ofviewFormatCount().
-
npViewFormats
@Nullable public static java.nio.IntBuffer npViewFormats(long struct)
Unsafe version ofpViewFormats.
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nflags
public static void nflags(long struct, int value)Unsafe version offlags.
-
nusage
public static void nusage(long struct, int value)Unsafe version ofusage.
-
nwidth
public static void nwidth(long struct, int value)Unsafe version ofwidth.
-
nheight
public static void nheight(long struct, int value)Unsafe version ofheight.
-
nlayerCount
public static void nlayerCount(long struct, int value)Unsafe version oflayerCount.
-
nviewFormatCount
public static void nviewFormatCount(long struct, int value)Sets the specified value to theviewFormatCountfield of the specifiedstruct.
-
npViewFormats
public static void npViewFormats(long struct, @Nullable java.nio.IntBuffer value)Unsafe version ofpViewFormats.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-