Class VkFramebufferCreateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkFramebufferCreateInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkFramebufferCreateInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure specifying parameters of a newly created framebuffer.Description
Applications must ensure that all accesses to memory that backs image subresources used as attachments in a given renderpass instance either happen-before the load operations for those attachments, or happen-after the store operations for those attachments.
For depth/stencil attachments, each aspect can be used separately as attachments and non-attachments as long as the non-attachment accesses are also via an image subresource in either the
IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL
layout or theIMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL
layout, and the attachment resource uses whichever of those two layouts the image accesses do not. Use of non-attachment aspects in this case is only well defined if the attachment is used in the subpass where the non-attachment access is being made, or the layout of the image subresource is constant throughout the entire render pass instance, including theinitialLayout
andfinalLayout
.Note
These restrictions mean that the render pass has full knowledge of all uses of all of the attachments, so that the implementation is able to make correct decisions about when and how to perform layout transitions, when to overlap execution of subpasses, etc.
It is legal for a subpass to use no color or depth/stencil attachments, and rather 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
, andlayers
of the framebuffer to define the dimensions of the rendering area, and therasterizationSamples
from each pipeline'sVkPipelineMultisampleStateCreateInfo
to define the number of samples used in rasterization; however, ifVkPhysicalDeviceFeatures
::variableMultisampleRate
isFALSE
, then all pipelines to be bound with a given zero-attachment subpass must have the same value forVkPipelineMultisampleStateCreateInfo
::rasterizationSamples
.Valid Usage
attachmentCount
must be equal to the attachment count specified inrenderPass
- If
flags
does not includeFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR
, andattachmentCount
is not 0,pAttachments
must be a valid pointer to an array ofattachmentCount
validVkImageView
handles - If
flags
does not includeFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR
, each element ofpAttachments
that is used as a color attachment or resolve attachment byrenderPass
must have been created with ausage
value includingIMAGE_USAGE_COLOR_ATTACHMENT_BIT
- If
flags
does not includeFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR
, each element ofpAttachments
that is used as a depth/stencil attachment byrenderPass
must have been created with ausage
value includingIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT
- If
flags
does not includeFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR
, each element ofpAttachments
that is used as a depth/stencil resolve attachment byrenderPass
must have been created with ausage
value includingIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT
- If
flags
does not includeFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR
, each element ofpAttachments
that is used as an input attachment byrenderPass
must have been created with ausage
value includingIMAGE_USAGE_INPUT_ATTACHMENT_BIT
- Each element of
pAttachments
that is used as a fragment density map attachment byrenderPass
must not have been created with aflags
value includingIMAGE_CREATE_SUBSAMPLED_BIT_EXT
. - If
renderPass
has a fragment density map attachment and non-subsample image feature is not enabled, each element ofpAttachments
must have been created with aflags
value includingIMAGE_CREATE_SUBSAMPLED_BIT_EXT
unless that element is the fragment density map attachment. - If
flags
does not includeFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR
, each element ofpAttachments
must have been created with anVkFormat
value that matches theVkFormat
specified by the correspondingVkAttachmentDescription
inrenderPass
- If
flags
does not includeFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR
, each element ofpAttachments
must have been created with asamples
value that matches thesamples
value specified by the correspondingVkAttachmentDescription
inrenderPass
- If
flags
does not includeFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR
, each element ofpAttachments
must have dimensions at least as large as the corresponding framebuffer dimension except for any element that is referenced byfragmentDensityMapAttachment
- If
renderPass
was specified with non-zero view masks, each element ofpAttachments
that is not referenced byfragmentDensityMapAttachment
must have alayerCount
greater than the index of the most significant bit set in any of those view masks - If
renderPass
was specified with non-zero view masks, each element ofpAttachments
that is referenced byfragmentDensityMapAttachment
must have alayerCount
equal to 1 or greater than the index of the most significant bit set in any of those view masks - If
renderPass
was not specified with non-zero view masks, each element ofpAttachments
that is referenced byfragmentDensityMapAttachment
must have alayerCount
equal to 1 - If
flags
does not includeFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR
, an element ofpAttachments
that is referenced byfragmentDensityMapAttachment
must have a width at least as large asceil(width / maxFragmentDensityTexelSize.width)
- If
flags
does not includeFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR
, an element ofpAttachments
that is referenced byfragmentDensityMapAttachment
must have a height at least as large asceil(height / maxFragmentDensityTexelSize.height)
- If
flags
does not includeFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR
, each element ofpAttachments
must only specify a single mip level - If
flags
does not includeFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR
, each element ofpAttachments
must have been created with the identity swizzle width
must be greater than 0.width
must be less than or equal toVkPhysicalDeviceLimits
::maxFramebufferWidth
height
must be greater than 0.height
must be less than or equal toVkPhysicalDeviceLimits
::maxFramebufferHeight
layers
must be greater than 0.layers
must be less than or equal toVkPhysicalDeviceLimits
::maxFramebufferLayers
- If
renderPass
was specified with non-zero view masks,layers
must be 1 - If
flags
does not includeFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR
, each element ofpAttachments
that is a 2D or 2D array image view taken from a 3D image must not be a depth/stencil format - If
flags
does not includeFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR
, andattachmentCount
is not 0,pAttachments
must be a valid pointer to an array ofattachmentCount
validVkImageView
handles - If the imageless framebuffer feature is not enabled,
flags
must not includeFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR
- If
flags
includesFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR
, thepNext
chain must include an instance ofVkFramebufferAttachmentsCreateInfoKHR
- If
flags
includesFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR
, theattachmentImageInfoCount
member of an instance ofVkFramebufferAttachmentsCreateInfoKHR
in thepNext
chain must be equal to either zero orattachmentCount
- If
flags
includesFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR
, thewidth
member of any element of thepAttachmentImageInfos
member of an instance ofVkFramebufferAttachmentsCreateInfoKHR
in thepNext
chain must be greater than or equal towidth
, except for any element that is referenced byVkRenderPassFragmentDensityMapCreateInfoEXT
::fragmentDensityMapAttachment
inrenderPass
- If
flags
includesFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR
, theheight
member of any element of thepAttachmentImageInfos
member of an instance ofVkFramebufferAttachmentsCreateInfoKHR
in thepNext
chain must be greater than or equal toheight
, except for any element that is referenced byVkRenderPassFragmentDensityMapCreateInfoEXT
::fragmentDensityMapAttachment
inrenderPass
- If
flags
includesFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR
, thewidth
member of any element of thepAttachmentImageInfos
member of an instance ofVkFramebufferAttachmentsCreateInfoKHR
in thepNext
chain that is referenced byVkRenderPassFragmentDensityMapCreateInfoEXT
::fragmentDensityMapAttachment
inrenderPass
must be greater than or equal toceil(width / maxFragmentDensityTexelSize.width)
- If
flags
includesFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR
, theheight
member of any element of thepAttachmentImageInfos
member of an instance ofVkFramebufferAttachmentsCreateInfoKHR
in thepNext
chain that is referenced byVkRenderPassFragmentDensityMapCreateInfoEXT
::fragmentDensityMapAttachment
inrenderPass
must be greater than or equal toceil(height / maxFragmentDensityTexelSize.height)
- If multiview is enabled for
renderPass
, andflags
includesFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR
, thelayerCount
member of any element of thepAttachmentImageInfos
member of an instance ofVkFramebufferAttachmentsCreateInfoKHR
in thepNext
chain must be greater than the maximum bit index set in the view mask in the subpasses in which it is used inrenderPass
- If multiview is not enabled for
renderPass
, andflags
includesFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR
, thelayerCount
member of any element of thepAttachmentImageInfos
member of an instance ofVkFramebufferAttachmentsCreateInfoKHR
in thepNext
chain must be greater than or equal tolayers
- If
flags
includesFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR
, theusage
member of any element of thepAttachmentImageInfos
member of an instance ofVkFramebufferAttachmentsCreateInfoKHR
in thepNext
chain that refers to an attachment used as a color attachment or resolve attachment byrenderPass
must includeIMAGE_USAGE_COLOR_ATTACHMENT_BIT
- If
flags
includesFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR
, theusage
member of any element of thepAttachmentImageInfos
member of an instance ofVkFramebufferAttachmentsCreateInfoKHR
in thepNext
chain that refers to an attachment used as a depth/stencil attachment byrenderPass
must includeIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT
- If
flags
includesFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR
, theusage
member of any element of thepAttachmentImageInfos
member of an instance ofVkFramebufferAttachmentsCreateInfoKHR
in thepNext
chain that refers to an attachment used as a depth/stencil resolve attachment byrenderPass
must includeIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT
- If
flags
includesFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR
, theusage
member of any element of thepAttachmentImageInfos
member of an instance ofVkFramebufferAttachmentsCreateInfoKHR
in thepNext
chain that refers to an attachment used as an input attachment byrenderPass
must includeIMAGE_USAGE_INPUT_ATTACHMENT_BIT
- If
flags
includesFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR
, at least one element of thepViewFormats
member of any element of thepAttachmentImageInfos
member of an instance ofVkFramebufferAttachmentsCreateInfoKHR
in thepNext
chain must be equal to the corresponding value ofVkAttachmentDescription
::format
used to createrenderPass
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO
pNext
must beNULL
or a pointer to a valid instance ofVkFramebufferAttachmentsCreateInfoKHR
flags
must be a valid combination ofVkFramebufferCreateFlagBits
valuesrenderPass
must be a validVkRenderPass
handle- Both of
renderPass
, and the elements ofpAttachments
that are valid handles must have been created, allocated, or retrieved from the sameVkDevice
See Also
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.flags
– a bitmask ofVkFramebufferCreateFlagBits
renderPass
– a render pass that defines what render passes the framebuffer will be compatible with. See Render Pass Compatibility for details.attachmentCount
– the number of attachments.pAttachments
– an array ofVkImageView
handles, each of which will be used as the corresponding attachment in a render pass instance. Ifflags
includesFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR
, this parameter is ignored.width
–width
,height
andlayers
define the dimensions of the framebuffer. If the render pass uses multiview, thenlayers
must be one and each attachment requires a number of layers that is greater than the maximum bit index set in the view mask in the subpasses in which it is used.height
– seewidth
layers
– seewidth
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 Class Summary
Nested Classes Modifier and Type Class Description static class
VkFramebufferCreateInfo.Buffer
An array ofVkFramebufferCreateInfo
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
ATTACHMENTCOUNT
FLAGS
HEIGHT
LAYERS
PATTACHMENTS
PNEXT
RENDERPASSThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
WIDTHThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkFramebufferCreateInfo(java.nio.ByteBuffer container)
Creates aVkFramebufferCreateInfo
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
attachmentCount()
Returns the value of theattachmentCount
field.static VkFramebufferCreateInfo
calloc()
Returns a newVkFramebufferCreateInfo
instance allocated withmemCalloc
.static VkFramebufferCreateInfo.Buffer
calloc(int capacity)
Returns a newVkFramebufferCreateInfo.Buffer
instance allocated withmemCalloc
.static VkFramebufferCreateInfo
callocStack()
Returns a newVkFramebufferCreateInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkFramebufferCreateInfo.Buffer
callocStack(int capacity)
Returns a newVkFramebufferCreateInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkFramebufferCreateInfo.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkFramebufferCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkFramebufferCreateInfo
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkFramebufferCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkFramebufferCreateInfo
create()
Returns a newVkFramebufferCreateInfo
instance allocated withBufferUtils
.static VkFramebufferCreateInfo.Buffer
create(int capacity)
Returns a newVkFramebufferCreateInfo.Buffer
instance allocated withBufferUtils
.static VkFramebufferCreateInfo
create(long address)
Returns a newVkFramebufferCreateInfo
instance for the specified memory address.static VkFramebufferCreateInfo.Buffer
create(long address, int capacity)
Create aVkFramebufferCreateInfo.Buffer
instance at the specified memory.static VkFramebufferCreateInfo
createSafe(long address)
static VkFramebufferCreateInfo.Buffer
createSafe(long address, int capacity)
int
flags()
Returns the value of theflags
field.VkFramebufferCreateInfo
flags(int value)
Sets the specified value to theflags
field.int
height()
Returns the value of theheight
field.VkFramebufferCreateInfo
height(int value)
Sets the specified value to theheight
field.int
layers()
Returns the value of thelayers
field.VkFramebufferCreateInfo
layers(int value)
Sets the specified value to thelayers
field.static VkFramebufferCreateInfo
malloc()
Returns a newVkFramebufferCreateInfo
instance allocated withmemAlloc
.static VkFramebufferCreateInfo.Buffer
malloc(int capacity)
Returns a newVkFramebufferCreateInfo.Buffer
instance allocated withmemAlloc
.static VkFramebufferCreateInfo
mallocStack()
Returns a newVkFramebufferCreateInfo
instance allocated on the thread-localMemoryStack
.static VkFramebufferCreateInfo.Buffer
mallocStack(int capacity)
Returns a newVkFramebufferCreateInfo.Buffer
instance allocated on the thread-localMemoryStack
.static VkFramebufferCreateInfo.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkFramebufferCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.static VkFramebufferCreateInfo
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkFramebufferCreateInfo
instance allocated on the specifiedMemoryStack
.static int
nattachmentCount(long struct)
Unsafe version ofattachmentCount()
.static void
nattachmentCount(long struct, int value)
Sets the specified value to theattachmentCount
field of the specifiedstruct
.static int
nflags(long struct)
Unsafe version offlags()
.static void
nflags(long struct, int value)
Unsafe version offlags
.static int
nheight(long struct)
Unsafe version ofheight()
.static void
nheight(long struct, int value)
Unsafe version ofheight
.static int
nlayers(long struct)
Unsafe version oflayers()
.static void
nlayers(long struct, int value)
Unsafe version oflayers
.static java.nio.LongBuffer
npAttachments(long struct)
Unsafe version ofpAttachments
.static void
npAttachments(long struct, java.nio.LongBuffer value)
Unsafe version ofpAttachments
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static long
nrenderPass(long struct)
Unsafe version ofrenderPass()
.static void
nrenderPass(long struct, long value)
Unsafe version ofrenderPass
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.static int
nwidth(long struct)
Unsafe version ofwidth()
.static void
nwidth(long struct, int value)
Unsafe version ofwidth
.java.nio.LongBuffer
pAttachments()
Returns aLongBuffer
view of the data pointed to by thepAttachments
field.VkFramebufferCreateInfo
pAttachments(java.nio.LongBuffer value)
Sets the address of the specifiedLongBuffer
to thepAttachments
field.long
pNext()
Returns the value of thepNext
field.VkFramebufferCreateInfo
pNext(long value)
Sets the specified value to thepNext
field.long
renderPass()
Returns the value of therenderPass
field.VkFramebufferCreateInfo
renderPass(long value)
Sets the specified value to therenderPass
field.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.VkFramebufferCreateInfo
set(VkFramebufferCreateInfo src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkFramebufferCreateInfo
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.int
width()
Returns the value of thewidth
field.VkFramebufferCreateInfo
width(int value)
Sets the specified value to thewidth
field.
-
-
-
Constructor Detail
-
VkFramebufferCreateInfo
public VkFramebufferCreateInfo(java.nio.ByteBuffer container)
Creates aVkFramebufferCreateInfo
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.
-
flags
public int flags()
Returns the value of theflags
field.
-
renderPass
public long renderPass()
Returns the value of therenderPass
field.
-
attachmentCount
public int attachmentCount()
Returns the value of theattachmentCount
field.
-
pAttachments
@Nullable public java.nio.LongBuffer pAttachments()
Returns aLongBuffer
view of the data pointed to by thepAttachments
field.
-
width
public int width()
Returns the value of thewidth
field.
-
height
public int height()
Returns the value of theheight
field.
-
layers
public int layers()
Returns the value of thelayers
field.
-
sType
public VkFramebufferCreateInfo sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkFramebufferCreateInfo pNext(long value)
Sets the specified value to thepNext
field.
-
flags
public VkFramebufferCreateInfo flags(int value)
Sets the specified value to theflags
field.
-
renderPass
public VkFramebufferCreateInfo renderPass(long value)
Sets the specified value to therenderPass
field.
-
pAttachments
public VkFramebufferCreateInfo pAttachments(@Nullable java.nio.LongBuffer value)
Sets the address of the specifiedLongBuffer
to thepAttachments
field.
-
width
public VkFramebufferCreateInfo width(int value)
Sets the specified value to thewidth
field.
-
height
public VkFramebufferCreateInfo height(int value)
Sets the specified value to theheight
field.
-
layers
public VkFramebufferCreateInfo layers(int value)
Sets the specified value to thelayers
field.
-
set
public VkFramebufferCreateInfo set(int sType, long pNext, int flags, long renderPass, @Nullable java.nio.LongBuffer pAttachments, int width, int height, int layers)
Initializes this struct with the specified values.
-
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 newVkFramebufferCreateInfo
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkFramebufferCreateInfo calloc()
Returns a newVkFramebufferCreateInfo
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkFramebufferCreateInfo create()
Returns a newVkFramebufferCreateInfo
instance allocated withBufferUtils
.
-
create
public static VkFramebufferCreateInfo create(long address)
Returns a newVkFramebufferCreateInfo
instance for the specified memory address.
-
createSafe
@Nullable public static VkFramebufferCreateInfo createSafe(long address)
-
malloc
public static VkFramebufferCreateInfo.Buffer malloc(int capacity)
Returns a newVkFramebufferCreateInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkFramebufferCreateInfo.Buffer calloc(int capacity)
Returns a newVkFramebufferCreateInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkFramebufferCreateInfo.Buffer create(int capacity)
Returns a newVkFramebufferCreateInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkFramebufferCreateInfo.Buffer create(long address, int capacity)
Create aVkFramebufferCreateInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkFramebufferCreateInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkFramebufferCreateInfo mallocStack()
Returns a newVkFramebufferCreateInfo
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkFramebufferCreateInfo callocStack()
Returns a newVkFramebufferCreateInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkFramebufferCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkFramebufferCreateInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkFramebufferCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkFramebufferCreateInfo
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkFramebufferCreateInfo.Buffer callocStack(int capacity)
Returns a newVkFramebufferCreateInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkFramebufferCreateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkFramebufferCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkFramebufferCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkFramebufferCreateInfo.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()
.
-
nflags
public static int nflags(long struct)
Unsafe version offlags()
.
-
nrenderPass
public static long nrenderPass(long struct)
Unsafe version ofrenderPass()
.
-
nattachmentCount
public static int nattachmentCount(long struct)
Unsafe version ofattachmentCount()
.
-
npAttachments
@Nullable public static java.nio.LongBuffer npAttachments(long struct)
Unsafe version ofpAttachments
.
-
nwidth
public static int nwidth(long struct)
Unsafe version ofwidth()
.
-
nheight
public static int nheight(long struct)
Unsafe version ofheight()
.
-
nlayers
public static int nlayers(long struct)
Unsafe version oflayers()
.
-
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
.
-
nrenderPass
public static void nrenderPass(long struct, long value)
Unsafe version ofrenderPass
.
-
nattachmentCount
public static void nattachmentCount(long struct, int value)
Sets the specified value to theattachmentCount
field of the specifiedstruct
.
-
npAttachments
public static void npAttachments(long struct, @Nullable java.nio.LongBuffer value)
Unsafe version ofpAttachments
.
-
nwidth
public static void nwidth(long struct, int value)
Unsafe version ofwidth
.
-
nheight
public static void nheight(long struct, int value)
Unsafe version ofheight
.
-
nlayers
public static void nlayers(long struct, int value)
Unsafe version oflayers
.
-
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
-
-