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 attachment is read at an implementation-dependent time either by the host during
CmdBeginRenderPassif the attachment's image view was not created withflagscontainingIMAGE_VIEW_CREATE_FRAGMENT_DENSITY_MAP_DYNAMIC_BIT_EXT, or by the device when drawing commands in the renderpass executePIPELINE_STAGE_FRAGMENT_DENSITY_PROCESS_BIT_EXT.If this structure is not present, it is as if
fragmentDensityMapAttachmentwas given asATTACHMENT_UNUSED.Valid Usage
- If
fragmentDensityMapAttachmentis notATTACHMENT_UNUSED,fragmentDensityMapAttachmentmust be less thanVkRenderPassCreateInfo::attachmentCount - 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
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.fragmentDensityMapAttachment– the fragment density map to use for the render pass.
Layout
struct VkRenderPassFragmentDensityMapCreateInfoEXT { VkStructureType sType; 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 Modifier and Type Method Description static VkRenderPassFragmentDensityMapCreateInfoEXTcalloc()Returns a newVkRenderPassFragmentDensityMapCreateInfoEXTinstance allocated withmemCalloc.static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffercalloc(int capacity)Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT.Bufferinstance allocated withmemCalloc.static VkRenderPassFragmentDensityMapCreateInfoEXTcallocStack()Returns a newVkRenderPassFragmentDensityMapCreateInfoEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkRenderPassFragmentDensityMapCreateInfoEXT.BuffercallocStack(int capacity)Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkRenderPassFragmentDensityMapCreateInfoEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkRenderPassFragmentDensityMapCreateInfoEXTcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkRenderPassFragmentDensityMapCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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()Returns aVkAttachmentReferenceview of thefragmentDensityMapAttachmentfield.VkRenderPassFragmentDensityMapCreateInfoEXTfragmentDensityMapAttachment(java.util.function.Consumer<VkAttachmentReference> consumer)Passes thefragmentDensityMapAttachmentfield to the specifiedConsumer.VkRenderPassFragmentDensityMapCreateInfoEXTfragmentDensityMapAttachment(VkAttachmentReference value)Copies the specifiedVkAttachmentReferenceto thefragmentDensityMapAttachmentfield.static VkRenderPassFragmentDensityMapCreateInfoEXTmalloc()Returns a newVkRenderPassFragmentDensityMapCreateInfoEXTinstance allocated withmemAlloc.static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffermalloc(int capacity)Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT.Bufferinstance allocated withmemAlloc.static VkRenderPassFragmentDensityMapCreateInfoEXTmallocStack()Returns a newVkRenderPassFragmentDensityMapCreateInfoEXTinstance allocated on the thread-localMemoryStack.static VkRenderPassFragmentDensityMapCreateInfoEXT.BuffermallocStack(int capacity)Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT.Bufferinstance allocated on the thread-localMemoryStack.static VkRenderPassFragmentDensityMapCreateInfoEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkRenderPassFragmentDensityMapCreateInfoEXTmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkRenderPassFragmentDensityMapCreateInfoEXTinstance allocated on the specifiedMemoryStack.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()Returns the value of thepNextfield.VkRenderPassFragmentDensityMapCreateInfoEXTpNext(long value)Sets the specified value to thepNextfield.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()Returns the value of thesTypefield.VkRenderPassFragmentDensityMapCreateInfoEXTsType(int value)Sets the specified value to thesTypefield.
-
-
-
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()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
fragmentDensityMapAttachment
public VkAttachmentReference fragmentDensityMapAttachment()
Returns aVkAttachmentReferenceview of thefragmentDensityMapAttachmentfield.
-
sType
public VkRenderPassFragmentDensityMapCreateInfoEXT sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkRenderPassFragmentDensityMapCreateInfoEXT pNext(long value)
Sets the specified value to thepNextfield.
-
fragmentDensityMapAttachment
public VkRenderPassFragmentDensityMapCreateInfoEXT fragmentDensityMapAttachment(VkAttachmentReference value)
Copies the specifiedVkAttachmentReferenceto thefragmentDensityMapAttachmentfield.
-
fragmentDensityMapAttachment
public VkRenderPassFragmentDensityMapCreateInfoEXT fragmentDensityMapAttachment(java.util.function.Consumer<VkAttachmentReference> consumer)
Passes thefragmentDensityMapAttachmentfield 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
public static VkRenderPassFragmentDensityMapCreateInfoEXT mallocStack()
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXTinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkRenderPassFragmentDensityMapCreateInfoEXT callocStack()
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkRenderPassFragmentDensityMapCreateInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkRenderPassFragmentDensityMapCreateInfoEXT callocStack(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
-
mallocStack
public static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer mallocStack(int capacity)
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer callocStack(int capacity)
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer mallocStack(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
-
callocStack
public static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer callocStack(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.
-
-