Package org.lwjgl.vulkan
Class VkFramebufferCreateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkFramebufferCreateInfo
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class VkFramebufferCreateInfo extends Struct
Khronos Reference Page
Vulkan SpecificationContains information about how a framebuffer should be created.
Valid Usage
sTypemust beSTRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFOpNextmust beNULLflagsmust be 0renderPassmust be a validVkRenderPasshandle- If
attachmentCountis not 0,pAttachmentsmust be a pointer to an array ofattachmentCountvalidVkImageViewhandles - Each of
renderPassand the elements ofpAttachmentsthat are valid handles must have been created, allocated or retrieved from the sameVkDevice attachmentCountmust be equal to the attachment count specified inrenderPass- Any given element of
pAttachmentsthat is used as a color attachment or resolve attachment byrenderPassmust have been created with ausagevalue includingIMAGE_USAGE_COLOR_ATTACHMENT_BIT - Any given element of
pAttachmentsthat is used as a depth/stencil attachment byrenderPassmust have been created with ausagevalue includingIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT - Any given element of
pAttachmentsthat is used as an input attachment byrenderPassmust have been created with ausagevalue includingIMAGE_USAGE_INPUT_ATTACHMENT_BIT - Any given element of
pAttachmentsmust have been created with anVkFormatvalue that matches theVkFormatspecified by the correspondingVkAttachmentDescriptioninrenderPass - Any given element of
pAttachmentsmust have been created with asamplesvalue that matches thesamplesvalue specified by the correspondingVkAttachmentDescriptioninrenderPass - Any given element of
pAttachmentsmust have dimensions at least as large as the corresponding framebuffer dimension - Any given element of
pAttachmentsmust only specify a single mip-level - Any given element of
pAttachmentsmust have been created with the identity swizzle widthmust be less than or equal toVkPhysicalDeviceLimits::maxFramebufferWidthheightmust be less than or equal toVkPhysicalDeviceLimits::maxFramebufferHeightlayersmust be less than or equal toVkPhysicalDeviceLimits::maxFramebufferLayers
Member documentation
sType– the type of this structure. Must be:STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFOpNext– reserved for use by extensionsflags– reserved for future userenderPass– a render pass that defines what render passes the framebuffer will be compatible withattachmentCount– the number of attachmentspAttachments– an array ofVkImageViewhandles, each of which will be used as the corresponding attachment in a render pass instancewidth– the framebuffer widthheight– the framebuffer heightlayers– the number of layers in the framebuffer
Layout
struct VkFramebufferCreateInfo { VkStructureType sType; const void * pNext; VkFramebufferCreateFlags flags; VkRenderPass renderPass; uint32_t attachmentCount; const VkImageView * pAttachments; uint32_t width; uint32_t height; uint32_t layers; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classVkFramebufferCreateInfo.BufferAn array ofVkFramebufferCreateInfostructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and Description VkFramebufferCreateInfo(java.nio.ByteBuffer container)Creates aVkFramebufferCreateInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description intattachmentCount()Returns the value of theattachmentCountfield.static VkFramebufferCreateInfocalloc()Returns a newVkFramebufferCreateInfoinstance allocated withmemCalloc.static VkFramebufferCreateInfo.Buffercalloc(int capacity)Returns a newVkFramebufferCreateInfo.Bufferinstance allocated withmemCalloc.static VkFramebufferCreateInfocallocStack()Returns a newVkFramebufferCreateInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkFramebufferCreateInfo.BuffercallocStack(int capacity)Returns a newVkFramebufferCreateInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkFramebufferCreateInfo.BuffercallocStack(int capacity, MemoryStack stack)Returns a newVkFramebufferCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkFramebufferCreateInfocallocStack(MemoryStack stack)Returns a newVkFramebufferCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkFramebufferCreateInfocreate()Returns a newVkFramebufferCreateInfoinstance allocated withBufferUtils.static VkFramebufferCreateInfo.Buffercreate(int capacity)Returns a newVkFramebufferCreateInfo.Bufferinstance allocated withBufferUtils.static VkFramebufferCreateInfocreate(long address)Returns a newVkFramebufferCreateInfoinstance for the specified memory address ornullif the address isNULL.static VkFramebufferCreateInfo.Buffercreate(long address, int capacity)Create aVkFramebufferCreateInfo.Bufferinstance at the specified memory.intflags()Returns the value of theflagsfield.VkFramebufferCreateInfoflags(int value)Sets the specified value to theflagsfield.intheight()Returns the value of theheightfield.VkFramebufferCreateInfoheight(int value)Sets the specified value to theheightfield.intlayers()Returns the value of thelayersfield.VkFramebufferCreateInfolayers(int value)Sets the specified value to thelayersfield.static VkFramebufferCreateInfomalloc()Returns a newVkFramebufferCreateInfoinstance allocated withmemAlloc.static VkFramebufferCreateInfo.Buffermalloc(int capacity)Returns a newVkFramebufferCreateInfo.Bufferinstance allocated withmemAlloc.static VkFramebufferCreateInfomallocStack()Returns a newVkFramebufferCreateInfoinstance allocated on the thread-localMemoryStack.static VkFramebufferCreateInfo.BuffermallocStack(int capacity)Returns a newVkFramebufferCreateInfo.Bufferinstance allocated on the thread-localMemoryStack.static VkFramebufferCreateInfo.BuffermallocStack(int capacity, MemoryStack stack)Returns a newVkFramebufferCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkFramebufferCreateInfomallocStack(MemoryStack stack)Returns a newVkFramebufferCreateInfoinstance allocated on the specifiedMemoryStack.VkFramebufferCreateInfonset(long struct)Unsafe version ofset.java.nio.LongBufferpAttachments()Returns aLongBufferview of the data pointed to by thepAttachmentsfield.VkFramebufferCreateInfopAttachments(java.nio.LongBuffer value)Sets the address of the specifiedLongBufferto thepAttachmentsfield.longpNext()Returns the value of thepNextfield.VkFramebufferCreateInfopNext(long value)Sets the specified value to thepNextfield.longrenderPass()Returns the value of therenderPassfield.VkFramebufferCreateInforenderPass(long value)Sets the specified value to therenderPassfield.VkFramebufferCreateInfoset(int sType, long pNext, int flags, long renderPass, java.nio.LongBuffer pAttachments, int width, int height, int layers)Initializes this struct with the specified values.VkFramebufferCreateInfoset(VkFramebufferCreateInfo src)Copies the specified struct data to this struct.intsizeof()Returns thesizeof(struct).intsType()Returns the value of thesTypefield.VkFramebufferCreateInfosType(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)CallsVkFramebufferCreateInfo.validate(long)for each struct contained in the specified struct array.intwidth()Returns the value of thewidthfield.VkFramebufferCreateInfowidth(int value)Sets the specified value to thewidthfield.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
VkFramebufferCreateInfo
public VkFramebufferCreateInfo(java.nio.ByteBuffer container)
Creates aVkFramebufferCreateInfoinstance 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()
Description copied from class:StructReturns thesizeof(struct).
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
flags
public int flags()
Returns the value of theflagsfield.
-
renderPass
public long renderPass()
Returns the value of therenderPassfield.
-
attachmentCount
public int attachmentCount()
Returns the value of theattachmentCountfield.
-
pAttachments
public java.nio.LongBuffer pAttachments()
Returns aLongBufferview of the data pointed to by thepAttachmentsfield.
-
width
public int width()
Returns the value of thewidthfield.
-
height
public int height()
Returns the value of theheightfield.
-
layers
public int layers()
Returns the value of thelayersfield.
-
sType
public VkFramebufferCreateInfo sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkFramebufferCreateInfo pNext(long value)
Sets the specified value to thepNextfield.
-
flags
public VkFramebufferCreateInfo flags(int value)
Sets the specified value to theflagsfield.
-
renderPass
public VkFramebufferCreateInfo renderPass(long value)
Sets the specified value to therenderPassfield.
-
pAttachments
public VkFramebufferCreateInfo pAttachments(java.nio.LongBuffer value)
Sets the address of the specifiedLongBufferto thepAttachmentsfield.
-
width
public VkFramebufferCreateInfo width(int value)
Sets the specified value to thewidthfield.
-
height
public VkFramebufferCreateInfo height(int value)
Sets the specified value to theheightfield.
-
layers
public VkFramebufferCreateInfo layers(int value)
Sets the specified value to thelayersfield.
-
set
public VkFramebufferCreateInfo set(int sType, long pNext, int flags, long renderPass, java.nio.LongBuffer pAttachments, int width, int height, int layers)
Initializes this struct with the specified values.
-
nset
public VkFramebufferCreateInfo nset(long struct)
Unsafe version ofset.
-
set
public VkFramebufferCreateInfo set(VkFramebufferCreateInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkFramebufferCreateInfo malloc()
Returns a newVkFramebufferCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkFramebufferCreateInfo calloc()
Returns a newVkFramebufferCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkFramebufferCreateInfo create()
Returns a newVkFramebufferCreateInfoinstance allocated withBufferUtils.
-
create
public static VkFramebufferCreateInfo create(long address)
Returns a newVkFramebufferCreateInfoinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static VkFramebufferCreateInfo.Buffer malloc(int capacity)
Returns a newVkFramebufferCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkFramebufferCreateInfo.Buffer calloc(int capacity)
Returns a newVkFramebufferCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkFramebufferCreateInfo.Buffer create(int capacity)
Returns a newVkFramebufferCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkFramebufferCreateInfo.Buffer create(long address, int capacity)
Create aVkFramebufferCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static VkFramebufferCreateInfo mallocStack()
Returns a newVkFramebufferCreateInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkFramebufferCreateInfo callocStack()
Returns a newVkFramebufferCreateInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkFramebufferCreateInfo mallocStack(MemoryStack stack)
Returns a newVkFramebufferCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkFramebufferCreateInfo callocStack(MemoryStack stack)
Returns a newVkFramebufferCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkFramebufferCreateInfo.Buffer mallocStack(int capacity)
Returns a newVkFramebufferCreateInfo.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkFramebufferCreateInfo.Buffer callocStack(int capacity)
Returns a newVkFramebufferCreateInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkFramebufferCreateInfo.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkFramebufferCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkFramebufferCreateInfo.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newVkFramebufferCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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)CallsVkFramebufferCreateInfo.validate(long)for each struct contained in the specified struct array.- Parameters:
array- the struct array to validatecount- the number of structs inarray
-
-