Package org.lwjgl.vulkan
Class VkSubpassFragmentDensityMapOffsetEndInfoQCOM
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkSubpassFragmentDensityMapOffsetEndInfoQCOM
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkSubpassFragmentDensityMapOffsetEndInfoQCOM extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying fragment density map offset subpass end information.Description
The array elements are given per
layeras defined by Fetch Density Value, whereindex = layer. Each(x,y)offset is in framebuffer pixels and shifts the fetch of the fragment density map by that amount. Offsets can be positive or negative.Offset values specified for any subpass that is not the last subpass in the render pass are ignored. If the
VkSubpassEndInfo::pNextchain for the last subpass of a renderpass does not includeVkSubpassFragmentDensityMapOffsetEndInfoQCOM, or iffragmentDensityOffsetCountis zero, then the offset(0,0)is used for Fetch Density Value.Valid Usage
- If the
fragmentDensityMapOffsetsfeature is not enabled or fragment density map is not enabled in the render pass,fragmentDensityOffsetCountmust equal 0. - If
VkSubpassDescription::fragmentDensityMapAttachmentis not is notATTACHMENT_UNUSEDand was not created withIMAGE_CREATE_FRAGMENT_DENSITY_MAP_OFFSET_BIT_QCOM,fragmentDensityOffsetCountmust equal 0. - If
VkSubpassDescription::pDepthStencilAttachmentis not is notATTACHMENT_UNUSEDand was not created withIMAGE_CREATE_FRAGMENT_DENSITY_MAP_OFFSET_BIT_QCOM,fragmentDensityOffsetCountmust equal 0. - If any element of
VkSubpassDescription::pInputAttachmentsis not is notATTACHMENT_UNUSEDand was not created withIMAGE_CREATE_FRAGMENT_DENSITY_MAP_OFFSET_BIT_QCOM,fragmentDensityOffsetCountmust equal 0. - If any element of
VkSubpassDescription::pColorAttachmentsis not is notATTACHMENT_UNUSEDand was not created withIMAGE_CREATE_FRAGMENT_DENSITY_MAP_OFFSET_BIT_QCOM,fragmentDensityOffsetCountmust equal 0. - If any element of
VkSubpassDescription::pResolveAttachmentsis not is notATTACHMENT_UNUSEDand was not created withIMAGE_CREATE_FRAGMENT_DENSITY_MAP_OFFSET_BIT_QCOM,fragmentDensityOffsetCountmust equal 0. - If any element of
VkSubpassDescription::pPreserveAttachmentsis not is notATTACHMENT_UNUSEDand was not created withIMAGE_CREATE_FRAGMENT_DENSITY_MAP_OFFSET_BIT_QCOM,fragmentDensityOffsetCountmust equal 0. - If
fragmentDensityOffsetCountis not 0 and multiview is enabled for the render pass,fragmentDensityOffsetCountmust equal thelayerCountthat was specified in creating the fragment density map attachment view. - If
fragmentDensityOffsetCountis not 0 and multiview is not enabled for the render pass,fragmentDensityOffsetCountmust equal 1. - The
xcomponent of each element ofpFragmentDensityOffsetsmust be an integer multiple offragmentDensityOffsetGranularity.width. - The
ycomponent of each element ofpFragmentDensityOffsetsmust be an integer multiple offragmentDensityOffsetGranularity.height.
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_SUBPASS_FRAGMENT_DENSITY_MAP_OFFSET_END_INFO_QCOM- If
fragmentDensityOffsetCountis not 0,pFragmentDensityOffsetsmust be a valid pointer to an array offragmentDensityOffsetCountVkOffset2Dstructures
See Also
Layout
struct VkSubpassFragmentDensityMapOffsetEndInfoQCOM { VkStructureTypesType(); void const *pNext(); uint32_tfragmentDensityOffsetCount();VkOffset2Dconst *pFragmentDensityOffsets(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkSubpassFragmentDensityMapOffsetEndInfoQCOM.BufferAn array ofVkSubpassFragmentDensityMapOffsetEndInfoQCOMstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intFRAGMENTDENSITYOFFSETCOUNT
PFRAGMENTDENSITYOFFSETS
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkSubpassFragmentDensityMapOffsetEndInfoQCOM(java.nio.ByteBuffer container)Creates aVkSubpassFragmentDensityMapOffsetEndInfoQCOMinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkSubpassFragmentDensityMapOffsetEndInfoQCOMcalloc()Returns a newVkSubpassFragmentDensityMapOffsetEndInfoQCOMinstance allocated withmemCalloc.static VkSubpassFragmentDensityMapOffsetEndInfoQCOM.Buffercalloc(int capacity)Returns a newVkSubpassFragmentDensityMapOffsetEndInfoQCOM.Bufferinstance allocated withmemCalloc.static VkSubpassFragmentDensityMapOffsetEndInfoQCOM.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSubpassFragmentDensityMapOffsetEndInfoQCOM.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSubpassFragmentDensityMapOffsetEndInfoQCOMcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkSubpassFragmentDensityMapOffsetEndInfoQCOMinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSubpassFragmentDensityMapOffsetEndInfoQCOMcreate()Returns a newVkSubpassFragmentDensityMapOffsetEndInfoQCOMinstance allocated withBufferUtils.static VkSubpassFragmentDensityMapOffsetEndInfoQCOM.Buffercreate(int capacity)Returns a newVkSubpassFragmentDensityMapOffsetEndInfoQCOM.Bufferinstance allocated withBufferUtils.static VkSubpassFragmentDensityMapOffsetEndInfoQCOMcreate(long address)Returns a newVkSubpassFragmentDensityMapOffsetEndInfoQCOMinstance for the specified memory address.static VkSubpassFragmentDensityMapOffsetEndInfoQCOM.Buffercreate(long address, int capacity)Create aVkSubpassFragmentDensityMapOffsetEndInfoQCOM.Bufferinstance at the specified memory.static VkSubpassFragmentDensityMapOffsetEndInfoQCOMcreateSafe(long address)static VkSubpassFragmentDensityMapOffsetEndInfoQCOM.BuffercreateSafe(long address, int capacity)intfragmentDensityOffsetCount()the number of offsets being specified.static VkSubpassFragmentDensityMapOffsetEndInfoQCOMmalloc()Returns a newVkSubpassFragmentDensityMapOffsetEndInfoQCOMinstance allocated withmemAlloc.static VkSubpassFragmentDensityMapOffsetEndInfoQCOM.Buffermalloc(int capacity)Returns a newVkSubpassFragmentDensityMapOffsetEndInfoQCOM.Bufferinstance allocated withmemAlloc.static VkSubpassFragmentDensityMapOffsetEndInfoQCOM.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSubpassFragmentDensityMapOffsetEndInfoQCOM.Bufferinstance allocated on the specifiedMemoryStack.static VkSubpassFragmentDensityMapOffsetEndInfoQCOMmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkSubpassFragmentDensityMapOffsetEndInfoQCOMinstance allocated on the specifiedMemoryStack.static intnfragmentDensityOffsetCount(long struct)Unsafe version offragmentDensityOffsetCount().static voidnfragmentDensityOffsetCount(long struct, int value)Sets the specified value to thefragmentDensityOffsetCountfield of the specifiedstruct.static VkOffset2D.BuffernpFragmentDensityOffsets(long struct)Unsafe version ofpFragmentDensityOffsets().static voidnpFragmentDensityOffsets(long struct, VkOffset2D.Buffer value)Unsafe version ofpFragmentDensityOffsets.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.VkOffset2D.BufferpFragmentDensityOffsets()a pointer to an array ofVkOffset2Dstructs, each of which describes the offset per layer.VkSubpassFragmentDensityMapOffsetEndInfoQCOMpFragmentDensityOffsets(VkOffset2D.Buffer value)Sets the address of the specifiedVkOffset2D.Bufferto thepFragmentDensityOffsets()field.longpNext()NULLor a pointer to a structure extending this structure.VkSubpassFragmentDensityMapOffsetEndInfoQCOMpNext(long value)Sets the specified value to thepNext()field.VkSubpassFragmentDensityMapOffsetEndInfoQCOMset(int sType, long pNext, VkOffset2D.Buffer pFragmentDensityOffsets)Initializes this struct with the specified values.VkSubpassFragmentDensityMapOffsetEndInfoQCOMset(VkSubpassFragmentDensityMapOffsetEndInfoQCOM src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkSubpassFragmentDensityMapOffsetEndInfoQCOMsType(int value)Sets the specified value to thesType()field.VkSubpassFragmentDensityMapOffsetEndInfoQCOMsType$Default()Sets theSTRUCTURE_TYPE_SUBPASS_FRAGMENT_DENSITY_MAP_OFFSET_END_INFO_QCOMvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
VkSubpassFragmentDensityMapOffsetEndInfoQCOM
public VkSubpassFragmentDensityMapOffsetEndInfoQCOM(java.nio.ByteBuffer container)
Creates aVkSubpassFragmentDensityMapOffsetEndInfoQCOMinstance 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.
-
fragmentDensityOffsetCount
public int fragmentDensityOffsetCount()
the number of offsets being specified.
-
pFragmentDensityOffsets
@Nullable public VkOffset2D.Buffer pFragmentDensityOffsets()
a pointer to an array ofVkOffset2Dstructs, each of which describes the offset per layer.
-
sType
public VkSubpassFragmentDensityMapOffsetEndInfoQCOM sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkSubpassFragmentDensityMapOffsetEndInfoQCOM sType$Default()
Sets theSTRUCTURE_TYPE_SUBPASS_FRAGMENT_DENSITY_MAP_OFFSET_END_INFO_QCOMvalue to thesType()field.
-
pNext
public VkSubpassFragmentDensityMapOffsetEndInfoQCOM pNext(long value)
Sets the specified value to thepNext()field.
-
pFragmentDensityOffsets
public VkSubpassFragmentDensityMapOffsetEndInfoQCOM pFragmentDensityOffsets(@Nullable VkOffset2D.Buffer value)
Sets the address of the specifiedVkOffset2D.Bufferto thepFragmentDensityOffsets()field.
-
set
public VkSubpassFragmentDensityMapOffsetEndInfoQCOM set(int sType, long pNext, @Nullable VkOffset2D.Buffer pFragmentDensityOffsets)
Initializes this struct with the specified values.
-
set
public VkSubpassFragmentDensityMapOffsetEndInfoQCOM set(VkSubpassFragmentDensityMapOffsetEndInfoQCOM src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkSubpassFragmentDensityMapOffsetEndInfoQCOM malloc()
Returns a newVkSubpassFragmentDensityMapOffsetEndInfoQCOMinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkSubpassFragmentDensityMapOffsetEndInfoQCOM calloc()
Returns a newVkSubpassFragmentDensityMapOffsetEndInfoQCOMinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkSubpassFragmentDensityMapOffsetEndInfoQCOM create()
Returns a newVkSubpassFragmentDensityMapOffsetEndInfoQCOMinstance allocated withBufferUtils.
-
create
public static VkSubpassFragmentDensityMapOffsetEndInfoQCOM create(long address)
Returns a newVkSubpassFragmentDensityMapOffsetEndInfoQCOMinstance for the specified memory address.
-
createSafe
@Nullable public static VkSubpassFragmentDensityMapOffsetEndInfoQCOM createSafe(long address)
-
malloc
public static VkSubpassFragmentDensityMapOffsetEndInfoQCOM.Buffer malloc(int capacity)
Returns a newVkSubpassFragmentDensityMapOffsetEndInfoQCOM.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkSubpassFragmentDensityMapOffsetEndInfoQCOM.Buffer calloc(int capacity)
Returns a newVkSubpassFragmentDensityMapOffsetEndInfoQCOM.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkSubpassFragmentDensityMapOffsetEndInfoQCOM.Buffer create(int capacity)
Returns a newVkSubpassFragmentDensityMapOffsetEndInfoQCOM.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkSubpassFragmentDensityMapOffsetEndInfoQCOM.Buffer create(long address, int capacity)
Create aVkSubpassFragmentDensityMapOffsetEndInfoQCOM.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkSubpassFragmentDensityMapOffsetEndInfoQCOM.Buffer createSafe(long address, int capacity)
-
malloc
public static VkSubpassFragmentDensityMapOffsetEndInfoQCOM malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassFragmentDensityMapOffsetEndInfoQCOMinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkSubpassFragmentDensityMapOffsetEndInfoQCOM calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassFragmentDensityMapOffsetEndInfoQCOMinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkSubpassFragmentDensityMapOffsetEndInfoQCOM.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassFragmentDensityMapOffsetEndInfoQCOM.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkSubpassFragmentDensityMapOffsetEndInfoQCOM.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassFragmentDensityMapOffsetEndInfoQCOM.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().
-
nfragmentDensityOffsetCount
public static int nfragmentDensityOffsetCount(long struct)
Unsafe version offragmentDensityOffsetCount().
-
npFragmentDensityOffsets
@Nullable public static VkOffset2D.Buffer npFragmentDensityOffsets(long struct)
Unsafe version ofpFragmentDensityOffsets().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nfragmentDensityOffsetCount
public static void nfragmentDensityOffsetCount(long struct, int value)Sets the specified value to thefragmentDensityOffsetCountfield of the specifiedstruct.
-
npFragmentDensityOffsets
public static void npFragmentDensityOffsets(long struct, @Nullable VkOffset2D.Buffer value)Unsafe version ofpFragmentDensityOffsets.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-