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.NativeResourceStructure 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_OPTIMALlayout or theIMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMALlayout, 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 theinitialLayoutandfinalLayout.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, andlayersof the framebuffer to define the dimensions of the rendering area, and therasterizationSamplesfrom each pipeline'sVkPipelineMultisampleStateCreateInfoto define the number of samples used in rasterization; however, ifVkPhysicalDeviceFeatures::variableMultisampleRateisFALSE, then all pipelines to be bound with a given zero-attachment subpass must have the same value forVkPipelineMultisampleStateCreateInfo::rasterizationSamples.Valid Usage
attachmentCountmust be equal to the attachment count specified inrenderPass- If
flagsdoes not includeFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR, andattachmentCountis not 0,pAttachmentsmust be a valid pointer to an array ofattachmentCountvalidVkImageViewhandles - If
flagsdoes not includeFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR, each element ofpAttachmentsthat is used as a color attachment or resolve attachment byrenderPassmust have been created with ausagevalue includingIMAGE_USAGE_COLOR_ATTACHMENT_BIT - If
flagsdoes not includeFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR, each element ofpAttachmentsthat is used as a depth/stencil attachment byrenderPassmust have been created with ausagevalue includingIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT - If
flagsdoes not includeFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR, each element ofpAttachmentsthat is used as a depth/stencil resolve attachment byrenderPassmust have been created with ausagevalue includingIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT - If
flagsdoes not includeFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR, each element ofpAttachmentsthat is used as an input attachment byrenderPassmust have been created with ausagevalue includingIMAGE_USAGE_INPUT_ATTACHMENT_BIT - Each element of
pAttachmentsthat is used as a fragment density map attachment byrenderPassmust not have been created with aflagsvalue includingIMAGE_CREATE_SUBSAMPLED_BIT_EXT. - If
renderPasshas a fragment density map attachment and non-subsample image feature is not enabled, each element ofpAttachmentsmust have been created with aflagsvalue includingIMAGE_CREATE_SUBSAMPLED_BIT_EXTunless that element is the fragment density map attachment. - If
flagsdoes not includeFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR, each element ofpAttachmentsmust have been created with anVkFormatvalue that matches theVkFormatspecified by the correspondingVkAttachmentDescriptioninrenderPass - If
flagsdoes not includeFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR, each element ofpAttachmentsmust have been created with asamplesvalue that matches thesamplesvalue specified by the correspondingVkAttachmentDescriptioninrenderPass - If
flagsdoes not includeFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR, each element ofpAttachmentsmust have dimensions at least as large as the corresponding framebuffer dimension except for any element that is referenced byfragmentDensityMapAttachment - If
renderPasswas specified with non-zero view masks, each element ofpAttachmentsthat is not referenced byfragmentDensityMapAttachmentmust have alayerCountgreater than the index of the most significant bit set in any of those view masks - If
renderPasswas specified with non-zero view masks, each element ofpAttachmentsthat is referenced byfragmentDensityMapAttachmentmust have alayerCountequal to 1 or greater than the index of the most significant bit set in any of those view masks - If
renderPasswas not specified with non-zero view masks, each element ofpAttachmentsthat is referenced byfragmentDensityMapAttachmentmust have alayerCountequal to 1 - If
flagsdoes not includeFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR, an element ofpAttachmentsthat is referenced byfragmentDensityMapAttachmentmust have a width at least as large asceil(width / maxFragmentDensityTexelSize.width) - If
flagsdoes not includeFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR, an element ofpAttachmentsthat is referenced byfragmentDensityMapAttachmentmust have a height at least as large asceil(height / maxFragmentDensityTexelSize.height) - If
flagsdoes not includeFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR, each element ofpAttachmentsmust only specify a single mip level - If
flagsdoes not includeFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR, each element ofpAttachmentsmust have been created with the identity swizzle widthmust be greater than 0.widthmust be less than or equal toVkPhysicalDeviceLimits::maxFramebufferWidthheightmust be greater than 0.heightmust be less than or equal toVkPhysicalDeviceLimits::maxFramebufferHeightlayersmust be greater than 0.layersmust be less than or equal toVkPhysicalDeviceLimits::maxFramebufferLayers- If
renderPasswas specified with non-zero view masks,layersmust be 1 - If
flagsdoes not includeFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR, each element ofpAttachmentsthat is a 2D or 2D array image view taken from a 3D image must not be a depth/stencil format - If
flagsdoes not includeFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR, andattachmentCountis not 0,pAttachmentsmust be a valid pointer to an array ofattachmentCountvalidVkImageViewhandles - If the imageless framebuffer feature is not enabled,
flagsmust not includeFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR - If
flagsincludesFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR, thepNextchain must include an instance ofVkFramebufferAttachmentsCreateInfoKHR - If
flagsincludesFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR, theattachmentImageInfoCountmember of an instance ofVkFramebufferAttachmentsCreateInfoKHRin thepNextchain must be equal to either zero orattachmentCount - If
flagsincludesFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR, thewidthmember of any element of thepAttachmentImageInfosmember of an instance ofVkFramebufferAttachmentsCreateInfoKHRin thepNextchain must be greater than or equal towidth, except for any element that is referenced byVkRenderPassFragmentDensityMapCreateInfoEXT::fragmentDensityMapAttachmentinrenderPass - If
flagsincludesFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR, theheightmember of any element of thepAttachmentImageInfosmember of an instance ofVkFramebufferAttachmentsCreateInfoKHRin thepNextchain must be greater than or equal toheight, except for any element that is referenced byVkRenderPassFragmentDensityMapCreateInfoEXT::fragmentDensityMapAttachmentinrenderPass - If
flagsincludesFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR, thewidthmember of any element of thepAttachmentImageInfosmember of an instance ofVkFramebufferAttachmentsCreateInfoKHRin thepNextchain that is referenced byVkRenderPassFragmentDensityMapCreateInfoEXT::fragmentDensityMapAttachmentinrenderPassmust be greater than or equal toceil(width / maxFragmentDensityTexelSize.width) - If
flagsincludesFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR, theheightmember of any element of thepAttachmentImageInfosmember of an instance ofVkFramebufferAttachmentsCreateInfoKHRin thepNextchain that is referenced byVkRenderPassFragmentDensityMapCreateInfoEXT::fragmentDensityMapAttachmentinrenderPassmust be greater than or equal toceil(height / maxFragmentDensityTexelSize.height) - If multiview is enabled for
renderPass, andflagsincludesFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR, thelayerCountmember of any element of thepAttachmentImageInfosmember of an instance ofVkFramebufferAttachmentsCreateInfoKHRin thepNextchain 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, andflagsincludesFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR, thelayerCountmember of any element of thepAttachmentImageInfosmember of an instance ofVkFramebufferAttachmentsCreateInfoKHRin thepNextchain must be greater than or equal tolayers - If
flagsincludesFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR, theusagemember of any element of thepAttachmentImageInfosmember of an instance ofVkFramebufferAttachmentsCreateInfoKHRin thepNextchain that refers to an attachment used as a color attachment or resolve attachment byrenderPassmust includeIMAGE_USAGE_COLOR_ATTACHMENT_BIT - If
flagsincludesFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR, theusagemember of any element of thepAttachmentImageInfosmember of an instance ofVkFramebufferAttachmentsCreateInfoKHRin thepNextchain that refers to an attachment used as a depth/stencil attachment byrenderPassmust includeIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT - If
flagsincludesFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR, theusagemember of any element of thepAttachmentImageInfosmember of an instance ofVkFramebufferAttachmentsCreateInfoKHRin thepNextchain that refers to an attachment used as a depth/stencil resolve attachment byrenderPassmust includeIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT - If
flagsincludesFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR, theusagemember of any element of thepAttachmentImageInfosmember of an instance ofVkFramebufferAttachmentsCreateInfoKHRin thepNextchain that refers to an attachment used as an input attachment byrenderPassmust includeIMAGE_USAGE_INPUT_ATTACHMENT_BIT - If
flagsincludesFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR, at least one element of thepViewFormatsmember of any element of thepAttachmentImageInfosmember of an instance ofVkFramebufferAttachmentsCreateInfoKHRin thepNextchain must be equal to the corresponding value ofVkAttachmentDescription::formatused to createrenderPass
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFOpNextmust beNULLor a pointer to a valid instance ofVkFramebufferAttachmentsCreateInfoKHRflagsmust be a valid combination ofVkFramebufferCreateFlagBitsvaluesrenderPassmust be a validVkRenderPasshandle- Both of
renderPass, and the elements ofpAttachmentsthat are valid handles must have been created, allocated, or retrieved from the sameVkDevice
See Also
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.flags– a bitmask ofVkFramebufferCreateFlagBitsrenderPass– 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 ofVkImageViewhandles, each of which will be used as the corresponding attachment in a render pass instance. IfflagsincludesFRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR, this parameter is ignored.width–width,heightandlayersdefine the dimensions of the framebuffer. If the render pass uses multiview, thenlayersmust 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– seewidthlayers– 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 classVkFramebufferCreateInfo.BufferAn array ofVkFramebufferCreateInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intATTACHMENTCOUNT
FLAGS
HEIGHT
LAYERS
PATTACHMENTS
PNEXT
RENDERPASSThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
WIDTHThe struct member offsets.
-
Constructor Summary
Constructors Constructor 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 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, org.lwjgl.system.MemoryStack stack)Returns a newVkFramebufferCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkFramebufferCreateInfocallocStack(org.lwjgl.system.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.static VkFramebufferCreateInfo.Buffercreate(long address, int capacity)Create aVkFramebufferCreateInfo.Bufferinstance at the specified memory.static VkFramebufferCreateInfocreateSafe(long address)static VkFramebufferCreateInfo.BuffercreateSafe(long address, int capacity)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, org.lwjgl.system.MemoryStack stack)Returns a newVkFramebufferCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkFramebufferCreateInfomallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkFramebufferCreateInfoinstance allocated on the specifiedMemoryStack.static intnattachmentCount(long struct)Unsafe version ofattachmentCount().static voidnattachmentCount(long struct, int value)Sets the specified value to theattachmentCountfield of the specifiedstruct.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 intnlayers(long struct)Unsafe version oflayers().static voidnlayers(long struct, int value)Unsafe version oflayers.static java.nio.LongBuffernpAttachments(long struct)Unsafe version ofpAttachments.static voidnpAttachments(long struct, java.nio.LongBuffer value)Unsafe version ofpAttachments.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static longnrenderPass(long struct)Unsafe version ofrenderPass().static voidnrenderPass(long struct, long value)Unsafe version ofrenderPass.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static intnwidth(long struct)Unsafe version ofwidth().static voidnwidth(long struct, int value)Unsafe version ofwidth.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()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)Callsvalidate(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.
-
-
-
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()
- Specified by:
sizeofin classorg.lwjgl.system.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
@Nullable 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(@Nullable 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, @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 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.
-
createSafe
@Nullable public static VkFramebufferCreateInfo createSafe(long address)
-
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
-
createSafe
@Nullable public static VkFramebufferCreateInfo.Buffer createSafe(long address, int 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(org.lwjgl.system.MemoryStack stack)
Returns a newVkFramebufferCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkFramebufferCreateInfo callocStack(org.lwjgl.system.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, org.lwjgl.system.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, org.lwjgl.system.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
-
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 theattachmentCountfield 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
-
-