Package org.lwjgl.vulkan
Class VkPhysicalDeviceFragmentDensityMapPropertiesEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceFragmentDensityMapPropertiesEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkPhysicalDeviceFragmentDensityMapPropertiesEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure describing fragment density map properties that can be supported by an implementation.Valid Usage (Implicit)
If the
VkPhysicalDeviceFragmentDensityMapPropertiesEXT
structure is included in thepNext
chain ofVkPhysicalDeviceProperties2
, it is filled with the implementation-dependent limits and properties.See Also
Member documentation
minFragmentDensityTexelSize
– the minimum fragment density texel size.maxFragmentDensityTexelSize
– the maximum fragment density texel size.fragmentDensityInvocations
– specifies whether the implementation may invoke additional fragment shader invocations for each covered sample.
Layout
struct VkPhysicalDeviceFragmentDensityMapPropertiesEXT { VkStructureType sType; void * pNext;
VkExtent2D
minFragmentDensityTexelSize;VkExtent2D
maxFragmentDensityTexelSize; VkBool32 fragmentDensityInvocations; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer
An array ofVkPhysicalDeviceFragmentDensityMapPropertiesEXT
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
FRAGMENTDENSITYINVOCATIONS
MAXFRAGMENTDENSITYTEXELSIZE
MINFRAGMENTDENSITYTEXELSIZE
PNEXTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceFragmentDensityMapPropertiesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceFragmentDensityMapPropertiesEXT
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 VkPhysicalDeviceFragmentDensityMapPropertiesEXT
calloc()
Returns a newVkPhysicalDeviceFragmentDensityMapPropertiesEXT
instance allocated withmemCalloc
.static VkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer
calloc(int capacity)
Returns a newVkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer
instance allocated withmemCalloc
.static VkPhysicalDeviceFragmentDensityMapPropertiesEXT
callocStack()
Returns a newVkPhysicalDeviceFragmentDensityMapPropertiesEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer
callocStack(int capacity)
Returns a newVkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceFragmentDensityMapPropertiesEXT
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceFragmentDensityMapPropertiesEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceFragmentDensityMapPropertiesEXT
create()
Returns a newVkPhysicalDeviceFragmentDensityMapPropertiesEXT
instance allocated withBufferUtils
.static VkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer
create(int capacity)
Returns a newVkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer
instance allocated withBufferUtils
.static VkPhysicalDeviceFragmentDensityMapPropertiesEXT
create(long address)
Returns a newVkPhysicalDeviceFragmentDensityMapPropertiesEXT
instance for the specified memory address.static VkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer
create(long address, int capacity)
Create aVkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer
instance at the specified memory.static VkPhysicalDeviceFragmentDensityMapPropertiesEXT
createSafe(long address)
static VkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer
createSafe(long address, int capacity)
boolean
fragmentDensityInvocations()
Returns the value of thefragmentDensityInvocations
field.static VkPhysicalDeviceFragmentDensityMapPropertiesEXT
malloc()
Returns a newVkPhysicalDeviceFragmentDensityMapPropertiesEXT
instance allocated withmemAlloc
.static VkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer
malloc(int capacity)
Returns a newVkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer
instance allocated withmemAlloc
.static VkPhysicalDeviceFragmentDensityMapPropertiesEXT
mallocStack()
Returns a newVkPhysicalDeviceFragmentDensityMapPropertiesEXT
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer
mallocStack(int capacity)
Returns a newVkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkPhysicalDeviceFragmentDensityMapPropertiesEXT
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceFragmentDensityMapPropertiesEXT
instance allocated on the specifiedMemoryStack
.VkExtent2D
maxFragmentDensityTexelSize()
Returns aVkExtent2D
view of themaxFragmentDensityTexelSize
field.VkExtent2D
minFragmentDensityTexelSize()
Returns aVkExtent2D
view of theminFragmentDensityTexelSize
field.static int
nfragmentDensityInvocations(long struct)
Unsafe version offragmentDensityInvocations()
.static VkExtent2D
nmaxFragmentDensityTexelSize(long struct)
Unsafe version ofmaxFragmentDensityTexelSize()
.static VkExtent2D
nminFragmentDensityTexelSize(long struct)
Unsafe version ofminFragmentDensityTexelSize()
.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.VkPhysicalDeviceFragmentDensityMapPropertiesEXT
pNext(long value)
Sets the specified value to thepNext
field.VkPhysicalDeviceFragmentDensityMapPropertiesEXT
set(int sType, long pNext)
Initializes this struct with the specified values.VkPhysicalDeviceFragmentDensityMapPropertiesEXT
set(VkPhysicalDeviceFragmentDensityMapPropertiesEXT src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkPhysicalDeviceFragmentDensityMapPropertiesEXT
sType(int value)
Sets the specified value to thesType
field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceFragmentDensityMapPropertiesEXT
public VkPhysicalDeviceFragmentDensityMapPropertiesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceFragmentDensityMapPropertiesEXT
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.
-
minFragmentDensityTexelSize
public VkExtent2D minFragmentDensityTexelSize()
Returns aVkExtent2D
view of theminFragmentDensityTexelSize
field.
-
maxFragmentDensityTexelSize
public VkExtent2D maxFragmentDensityTexelSize()
Returns aVkExtent2D
view of themaxFragmentDensityTexelSize
field.
-
fragmentDensityInvocations
public boolean fragmentDensityInvocations()
Returns the value of thefragmentDensityInvocations
field.
-
sType
public VkPhysicalDeviceFragmentDensityMapPropertiesEXT sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkPhysicalDeviceFragmentDensityMapPropertiesEXT pNext(long value)
Sets the specified value to thepNext
field.
-
set
public VkPhysicalDeviceFragmentDensityMapPropertiesEXT set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceFragmentDensityMapPropertiesEXT set(VkPhysicalDeviceFragmentDensityMapPropertiesEXT src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceFragmentDensityMapPropertiesEXT malloc()
Returns a newVkPhysicalDeviceFragmentDensityMapPropertiesEXT
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceFragmentDensityMapPropertiesEXT calloc()
Returns a newVkPhysicalDeviceFragmentDensityMapPropertiesEXT
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceFragmentDensityMapPropertiesEXT create()
Returns a newVkPhysicalDeviceFragmentDensityMapPropertiesEXT
instance allocated withBufferUtils
.
-
create
public static VkPhysicalDeviceFragmentDensityMapPropertiesEXT create(long address)
Returns a newVkPhysicalDeviceFragmentDensityMapPropertiesEXT
instance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceFragmentDensityMapPropertiesEXT createSafe(long address)
-
malloc
public static VkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer create(int capacity)
Returns a newVkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPhysicalDeviceFragmentDensityMapPropertiesEXT mallocStack()
Returns a newVkPhysicalDeviceFragmentDensityMapPropertiesEXT
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPhysicalDeviceFragmentDensityMapPropertiesEXT callocStack()
Returns a newVkPhysicalDeviceFragmentDensityMapPropertiesEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceFragmentDensityMapPropertiesEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceFragmentDensityMapPropertiesEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceFragmentDensityMapPropertiesEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceFragmentDensityMapPropertiesEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceFragmentDensityMapPropertiesEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceFragmentDensityMapPropertiesEXT.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()
.
-
nminFragmentDensityTexelSize
public static VkExtent2D nminFragmentDensityTexelSize(long struct)
Unsafe version ofminFragmentDensityTexelSize()
.
-
nmaxFragmentDensityTexelSize
public static VkExtent2D nmaxFragmentDensityTexelSize(long struct)
Unsafe version ofmaxFragmentDensityTexelSize()
.
-
nfragmentDensityInvocations
public static int nfragmentDensityInvocations(long struct)
Unsafe version offragmentDensityInvocations()
.
-
nsType
public static void nsType(long struct, int value)
Unsafe version ofsType
.
-
npNext
public static void npNext(long struct, long value)
Unsafe version ofpNext
.
-
-