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.NativeResource
Structure 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
CmdBeginRenderPass
if the attachment's image view was not created withflags
containingIMAGE_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
fragmentDensityMapAttachment
was given asATTACHMENT_UNUSED
.Valid Usage
- If
fragmentDensityMapAttachment
is notATTACHMENT_UNUSED
,fragmentDensityMapAttachment
must be less thanVkRenderPassCreateInfo
::attachmentCount
- If
fragmentDensityMapAttachment
is notATTACHMENT_UNUSED
,fragmentDensityMapAttachment
must not be an element ofVkSubpassDescription
::pInputAttachments
,VkSubpassDescription
::pColorAttachments
,VkSubpassDescription
::pResolveAttachments
,VkSubpassDescription
::pDepthStencilAttachment
, orVkSubpassDescription
::pPreserveAttachments
for any subpass - If
fragmentDensityMapAttachment
is notATTACHMENT_UNUSED
,layout
must be equal toIMAGE_LAYOUT_FRAGMENT_DENSITY_MAP_OPTIMAL_EXT
, orIMAGE_LAYOUT_GENERAL
- If
fragmentDensityMapAttachment
is notATTACHMENT_UNUSED
,fragmentDensityMapAttachment
must reference an attachment with aloadOp
equal toATTACHMENT_LOAD_OP_LOAD
orATTACHMENT_LOAD_OP_DONT_CARE
. - If
fragmentDensityMapAttachment
is notATTACHMENT_UNUSED
,fragmentDensityMapAttachment
must reference an attachment with astoreOp
equal toATTACHMENT_STORE_OP_DONT_CARE
.
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_RENDER_PASS_FRAGMENT_DENSITY_MAP_CREATE_INFO_EXT
fragmentDensityMapAttachment
must be a validVkAttachmentReference
structure
See Also
Member documentation
sType
– 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.
Layout
struct VkRenderPassFragmentDensityMapCreateInfoEXT { VkStructureType sType; void const * pNext;
VkAttachmentReference
fragmentDensityMapAttachment; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer
An array ofVkRenderPassFragmentDensityMapCreateInfoEXT
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
FRAGMENTDENSITYMAPATTACHMENT
PNEXTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkRenderPassFragmentDensityMapCreateInfoEXT(java.nio.ByteBuffer container)
Creates aVkRenderPassFragmentDensityMapCreateInfoEXT
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkRenderPassFragmentDensityMapCreateInfoEXT
calloc()
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT
instance allocated withmemCalloc
.static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer
calloc(int capacity)
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT.Buffer
instance allocated withmemCalloc
.static VkRenderPassFragmentDensityMapCreateInfoEXT
callocStack()
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer
callocStack(int capacity)
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkRenderPassFragmentDensityMapCreateInfoEXT
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkRenderPassFragmentDensityMapCreateInfoEXT
create()
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT
instance allocated withBufferUtils
.static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer
create(int capacity)
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT.Buffer
instance allocated withBufferUtils
.static VkRenderPassFragmentDensityMapCreateInfoEXT
create(long address)
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT
instance for the specified memory address.static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer
create(long address, int capacity)
Create aVkRenderPassFragmentDensityMapCreateInfoEXT.Buffer
instance at the specified memory.static VkRenderPassFragmentDensityMapCreateInfoEXT
createSafe(long address)
static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer
createSafe(long address, int capacity)
VkAttachmentReference
fragmentDensityMapAttachment()
Returns aVkAttachmentReference
view of thefragmentDensityMapAttachment
field.VkRenderPassFragmentDensityMapCreateInfoEXT
fragmentDensityMapAttachment(java.util.function.Consumer<VkAttachmentReference> consumer)
Passes thefragmentDensityMapAttachment
field to the specifiedConsumer
.VkRenderPassFragmentDensityMapCreateInfoEXT
fragmentDensityMapAttachment(VkAttachmentReference value)
Copies the specifiedVkAttachmentReference
to thefragmentDensityMapAttachment
field.static VkRenderPassFragmentDensityMapCreateInfoEXT
malloc()
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT
instance allocated withmemAlloc
.static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer
malloc(int capacity)
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT.Buffer
instance allocated withmemAlloc
.static VkRenderPassFragmentDensityMapCreateInfoEXT
mallocStack()
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT
instance allocated on the thread-localMemoryStack
.static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer
mallocStack(int capacity)
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
.static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkRenderPassFragmentDensityMapCreateInfoEXT
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT
instance allocated on the specifiedMemoryStack
.static VkAttachmentReference
nfragmentDensityMapAttachment(long struct)
Unsafe version offragmentDensityMapAttachment()
.static void
nfragmentDensityMapAttachment(long struct, VkAttachmentReference value)
Unsafe version offragmentDensityMapAttachment
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.long
pNext()
Returns the value of thepNext
field.VkRenderPassFragmentDensityMapCreateInfoEXT
pNext(long value)
Sets the specified value to thepNext
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 thesType
field.VkRenderPassFragmentDensityMapCreateInfoEXT
sType(int value)
Sets the specified value to thesType
field.
-
-
-
Constructor Detail
-
VkRenderPassFragmentDensityMapCreateInfoEXT
public VkRenderPassFragmentDensityMapCreateInfoEXT(java.nio.ByteBuffer container)
Creates aVkRenderPassFragmentDensityMapCreateInfoEXT
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.
-
fragmentDensityMapAttachment
public VkAttachmentReference fragmentDensityMapAttachment()
Returns aVkAttachmentReference
view of thefragmentDensityMapAttachment
field.
-
sType
public VkRenderPassFragmentDensityMapCreateInfoEXT sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkRenderPassFragmentDensityMapCreateInfoEXT pNext(long value)
Sets the specified value to thepNext
field.
-
fragmentDensityMapAttachment
public VkRenderPassFragmentDensityMapCreateInfoEXT fragmentDensityMapAttachment(VkAttachmentReference value)
Copies the specifiedVkAttachmentReference
to 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 newVkRenderPassFragmentDensityMapCreateInfoEXT
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkRenderPassFragmentDensityMapCreateInfoEXT calloc()
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkRenderPassFragmentDensityMapCreateInfoEXT create()
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT
instance allocated withBufferUtils
.
-
create
public static VkRenderPassFragmentDensityMapCreateInfoEXT create(long address)
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT
instance for the specified memory address.
-
createSafe
@Nullable public static VkRenderPassFragmentDensityMapCreateInfoEXT createSafe(long address)
-
malloc
public static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer malloc(int capacity)
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer calloc(int capacity)
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer create(int capacity)
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer create(long address, int capacity)
Create aVkRenderPassFragmentDensityMapCreateInfoEXT.Buffer
instance 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 newVkRenderPassFragmentDensityMapCreateInfoEXT
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkRenderPassFragmentDensityMapCreateInfoEXT callocStack()
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkRenderPassFragmentDensityMapCreateInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkRenderPassFragmentDensityMapCreateInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkRenderPassFragmentDensityMapCreateInfoEXT.Buffer callocStack(int capacity)
Returns a newVkRenderPassFragmentDensityMapCreateInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.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()
.
-
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
.
-
-