public class VkPhysicalDeviceSampleLocationsPropertiesEXT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
If the VkPhysicalDeviceSampleLocationsPropertiesEXT structure is included in the pNext chain of VkPhysicalDeviceProperties2, it is filled with the implementation-dependent limits.
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.sampleLocationSampleCounts – a bitmask of VkSampleCountFlagBits indicating the sample counts supporting custom sample locations.maxSampleLocationGridSize – the maximum size of the pixel grid in which sample locations can vary that is supported for all sample counts in sampleLocationSampleCounts.sampleLocationCoordinateRange[2] – the range of supported sample location coordinates.sampleLocationSubPixelBits – the number of bits of subpixel precision for sample locations.variableSampleLocations – specifies whether the sample locations used by all pipelines that will be bound to a command buffer during a subpass must match. If set to TRUE, the implementation supports variable sample locations in a subpass. If set to FALSE, then the sample locations must stay constant in each subpass.
struct VkPhysicalDeviceSampleLocationsPropertiesEXT {
VkStructureType sType;
void * pNext;
VkSampleCountFlags sampleLocationSampleCounts;
VkExtent2D maxSampleLocationGridSize;
float sampleLocationCoordinateRange[2];
uint32_t sampleLocationSubPixelBits;
VkBool32 variableSampleLocations;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer
An array of
VkPhysicalDeviceSampleLocationsPropertiesEXT structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
MAXSAMPLELOCATIONGRIDSIZE
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SAMPLELOCATIONCOORDINATERANGE
The struct member offsets.
|
static int |
SAMPLELOCATIONSAMPLECOUNTS
The struct member offsets.
|
static int |
SAMPLELOCATIONSUBPIXELBITS
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
static int |
VARIABLESAMPLELOCATIONS
The struct member offsets.
|
| Constructor and Description |
|---|
VkPhysicalDeviceSampleLocationsPropertiesEXT(java.nio.ByteBuffer container)
Creates a
VkPhysicalDeviceSampleLocationsPropertiesEXT instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPhysicalDeviceSampleLocationsPropertiesEXT |
calloc()
Returns a new
VkPhysicalDeviceSampleLocationsPropertiesEXT instance allocated with memCalloc. |
static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer |
calloc(int capacity)
Returns a new
VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer instance allocated with memCalloc. |
static VkPhysicalDeviceSampleLocationsPropertiesEXT |
callocStack()
Returns a new
VkPhysicalDeviceSampleLocationsPropertiesEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer |
callocStack(int capacity)
Returns a new
VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceSampleLocationsPropertiesEXT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceSampleLocationsPropertiesEXT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceSampleLocationsPropertiesEXT |
create()
Returns a new
VkPhysicalDeviceSampleLocationsPropertiesEXT instance allocated with BufferUtils. |
static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer |
create(int capacity)
Returns a new
VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer instance allocated with BufferUtils. |
static VkPhysicalDeviceSampleLocationsPropertiesEXT |
create(long address)
Returns a new
VkPhysicalDeviceSampleLocationsPropertiesEXT instance for the specified memory address. |
static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer |
create(long address,
int capacity)
Create a
VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer instance at the specified memory. |
static VkPhysicalDeviceSampleLocationsPropertiesEXT |
createSafe(long address)
|
static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer |
createSafe(long address,
int capacity)
|
static VkPhysicalDeviceSampleLocationsPropertiesEXT |
malloc()
Returns a new
VkPhysicalDeviceSampleLocationsPropertiesEXT instance allocated with memAlloc. |
static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer |
malloc(int capacity)
Returns a new
VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer instance allocated with memAlloc. |
static VkPhysicalDeviceSampleLocationsPropertiesEXT |
mallocStack()
Returns a new
VkPhysicalDeviceSampleLocationsPropertiesEXT instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer |
mallocStack(int capacity)
Returns a new
VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer instance allocated on the specified MemoryStack. |
static VkPhysicalDeviceSampleLocationsPropertiesEXT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceSampleLocationsPropertiesEXT instance allocated on the specified MemoryStack. |
VkExtent2D |
maxSampleLocationGridSize()
Returns a
VkExtent2D view of the maxSampleLocationGridSize field. |
static VkExtent2D |
nmaxSampleLocationGridSize(long struct)
Unsafe version of
maxSampleLocationGridSize(). |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static java.nio.FloatBuffer |
nsampleLocationCoordinateRange(long struct)
Unsafe version of
sampleLocationCoordinateRange(). |
static float |
nsampleLocationCoordinateRange(long struct,
int index)
Unsafe version of
sampleLocationCoordinateRange. |
static int |
nsampleLocationSampleCounts(long struct)
Unsafe version of
sampleLocationSampleCounts(). |
static int |
nsampleLocationSubPixelBits(long struct)
Unsafe version of
sampleLocationSubPixelBits(). |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
static int |
nvariableSampleLocations(long struct)
Unsafe version of
variableSampleLocations(). |
long |
pNext()
Returns the value of the
pNext field. |
VkPhysicalDeviceSampleLocationsPropertiesEXT |
pNext(long value)
Sets the specified value to the
pNext field. |
java.nio.FloatBuffer |
sampleLocationCoordinateRange()
Returns a
FloatBuffer view of the sampleLocationCoordinateRange field. |
float |
sampleLocationCoordinateRange(int index)
Returns the value at the specified index of the
sampleLocationCoordinateRange field. |
int |
sampleLocationSampleCounts()
Returns the value of the
sampleLocationSampleCounts field. |
int |
sampleLocationSubPixelBits()
Returns the value of the
sampleLocationSubPixelBits field. |
VkPhysicalDeviceSampleLocationsPropertiesEXT |
set(int sType,
long pNext)
Initializes this struct with the specified values.
|
VkPhysicalDeviceSampleLocationsPropertiesEXT |
set(VkPhysicalDeviceSampleLocationsPropertiesEXT src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPhysicalDeviceSampleLocationsPropertiesEXT |
sType(int value)
Sets the specified value to the
sType field. |
boolean |
variableSampleLocations()
Returns the value of the
variableSampleLocations 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 SAMPLELOCATIONSAMPLECOUNTS
public static final int MAXSAMPLELOCATIONGRIDSIZE
public static final int SAMPLELOCATIONCOORDINATERANGE
public static final int SAMPLELOCATIONSUBPIXELBITS
public static final int VARIABLESAMPLELOCATIONS
public VkPhysicalDeviceSampleLocationsPropertiesEXT(java.nio.ByteBuffer container)
VkPhysicalDeviceSampleLocationsPropertiesEXT 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 int sampleLocationSampleCounts()
sampleLocationSampleCounts field.public VkExtent2D maxSampleLocationGridSize()
VkExtent2D view of the maxSampleLocationGridSize field.public java.nio.FloatBuffer sampleLocationCoordinateRange()
FloatBuffer view of the sampleLocationCoordinateRange field.public float sampleLocationCoordinateRange(int index)
sampleLocationCoordinateRange field.public int sampleLocationSubPixelBits()
sampleLocationSubPixelBits field.public boolean variableSampleLocations()
variableSampleLocations field.public VkPhysicalDeviceSampleLocationsPropertiesEXT sType(int value)
sType field.public VkPhysicalDeviceSampleLocationsPropertiesEXT pNext(long value)
pNext field.public VkPhysicalDeviceSampleLocationsPropertiesEXT set(int sType, long pNext)
public VkPhysicalDeviceSampleLocationsPropertiesEXT set(VkPhysicalDeviceSampleLocationsPropertiesEXT src)
src - the source structpublic static VkPhysicalDeviceSampleLocationsPropertiesEXT malloc()
VkPhysicalDeviceSampleLocationsPropertiesEXT instance allocated with memAlloc. The instance must be explicitly freed.public static VkPhysicalDeviceSampleLocationsPropertiesEXT calloc()
VkPhysicalDeviceSampleLocationsPropertiesEXT instance allocated with memCalloc. The instance must be explicitly freed.public static VkPhysicalDeviceSampleLocationsPropertiesEXT create()
VkPhysicalDeviceSampleLocationsPropertiesEXT instance allocated with BufferUtils.public static VkPhysicalDeviceSampleLocationsPropertiesEXT create(long address)
VkPhysicalDeviceSampleLocationsPropertiesEXT instance for the specified memory address.@Nullable public static VkPhysicalDeviceSampleLocationsPropertiesEXT createSafe(long address)
public static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer malloc(int capacity)
VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer calloc(int capacity)
VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer create(int capacity)
VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer create(long address, int capacity)
VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer createSafe(long address, int capacity)
public static VkPhysicalDeviceSampleLocationsPropertiesEXT mallocStack()
VkPhysicalDeviceSampleLocationsPropertiesEXT instance allocated on the thread-local MemoryStack.public static VkPhysicalDeviceSampleLocationsPropertiesEXT callocStack()
VkPhysicalDeviceSampleLocationsPropertiesEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPhysicalDeviceSampleLocationsPropertiesEXT mallocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceSampleLocationsPropertiesEXT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPhysicalDeviceSampleLocationsPropertiesEXT callocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceSampleLocationsPropertiesEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer mallocStack(int capacity)
VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer callocStack(int capacity)
VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceSampleLocationsPropertiesEXT.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 int nsampleLocationSampleCounts(long struct)
sampleLocationSampleCounts().public static VkExtent2D nmaxSampleLocationGridSize(long struct)
maxSampleLocationGridSize().public static java.nio.FloatBuffer nsampleLocationCoordinateRange(long struct)
sampleLocationCoordinateRange().public static float nsampleLocationCoordinateRange(long struct,
int index)
sampleLocationCoordinateRange.public static int nsampleLocationSubPixelBits(long struct)
sampleLocationSubPixelBits().public static int nvariableSampleLocations(long struct)
variableSampleLocations().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.Copyright LWJGL. All Rights Reserved. License terms.