public class VkRenderPassFragmentDensityMapCreateInfoEXT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
The fragment density map attachment is read at an implementation-dependent time either by the host during CmdBeginRenderPass if the attachment's image view was not created with flags containing IMAGE_VIEW_CREATE_FRAGMENT_DENSITY_MAP_DYNAMIC_BIT_EXT, or by the device when drawing commands in the renderpass execute PIPELINE_STAGE_FRAGMENT_DENSITY_PROCESS_BIT_EXT.
If this structure is not present, it is as if fragmentDensityMapAttachment was given as ATTACHMENT_UNUSED.
fragmentDensityMapAttachment is not ATTACHMENT_UNUSED, fragmentDensityMapAttachment must be less than VkRenderPassCreateInfo::attachmentCountfragmentDensityMapAttachment is not ATTACHMENT_UNUSED, fragmentDensityMapAttachment must not be an element of VkSubpassDescription::pInputAttachments, VkSubpassDescription::pColorAttachments, VkSubpassDescription::pResolveAttachments, VkSubpassDescription::pDepthStencilAttachment, or VkSubpassDescription::pPreserveAttachments for any subpassfragmentDensityMapAttachment is not ATTACHMENT_UNUSED, layout must be equal to IMAGE_LAYOUT_FRAGMENT_DENSITY_MAP_OPTIMAL_EXT, or IMAGE_LAYOUT_GENERALfragmentDensityMapAttachment is not ATTACHMENT_UNUSED, fragmentDensityMapAttachment must reference an attachment with a loadOp equal to ATTACHMENT_LOAD_OP_LOAD or ATTACHMENT_LOAD_OP_DONT_CARE.fragmentDensityMapAttachment is not ATTACHMENT_UNUSED, fragmentDensityMapAttachment must reference an attachment with a storeOp equal to ATTACHMENT_STORE_OP_DONT_CARE.sType must be STRUCTURE_TYPE_RENDER_PASS_FRAGMENT_DENSITY_MAP_CREATE_INFO_EXTfragmentDensityMapAttachment must be a valid VkAttachmentReference structuresType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.fragmentDensityMapAttachment – the fragment density map to use for the render pass.
struct VkRenderPassFragmentDensityMapCreateInfoEXT {
VkStructureType sType;
void const * pNext;
VkAttachmentReference fragmentDensityMapAttachment;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer
An array of
VkRenderPassFragmentDensityMapCreateInfoEXT structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FRAGMENTDENSITYMAPATTACHMENT
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkRenderPassFragmentDensityMapCreateInfoEXT(java.nio.ByteBuffer container)
Creates a
VkRenderPassFragmentDensityMapCreateInfoEXT instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkRenderPassFragmentDensityMapCreateInfoEXT |
calloc()
Returns a new
VkRenderPassFragmentDensityMapCreateInfoEXT instance allocated with memCalloc. |
static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer |
calloc(int capacity)
Returns a new
VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer instance allocated with memCalloc. |
static VkRenderPassFragmentDensityMapCreateInfoEXT |
callocStack()
Returns a new
VkRenderPassFragmentDensityMapCreateInfoEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer |
callocStack(int capacity)
Returns a new
VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkRenderPassFragmentDensityMapCreateInfoEXT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkRenderPassFragmentDensityMapCreateInfoEXT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkRenderPassFragmentDensityMapCreateInfoEXT |
create()
Returns a new
VkRenderPassFragmentDensityMapCreateInfoEXT instance allocated with BufferUtils. |
static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer |
create(int capacity)
Returns a new
VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer instance allocated with BufferUtils. |
static VkRenderPassFragmentDensityMapCreateInfoEXT |
create(long address)
Returns a new
VkRenderPassFragmentDensityMapCreateInfoEXT instance for the specified memory address. |
static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer |
create(long address,
int capacity)
Create a
VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer instance at the specified memory. |
static VkRenderPassFragmentDensityMapCreateInfoEXT |
createSafe(long address)
|
static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer |
createSafe(long address,
int capacity)
|
VkAttachmentReference |
fragmentDensityMapAttachment()
Returns a
VkAttachmentReference view of the fragmentDensityMapAttachment field. |
VkRenderPassFragmentDensityMapCreateInfoEXT |
fragmentDensityMapAttachment(java.util.function.Consumer<VkAttachmentReference> consumer)
Passes the
fragmentDensityMapAttachment field to the specified Consumer. |
VkRenderPassFragmentDensityMapCreateInfoEXT |
fragmentDensityMapAttachment(VkAttachmentReference value)
Copies the specified
VkAttachmentReference to the fragmentDensityMapAttachment field. |
static VkRenderPassFragmentDensityMapCreateInfoEXT |
malloc()
Returns a new
VkRenderPassFragmentDensityMapCreateInfoEXT instance allocated with memAlloc. |
static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer |
malloc(int capacity)
Returns a new
VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer instance allocated with memAlloc. |
static VkRenderPassFragmentDensityMapCreateInfoEXT |
mallocStack()
Returns a new
VkRenderPassFragmentDensityMapCreateInfoEXT instance allocated on the thread-local MemoryStack. |
static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer |
mallocStack(int capacity)
Returns a new
VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer instance allocated on the thread-local MemoryStack. |
static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer instance allocated on the specified MemoryStack. |
static VkRenderPassFragmentDensityMapCreateInfoEXT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkRenderPassFragmentDensityMapCreateInfoEXT instance allocated on the specified MemoryStack. |
static VkAttachmentReference |
nfragmentDensityMapAttachment(long struct)
Unsafe version of
fragmentDensityMapAttachment(). |
static void |
nfragmentDensityMapAttachment(long struct,
VkAttachmentReference value)
Unsafe version of
fragmentDensityMapAttachment. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
long |
pNext()
Returns the value of the
pNext field. |
VkRenderPassFragmentDensityMapCreateInfoEXT |
pNext(long value)
Sets the specified value to the
pNext field. |
VkRenderPassFragmentDensityMapCreateInfoEXT |
set(int sType,
long pNext,
VkAttachmentReference fragmentDensityMapAttachment)
Initializes this struct with the specified values.
|
VkRenderPassFragmentDensityMapCreateInfoEXT |
set(VkRenderPassFragmentDensityMapCreateInfoEXT src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkRenderPassFragmentDensityMapCreateInfoEXT |
sType(int value)
Sets the specified value to the
sType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int FRAGMENTDENSITYMAPATTACHMENT
public VkRenderPassFragmentDensityMapCreateInfoEXT(java.nio.ByteBuffer container)
VkRenderPassFragmentDensityMapCreateInfoEXT instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public VkAttachmentReference fragmentDensityMapAttachment()
VkAttachmentReference view of the fragmentDensityMapAttachment field.public VkRenderPassFragmentDensityMapCreateInfoEXT sType(int value)
sType field.public VkRenderPassFragmentDensityMapCreateInfoEXT pNext(long value)
pNext field.public VkRenderPassFragmentDensityMapCreateInfoEXT fragmentDensityMapAttachment(VkAttachmentReference value)
VkAttachmentReference to the fragmentDensityMapAttachment field.public VkRenderPassFragmentDensityMapCreateInfoEXT fragmentDensityMapAttachment(java.util.function.Consumer<VkAttachmentReference> consumer)
fragmentDensityMapAttachment field to the specified Consumer.public VkRenderPassFragmentDensityMapCreateInfoEXT set(int sType, long pNext, VkAttachmentReference fragmentDensityMapAttachment)
public VkRenderPassFragmentDensityMapCreateInfoEXT set(VkRenderPassFragmentDensityMapCreateInfoEXT src)
src - the source structpublic static VkRenderPassFragmentDensityMapCreateInfoEXT malloc()
VkRenderPassFragmentDensityMapCreateInfoEXT instance allocated with memAlloc. The instance must be explicitly freed.public static VkRenderPassFragmentDensityMapCreateInfoEXT calloc()
VkRenderPassFragmentDensityMapCreateInfoEXT instance allocated with memCalloc. The instance must be explicitly freed.public static VkRenderPassFragmentDensityMapCreateInfoEXT create()
VkRenderPassFragmentDensityMapCreateInfoEXT instance allocated with BufferUtils.public static VkRenderPassFragmentDensityMapCreateInfoEXT create(long address)
VkRenderPassFragmentDensityMapCreateInfoEXT instance for the specified memory address.@Nullable public static VkRenderPassFragmentDensityMapCreateInfoEXT createSafe(long address)
public static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer malloc(int capacity)
VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer calloc(int capacity)
VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer create(int capacity)
VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer create(long address, int capacity)
VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer createSafe(long address, int capacity)
public static VkRenderPassFragmentDensityMapCreateInfoEXT mallocStack()
VkRenderPassFragmentDensityMapCreateInfoEXT instance allocated on the thread-local MemoryStack.public static VkRenderPassFragmentDensityMapCreateInfoEXT callocStack()
VkRenderPassFragmentDensityMapCreateInfoEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkRenderPassFragmentDensityMapCreateInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
VkRenderPassFragmentDensityMapCreateInfoEXT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkRenderPassFragmentDensityMapCreateInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
VkRenderPassFragmentDensityMapCreateInfoEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer mallocStack(int capacity)
VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer callocStack(int capacity)
VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static VkAttachmentReference nfragmentDensityMapAttachment(long struct)
fragmentDensityMapAttachment().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nfragmentDensityMapAttachment(long struct,
VkAttachmentReference value)
fragmentDensityMapAttachment.Copyright LWJGL. All Rights Reserved. License terms.