Package org.lwjgl.vulkan
Class VkPhysicalDeviceFragmentDensityMapFeaturesEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceFragmentDensityMapFeaturesEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkPhysicalDeviceFragmentDensityMapFeaturesEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure describing fragment density map features that can be supported by an implementation.Description
If the
VkPhysicalDeviceFragmentDensityMapFeaturesEXT
structure is included in thepNext
chain ofVkPhysicalDeviceFeatures2
, it is filled with values indicating whether each feature is supported.VkPhysicalDeviceFragmentDensityMapFeaturesEXT
can also be used inpNext
chain ofVkDeviceCreateInfo
to enable the features.Valid Usage (Implicit)
Member documentation
fragmentDensityMap
– specifies whether the implementation supports render passes with a fragment density map attachment. If this feature is not enabled and thepNext
chain ofVkRenderPassCreateInfo
containsVkRenderPassFragmentDensityMapCreateInfoEXT
,fragmentDensityMapAttachment
must beATTACHMENT_UNUSED
.fragmentDensityMapDynamic
– specifies whether the implementation supports dynamic fragment density map image views. If this feature is not enabled,IMAGE_VIEW_CREATE_FRAGMENT_DENSITY_MAP_DYNAMIC_BIT_EXT
must not be included inVkImageViewCreateInfo
::flags
.fragmentDensityMapNonSubsampledImages
– specifies whether the implementation supports regular non-subsampled image attachments with fragment density map render passes. If this feature is not enabled, render passes with a fragment density map attachment must only have subsampled attachments bound.
Layout
struct VkPhysicalDeviceFragmentDensityMapFeaturesEXT { VkStructureType sType; void * pNext; VkBool32 fragmentDensityMap; VkBool32 fragmentDensityMapDynamic; VkBool32 fragmentDensityMapNonSubsampledImages; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer
An array ofVkPhysicalDeviceFragmentDensityMapFeaturesEXT
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
FRAGMENTDENSITYMAP
FRAGMENTDENSITYMAPDYNAMIC
FRAGMENTDENSITYMAPNONSUBSAMPLEDIMAGES
PNEXTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceFragmentDensityMapFeaturesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceFragmentDensityMapFeaturesEXT
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 VkPhysicalDeviceFragmentDensityMapFeaturesEXT
calloc()
Returns a newVkPhysicalDeviceFragmentDensityMapFeaturesEXT
instance allocated withmemCalloc
.static VkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer
calloc(int capacity)
Returns a newVkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer
instance allocated withmemCalloc
.static VkPhysicalDeviceFragmentDensityMapFeaturesEXT
callocStack()
Returns a newVkPhysicalDeviceFragmentDensityMapFeaturesEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer
callocStack(int capacity)
Returns a newVkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceFragmentDensityMapFeaturesEXT
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceFragmentDensityMapFeaturesEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceFragmentDensityMapFeaturesEXT
create()
Returns a newVkPhysicalDeviceFragmentDensityMapFeaturesEXT
instance allocated withBufferUtils
.static VkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer
create(int capacity)
Returns a newVkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer
instance allocated withBufferUtils
.static VkPhysicalDeviceFragmentDensityMapFeaturesEXT
create(long address)
Returns a newVkPhysicalDeviceFragmentDensityMapFeaturesEXT
instance for the specified memory address.static VkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer
create(long address, int capacity)
Create aVkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer
instance at the specified memory.static VkPhysicalDeviceFragmentDensityMapFeaturesEXT
createSafe(long address)
static VkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer
createSafe(long address, int capacity)
boolean
fragmentDensityMap()
Returns the value of thefragmentDensityMap
field.boolean
fragmentDensityMapDynamic()
Returns the value of thefragmentDensityMapDynamic
field.boolean
fragmentDensityMapNonSubsampledImages()
Returns the value of thefragmentDensityMapNonSubsampledImages
field.static VkPhysicalDeviceFragmentDensityMapFeaturesEXT
malloc()
Returns a newVkPhysicalDeviceFragmentDensityMapFeaturesEXT
instance allocated withmemAlloc
.static VkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer
malloc(int capacity)
Returns a newVkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer
instance allocated withmemAlloc
.static VkPhysicalDeviceFragmentDensityMapFeaturesEXT
mallocStack()
Returns a newVkPhysicalDeviceFragmentDensityMapFeaturesEXT
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer
mallocStack(int capacity)
Returns a newVkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkPhysicalDeviceFragmentDensityMapFeaturesEXT
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceFragmentDensityMapFeaturesEXT
instance allocated on the specifiedMemoryStack
.static int
nfragmentDensityMap(long struct)
Unsafe version offragmentDensityMap()
.static int
nfragmentDensityMapDynamic(long struct)
Unsafe version offragmentDensityMapDynamic()
.static int
nfragmentDensityMapNonSubsampledImages(long struct)
Unsafe version offragmentDensityMapNonSubsampledImages()
.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.VkPhysicalDeviceFragmentDensityMapFeaturesEXT
pNext(long value)
Sets the specified value to thepNext
field.VkPhysicalDeviceFragmentDensityMapFeaturesEXT
set(int sType, long pNext)
Initializes this struct with the specified values.VkPhysicalDeviceFragmentDensityMapFeaturesEXT
set(VkPhysicalDeviceFragmentDensityMapFeaturesEXT src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkPhysicalDeviceFragmentDensityMapFeaturesEXT
sType(int value)
Sets the specified value to thesType
field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceFragmentDensityMapFeaturesEXT
public VkPhysicalDeviceFragmentDensityMapFeaturesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceFragmentDensityMapFeaturesEXT
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.
-
fragmentDensityMap
public boolean fragmentDensityMap()
Returns the value of thefragmentDensityMap
field.
-
fragmentDensityMapDynamic
public boolean fragmentDensityMapDynamic()
Returns the value of thefragmentDensityMapDynamic
field.
-
fragmentDensityMapNonSubsampledImages
public boolean fragmentDensityMapNonSubsampledImages()
Returns the value of thefragmentDensityMapNonSubsampledImages
field.
-
sType
public VkPhysicalDeviceFragmentDensityMapFeaturesEXT sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkPhysicalDeviceFragmentDensityMapFeaturesEXT pNext(long value)
Sets the specified value to thepNext
field.
-
set
public VkPhysicalDeviceFragmentDensityMapFeaturesEXT set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceFragmentDensityMapFeaturesEXT set(VkPhysicalDeviceFragmentDensityMapFeaturesEXT src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceFragmentDensityMapFeaturesEXT malloc()
Returns a newVkPhysicalDeviceFragmentDensityMapFeaturesEXT
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceFragmentDensityMapFeaturesEXT calloc()
Returns a newVkPhysicalDeviceFragmentDensityMapFeaturesEXT
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceFragmentDensityMapFeaturesEXT create()
Returns a newVkPhysicalDeviceFragmentDensityMapFeaturesEXT
instance allocated withBufferUtils
.
-
create
public static VkPhysicalDeviceFragmentDensityMapFeaturesEXT create(long address)
Returns a newVkPhysicalDeviceFragmentDensityMapFeaturesEXT
instance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceFragmentDensityMapFeaturesEXT createSafe(long address)
-
malloc
public static VkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer create(int capacity)
Returns a newVkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPhysicalDeviceFragmentDensityMapFeaturesEXT mallocStack()
Returns a newVkPhysicalDeviceFragmentDensityMapFeaturesEXT
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPhysicalDeviceFragmentDensityMapFeaturesEXT callocStack()
Returns a newVkPhysicalDeviceFragmentDensityMapFeaturesEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceFragmentDensityMapFeaturesEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceFragmentDensityMapFeaturesEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceFragmentDensityMapFeaturesEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceFragmentDensityMapFeaturesEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceFragmentDensityMapFeaturesEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceFragmentDensityMapFeaturesEXT.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()
.
-
nfragmentDensityMap
public static int nfragmentDensityMap(long struct)
Unsafe version offragmentDensityMap()
.
-
nfragmentDensityMapDynamic
public static int nfragmentDensityMapDynamic(long struct)
Unsafe version offragmentDensityMapDynamic()
.
-
nfragmentDensityMapNonSubsampledImages
public static int nfragmentDensityMapNonSubsampledImages(long struct)
Unsafe version offragmentDensityMapNonSubsampledImages()
.
-
nsType
public static void nsType(long struct, int value)
Unsafe version ofsType
.
-
npNext
public static void npNext(long struct, long value)
Unsafe version ofpNext
.
-
-