Package org.lwjgl.vulkan
Class VkPhysicalDeviceSampleLocationsPropertiesEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceSampleLocationsPropertiesEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkPhysicalDeviceSampleLocationsPropertiesEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure describing sample location limits that can be supported by an implementation.Description
If the
VkPhysicalDeviceSampleLocationsPropertiesEXT
structure is included in thepNext
chain ofVkPhysicalDeviceProperties2
, it is filled with the implementation-dependent limits.Valid Usage (Implicit)
See Also
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.sampleLocationSampleCounts
– a bitmask ofVkSampleCountFlagBits
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 insampleLocationSampleCounts
.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 toTRUE
, the implementation supports variable sample locations in a subpass. If set toFALSE
, then the sample locations must stay constant in each subpass.
Layout
struct VkPhysicalDeviceSampleLocationsPropertiesEXT { VkStructureType sType; void * pNext; VkSampleCountFlags sampleLocationSampleCounts;
VkExtent2D
maxSampleLocationGridSize; float sampleLocationCoordinateRange[2]; uint32_t sampleLocationSubPixelBits; VkBool32 variableSampleLocations; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer
An array ofVkPhysicalDeviceSampleLocationsPropertiesEXT
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
MAXSAMPLELOCATIONGRIDSIZE
PNEXT
SAMPLELOCATIONCOORDINATERANGE
SAMPLELOCATIONSAMPLECOUNTS
SAMPLELOCATIONSUBPIXELBITSThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
VARIABLESAMPLELOCATIONSThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceSampleLocationsPropertiesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceSampleLocationsPropertiesEXT
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 VkPhysicalDeviceSampleLocationsPropertiesEXT
calloc()
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT
instance allocated withmemCalloc
.static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer
calloc(int capacity)
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer
instance allocated withmemCalloc
.static VkPhysicalDeviceSampleLocationsPropertiesEXT
callocStack()
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer
callocStack(int capacity)
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceSampleLocationsPropertiesEXT
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceSampleLocationsPropertiesEXT
create()
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT
instance allocated withBufferUtils
.static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer
create(int capacity)
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer
instance allocated withBufferUtils
.static VkPhysicalDeviceSampleLocationsPropertiesEXT
create(long address)
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT
instance for the specified memory address.static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer
create(long address, int capacity)
Create aVkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer
instance at the specified memory.static VkPhysicalDeviceSampleLocationsPropertiesEXT
createSafe(long address)
static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer
createSafe(long address, int capacity)
static VkPhysicalDeviceSampleLocationsPropertiesEXT
malloc()
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT
instance allocated withmemAlloc
.static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer
malloc(int capacity)
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer
instance allocated withmemAlloc
.static VkPhysicalDeviceSampleLocationsPropertiesEXT
mallocStack()
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer
mallocStack(int capacity)
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkPhysicalDeviceSampleLocationsPropertiesEXT
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT
instance allocated on the specifiedMemoryStack
.VkExtent2D
maxSampleLocationGridSize()
Returns aVkExtent2D
view of themaxSampleLocationGridSize
field.static VkExtent2D
nmaxSampleLocationGridSize(long struct)
Unsafe version ofmaxSampleLocationGridSize()
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static java.nio.FloatBuffer
nsampleLocationCoordinateRange(long struct)
Unsafe version ofsampleLocationCoordinateRange()
.static float
nsampleLocationCoordinateRange(long struct, int index)
Unsafe version ofsampleLocationCoordinateRange
.static int
nsampleLocationSampleCounts(long struct)
Unsafe version ofsampleLocationSampleCounts()
.static int
nsampleLocationSubPixelBits(long struct)
Unsafe version ofsampleLocationSubPixelBits()
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.static int
nvariableSampleLocations(long struct)
Unsafe version ofvariableSampleLocations()
.long
pNext()
Returns the value of thepNext
field.VkPhysicalDeviceSampleLocationsPropertiesEXT
pNext(long value)
Sets the specified value to thepNext
field.java.nio.FloatBuffer
sampleLocationCoordinateRange()
Returns aFloatBuffer
view of thesampleLocationCoordinateRange
field.float
sampleLocationCoordinateRange(int index)
Returns the value at the specified index of thesampleLocationCoordinateRange
field.int
sampleLocationSampleCounts()
Returns the value of thesampleLocationSampleCounts
field.int
sampleLocationSubPixelBits()
Returns the value of thesampleLocationSubPixelBits
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 thesType
field.VkPhysicalDeviceSampleLocationsPropertiesEXT
sType(int value)
Sets the specified value to thesType
field.boolean
variableSampleLocations()
Returns the value of thevariableSampleLocations
field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceSampleLocationsPropertiesEXT
public VkPhysicalDeviceSampleLocationsPropertiesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceSampleLocationsPropertiesEXT
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.
-
sampleLocationSampleCounts
public int sampleLocationSampleCounts()
Returns the value of thesampleLocationSampleCounts
field.
-
maxSampleLocationGridSize
public VkExtent2D maxSampleLocationGridSize()
Returns aVkExtent2D
view of themaxSampleLocationGridSize
field.
-
sampleLocationCoordinateRange
public java.nio.FloatBuffer sampleLocationCoordinateRange()
Returns aFloatBuffer
view of thesampleLocationCoordinateRange
field.
-
sampleLocationCoordinateRange
public float sampleLocationCoordinateRange(int index)
Returns the value at the specified index of thesampleLocationCoordinateRange
field.
-
sampleLocationSubPixelBits
public int sampleLocationSubPixelBits()
Returns the value of thesampleLocationSubPixelBits
field.
-
variableSampleLocations
public boolean variableSampleLocations()
Returns the value of thevariableSampleLocations
field.
-
sType
public VkPhysicalDeviceSampleLocationsPropertiesEXT sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkPhysicalDeviceSampleLocationsPropertiesEXT pNext(long value)
Sets the specified value to thepNext
field.
-
set
public VkPhysicalDeviceSampleLocationsPropertiesEXT set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceSampleLocationsPropertiesEXT set(VkPhysicalDeviceSampleLocationsPropertiesEXT src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceSampleLocationsPropertiesEXT malloc()
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceSampleLocationsPropertiesEXT calloc()
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceSampleLocationsPropertiesEXT create()
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT
instance allocated withBufferUtils
.
-
create
public static VkPhysicalDeviceSampleLocationsPropertiesEXT create(long address)
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT
instance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceSampleLocationsPropertiesEXT createSafe(long address)
-
malloc
public static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer create(int capacity)
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPhysicalDeviceSampleLocationsPropertiesEXT mallocStack()
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPhysicalDeviceSampleLocationsPropertiesEXT callocStack()
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceSampleLocationsPropertiesEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceSampleLocationsPropertiesEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT.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()
.
-
nsampleLocationSampleCounts
public static int nsampleLocationSampleCounts(long struct)
Unsafe version ofsampleLocationSampleCounts()
.
-
nmaxSampleLocationGridSize
public static VkExtent2D nmaxSampleLocationGridSize(long struct)
Unsafe version ofmaxSampleLocationGridSize()
.
-
nsampleLocationCoordinateRange
public static java.nio.FloatBuffer nsampleLocationCoordinateRange(long struct)
Unsafe version ofsampleLocationCoordinateRange()
.
-
nsampleLocationCoordinateRange
public static float nsampleLocationCoordinateRange(long struct, int index)
Unsafe version ofsampleLocationCoordinateRange
.
-
nsampleLocationSubPixelBits
public static int nsampleLocationSubPixelBits(long struct)
Unsafe version ofsampleLocationSubPixelBits()
.
-
nvariableSampleLocations
public static int nvariableSampleLocations(long struct)
Unsafe version ofvariableSampleLocations()
.
-
nsType
public static void nsType(long struct, int value)
Unsafe version ofsType
.
-
npNext
public static void npNext(long struct, long value)
Unsafe version ofpNext
.
-
-