Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkFramebufferCreateInfo

extends Struct<VkFramebufferCreateInfo>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Structure specifying parameters of a newly created framebuffer.
Description

It is legal for a subpass to use no color or depth/stencil attachments, either because it has no attachment references or because all of them are ATTACHMENT_UNUSED. This kind of subpass can use shader side effects such as image stores and atomics to produce an output. In this case, the subpass continues to use the width, height, and layers of the framebuffer to define the dimensions of the rendering area, and the rasterizationSamples from each pipeline’s VkPipelineMultisampleStateCreateInfo to define the number of samples used in rasterization; however, if VkPhysicalDeviceFeatures::variableMultisampleRate is FALSE, then all pipelines to be bound with the subpass must have the same value for VkPipelineMultisampleStateCreateInfo::rasterizationSamples. In all such cases, rasterizationSamples must be a bit value that is set in VkPhysicalDeviceLimits::framebufferNoAttachmentsSampleCounts.

Valid Usage
Valid Usage (Implicit)
See Also

CreateFramebuffer

Layout


struct VkFramebufferCreateInfo {
    VkStructureType sType;
    void const * pNext;
    VkFramebufferCreateFlags flags;
    VkRenderPass renderPass;
    uint32_t attachmentCount;
    VkImageView const * pAttachments;
    uint32_t width;
    uint32_t height;
    uint32_t layers;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
ATTACHMENTCOUNT

The struct member offsets.

public static final int
FLAGS

The struct member offsets.

public static final int
HEIGHT

The struct member offsets.

public static final int
LAYERS

The struct member offsets.

public static final int
PATTACHMENTS

The struct member offsets.

public static final int
PNEXT

The struct member offsets.

public static final int
RENDERPASS

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
STYPE

The struct member offsets.

public static final int
WIDTH

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
VkFramebufferCreateInfo(long address, ByteBuffer container)

public
VkFramebufferCreateInfo(ByteBuffer container)

Creates a VkFramebufferCreateInfo instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public int
attachmentCount()

the number of attachments.

public VkFramebufferCreateInfo
attachmentCount(int value)

Sets the specified value to the attachmentCount field.

public static VkFramebufferCreateInfo
calloc()

Returns a new VkFramebufferCreateInfo instance allocated with memCalloc.

public static VkFramebufferCreateInfo.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new VkFramebufferCreateInfo.Buffer instance allocated with memCalloc.

public static VkFramebufferCreateInfo
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkFramebufferCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkFramebufferCreateInfo.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkFramebufferCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkFramebufferCreateInfo
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static VkFramebufferCreateInfo
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static VkFramebufferCreateInfo.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static VkFramebufferCreateInfo.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected VkFramebufferCreateInfo
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static VkFramebufferCreateInfo
create()

Returns a new VkFramebufferCreateInfo instance allocated with BufferUtils.

public static VkFramebufferCreateInfo
create(long address)

Returns a new VkFramebufferCreateInfo instance for the specified memory address.

public static VkFramebufferCreateInfo.Buffer
create(int
the buffer capacity
capacity
)

Returns a new VkFramebufferCreateInfo.Buffer instance allocated with BufferUtils.

public static VkFramebufferCreateInfo.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a VkFramebufferCreateInfo.Buffer instance at the specified memory.

public static VkFramebufferCreateInfo
createSafe(long address)

Like create, but returns null if address is NULL.

public static VkFramebufferCreateInfo.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public int
flags()

a bitmask of VkFramebufferCreateFlagBits

public VkFramebufferCreateInfo
flags(int value)

Sets the specified value to the flags field.

public int
height()

see width

public VkFramebufferCreateInfo
height(int value)

Sets the specified value to the height field.

public int
layers()

see width

public VkFramebufferCreateInfo
layers(int value)

Sets the specified value to the layers field.

public static VkFramebufferCreateInfo
malloc()

Returns a new VkFramebufferCreateInfo instance allocated with memAlloc.

public static VkFramebufferCreateInfo.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new VkFramebufferCreateInfo.Buffer instance allocated with memAlloc.

public static VkFramebufferCreateInfo
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkFramebufferCreateInfo instance allocated on the specified MemoryStack.

public static VkFramebufferCreateInfo.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkFramebufferCreateInfo.Buffer instance allocated on the specified MemoryStack.

public static VkFramebufferCreateInfo
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static VkFramebufferCreateInfo
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static VkFramebufferCreateInfo.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static VkFramebufferCreateInfo.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static int
nattachmentCount(long struct)

Unsafe version of attachmentCount.

public static void
nattachmentCount(long struct, int value)

Sets the specified value to the attachmentCount field of the specified struct.

public static int
nflags(long struct)

Unsafe version of flags.

public static void
nflags(long struct, int value)

Unsafe version of flags.

public static int
nheight(long struct)

Unsafe version of height.

public static void
nheight(long struct, int value)

Unsafe version of height.

public static int
nlayers(long struct)

Unsafe version of layers.

public static void
nlayers(long struct, int value)

Unsafe version of layers.

public static LongBuffer
npAttachments(long struct)

Unsafe version of pAttachments.

public static void
npAttachments(long struct, LongBuffer value)

Unsafe version of pAttachments.

public static long
npNext(long struct)

Unsafe version of pNext.

public static void
npNext(long struct, long value)

Unsafe version of pNext.

public static long
nrenderPass(long struct)

Unsafe version of renderPass.

public static void
nrenderPass(long struct, long value)

Unsafe version of renderPass.

public static int
nsType(long struct)

Unsafe version of sType.

public static void
nsType(long struct, int value)

Unsafe version of sType.

public static int
nwidth(long struct)

Unsafe version of width.

public static void
nwidth(long struct, int value)

Unsafe version of width.

public LongBuffer
pAttachments()

a pointer to an array of VkImageView handles, each of which will be used as the corresponding attachment in a render pass instance.

public VkFramebufferCreateInfo
pAttachments(LongBuffer value)

Sets the address of the specified LongBuffer to the pAttachments field.

public long
pNext()

NULL or a pointer to a structure extending this structure.

public VkFramebufferCreateInfo
pNext(long value)

Sets the specified value to the pNext field.

public VkFramebufferCreateInfo
pNext(VkFramebufferAttachmentsCreateInfo value)

Prepends the specified VkFramebufferAttachmentsCreateInfo value to the pNext chain.

public VkFramebufferCreateInfo
pNext(VkFramebufferAttachmentsCreateInfoKHR value)

Prepends the specified VkFramebufferAttachmentsCreateInfoKHR value to the pNext chain.

public long
renderPass()

a render pass defining what render passes the framebuffer will be compatible with.

public VkFramebufferCreateInfo
renderPass(long value)

Sets the specified value to the renderPass field.

public VkFramebufferCreateInfo
set(int sType, long pNext, int flags, long renderPass, int attachmentCount, LongBuffer pAttachments, int width, int height, int layers)

Initializes this struct with the specified values.

public VkFramebufferCreateInfo

Returns:

this struct
set
(VkFramebufferCreateInfo
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int
sType()

a VkStructureType value identifying this structure.

public VkFramebufferCreateInfo
sType(int value)

Sets the specified value to the sType field.

public VkFramebufferCreateInfo
public int
width()

width, height and layers define the dimensions of the framebuffer.

public VkFramebufferCreateInfo
width(int value)

Sets the specified value to the width field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate