Package org.lwjgl.vulkan
Class VkRenderPassFragmentDensityMapCreateInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkRenderPassFragmentDensityMapCreateInfoEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkRenderPassFragmentDensityMapCreateInfoEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure containing fragment density map attachment for render pass.Description
The fragment density map is read at an implementation-dependent time with the following constraints determined by the attachmentâs image view
flags:IMAGE_VIEW_CREATE_FRAGMENT_DENSITY_MAP_DYNAMIC_BIT_EXTspecifies that the fragment density map will be read by the device duringPIPELINE_STAGE_FRAGMENT_DENSITY_PROCESS_BIT_EXTIMAGE_VIEW_CREATE_FRAGMENT_DENSITY_MAP_DEFERRED_BIT_EXTspecifies that the fragment density map will be read by the host duringEndCommandBufferof the primary command buffer that the render pass is recorded into- Otherwise the fragment density map will be read by the host during
CmdBeginRenderPass
The fragment density map may additionally be read by the device during
PIPELINE_STAGE_FRAGMENT_DENSITY_PROCESS_BIT_EXTfor any mode.If this structure is not present, it is as if
fragmentDensityMapAttachmentwas given asATTACHMENT_UNUSED.Valid Usage
- If
fragmentDensityMapAttachmentis notATTACHMENT_UNUSED,fragmentDensityMapAttachmentmust not be an element ofVkSubpassDescription::pInputAttachments,VkSubpassDescription::pColorAttachments,VkSubpassDescription::pResolveAttachments,VkSubpassDescription::pDepthStencilAttachment, orVkSubpassDescription::pPreserveAttachmentsfor any subpass - If
fragmentDensityMapAttachmentis notATTACHMENT_UNUSED,layoutmust be equal toIMAGE_LAYOUT_FRAGMENT_DENSITY_MAP_OPTIMAL_EXT, orIMAGE_LAYOUT_GENERAL - If
fragmentDensityMapAttachmentis notATTACHMENT_UNUSED,fragmentDensityMapAttachmentmust reference an attachment with aloadOpequal toATTACHMENT_LOAD_OP_LOADorATTACHMENT_LOAD_OP_DONT_CARE - If
fragmentDensityMapAttachmentis notATTACHMENT_UNUSED,fragmentDensityMapAttachmentmust reference an attachment with astoreOpequal toATTACHMENT_STORE_OP_DONT_CARE
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_RENDER_PASS_FRAGMENT_DENSITY_MAP_CREATE_INFO_EXTfragmentDensityMapAttachmentmust be a validVkAttachmentReferencestructure
See Also
Layout
struct VkRenderPassFragmentDensityMapCreateInfoEXT { VkStructureTypesType(); void const *pNext();VkAttachmentReferencefragmentDensityMapAttachment(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkRenderPassFragmentDensityMapCreateInfoEXT.BufferAn array ofVkRenderPassFragmentDensityMapCreateInfoEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intFRAGMENTDENSITYMAPATTACHMENT
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkRenderPassFragmentDensityMapCreateInfoEXT(java.nio.ByteBuffer container)Creates aVkRenderPassFragmentDensityMapCreateInfoEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VkRenderPassFragmentDensityMapCreateInfoEXTcalloc()Returns a newVkRenderPassFragmentDensityMapCreateInfoEXTinstance allocated withmemCalloc.static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffercalloc(int capacity)Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT.Bufferinstance allocated withmemCalloc.static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkRenderPassFragmentDensityMapCreateInfoEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkRenderPassFragmentDensityMapCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkRenderPassFragmentDensityMapCreateInfoEXTcallocStack()Deprecated.static VkRenderPassFragmentDensityMapCreateInfoEXT.BuffercallocStack(int capacity)Deprecated.static VkRenderPassFragmentDensityMapCreateInfoEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkRenderPassFragmentDensityMapCreateInfoEXTcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkRenderPassFragmentDensityMapCreateInfoEXTcreate()Returns a newVkRenderPassFragmentDensityMapCreateInfoEXTinstance allocated withBufferUtils.static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffercreate(int capacity)Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT.Bufferinstance allocated withBufferUtils.static VkRenderPassFragmentDensityMapCreateInfoEXTcreate(long address)Returns a newVkRenderPassFragmentDensityMapCreateInfoEXTinstance for the specified memory address.static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffercreate(long address, int capacity)Create aVkRenderPassFragmentDensityMapCreateInfoEXT.Bufferinstance at the specified memory.static VkRenderPassFragmentDensityMapCreateInfoEXTcreateSafe(long address)static VkRenderPassFragmentDensityMapCreateInfoEXT.BuffercreateSafe(long address, int capacity)VkAttachmentReferencefragmentDensityMapAttachment()the fragment density map to use for the render pass.VkRenderPassFragmentDensityMapCreateInfoEXTfragmentDensityMapAttachment(java.util.function.Consumer<VkAttachmentReference> consumer)Passes thefragmentDensityMapAttachment()field to the specifiedConsumer.VkRenderPassFragmentDensityMapCreateInfoEXTfragmentDensityMapAttachment(VkAttachmentReference value)Copies the specifiedVkAttachmentReferenceto thefragmentDensityMapAttachment()field.static VkRenderPassFragmentDensityMapCreateInfoEXTmalloc()Returns a newVkRenderPassFragmentDensityMapCreateInfoEXTinstance allocated withmemAlloc.static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffermalloc(int capacity)Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT.Bufferinstance allocated withmemAlloc.static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkRenderPassFragmentDensityMapCreateInfoEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkRenderPassFragmentDensityMapCreateInfoEXTinstance allocated on the specifiedMemoryStack.static VkRenderPassFragmentDensityMapCreateInfoEXTmallocStack()Deprecated.static VkRenderPassFragmentDensityMapCreateInfoEXT.BuffermallocStack(int capacity)Deprecated.static VkRenderPassFragmentDensityMapCreateInfoEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkRenderPassFragmentDensityMapCreateInfoEXTmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkAttachmentReferencenfragmentDensityMapAttachment(long struct)Unsafe version offragmentDensityMapAttachment().static voidnfragmentDensityMapAttachment(long struct, VkAttachmentReference value)Unsafe version offragmentDensityMapAttachment.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()NULLor a pointer to a structure extending this structure.VkRenderPassFragmentDensityMapCreateInfoEXTpNext(long value)Sets the specified value to thepNext()field.VkRenderPassFragmentDensityMapCreateInfoEXTset(int sType, long pNext, VkAttachmentReference fragmentDensityMapAttachment)Initializes this struct with the specified values.VkRenderPassFragmentDensityMapCreateInfoEXTset(VkRenderPassFragmentDensityMapCreateInfoEXT src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkRenderPassFragmentDensityMapCreateInfoEXTsType(int value)Sets the specified value to thesType()field.VkRenderPassFragmentDensityMapCreateInfoEXTsType$Default()Sets theSTRUCTURE_TYPE_RENDER_PASS_FRAGMENT_DENSITY_MAP_CREATE_INFO_EXTvalue to thesType()field.
-
-
-
Constructor Detail
-
VkRenderPassFragmentDensityMapCreateInfoEXT
public VkRenderPassFragmentDensityMapCreateInfoEXT(java.nio.ByteBuffer container)
Creates aVkRenderPassFragmentDensityMapCreateInfoEXTinstance 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.
-
fragmentDensityMapAttachment
public VkAttachmentReference fragmentDensityMapAttachment()
the fragment density map to use for the render pass.
-
sType
public VkRenderPassFragmentDensityMapCreateInfoEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkRenderPassFragmentDensityMapCreateInfoEXT sType$Default()
Sets theSTRUCTURE_TYPE_RENDER_PASS_FRAGMENT_DENSITY_MAP_CREATE_INFO_EXTvalue to thesType()field.
-
pNext
public VkRenderPassFragmentDensityMapCreateInfoEXT pNext(long value)
Sets the specified value to thepNext()field.
-
fragmentDensityMapAttachment
public VkRenderPassFragmentDensityMapCreateInfoEXT fragmentDensityMapAttachment(VkAttachmentReference value)
Copies the specifiedVkAttachmentReferenceto thefragmentDensityMapAttachment()field.
-
fragmentDensityMapAttachment
public VkRenderPassFragmentDensityMapCreateInfoEXT fragmentDensityMapAttachment(java.util.function.Consumer<VkAttachmentReference> consumer)
Passes thefragmentDensityMapAttachment()field to the specifiedConsumer.
-
set
public VkRenderPassFragmentDensityMapCreateInfoEXT set(int sType, long pNext, VkAttachmentReference fragmentDensityMapAttachment)
Initializes this struct with the specified values.
-
set
public VkRenderPassFragmentDensityMapCreateInfoEXT set(VkRenderPassFragmentDensityMapCreateInfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkRenderPassFragmentDensityMapCreateInfoEXT malloc()
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkRenderPassFragmentDensityMapCreateInfoEXT calloc()
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkRenderPassFragmentDensityMapCreateInfoEXT create()
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXTinstance allocated withBufferUtils.
-
create
public static VkRenderPassFragmentDensityMapCreateInfoEXT create(long address)
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkRenderPassFragmentDensityMapCreateInfoEXT createSafe(long address)
-
malloc
public static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer malloc(int capacity)
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer calloc(int capacity)
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer create(int capacity)
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer create(long address, int capacity)
Create aVkRenderPassFragmentDensityMapCreateInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkRenderPassFragmentDensityMapCreateInfoEXT mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkRenderPassFragmentDensityMapCreateInfoEXT callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkRenderPassFragmentDensityMapCreateInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkRenderPassFragmentDensityMapCreateInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkRenderPassFragmentDensityMapCreateInfoEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkRenderPassFragmentDensityMapCreateInfoEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT.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().
-
nfragmentDensityMapAttachment
public static VkAttachmentReference nfragmentDensityMapAttachment(long struct)
Unsafe version offragmentDensityMapAttachment().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nfragmentDensityMapAttachment
public static void nfragmentDensityMapAttachment(long struct, VkAttachmentReference value)Unsafe version offragmentDensityMapAttachment.
-
-