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.NativeResourceStructure describing sample location limits that can be supported by an implementation.Description
If the
VkPhysicalDeviceSampleLocationsPropertiesEXTstructure is included in thepNextchain of theVkPhysicalDeviceProperties2structure passed toGetPhysicalDeviceProperties2, it is filled in with each corresponding implementation-dependent property.Valid Usage (Implicit)
See Also
Layout
struct VkPhysicalDeviceSampleLocationsPropertiesEXT { VkStructureTypesType(); void *pNext(); VkSampleCountFlagssampleLocationSampleCounts();VkExtent2DmaxSampleLocationGridSize(); floatsampleLocationCoordinateRange()[2]; uint32_tsampleLocationSubPixelBits(); VkBool32variableSampleLocations(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceSampleLocationsPropertiesEXT.BufferAn array ofVkPhysicalDeviceSampleLocationsPropertiesEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intMAXSAMPLELOCATIONGRIDSIZE
PNEXT
SAMPLELOCATIONCOORDINATERANGE
SAMPLELOCATIONSAMPLECOUNTS
SAMPLELOCATIONSUBPIXELBITSThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
VARIABLESAMPLELOCATIONSThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceSampleLocationsPropertiesEXT(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceSampleLocationsPropertiesEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VkPhysicalDeviceSampleLocationsPropertiesEXTcalloc()Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXTinstance allocated withmemCalloc.static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceSampleLocationsPropertiesEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceSampleLocationsPropertiesEXTcallocStack()Deprecated.static VkPhysicalDeviceSampleLocationsPropertiesEXT.BuffercallocStack(int capacity)Deprecated.static VkPhysicalDeviceSampleLocationsPropertiesEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceSampleLocationsPropertiesEXTcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceSampleLocationsPropertiesEXTcreate()Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXTinstance allocated withBufferUtils.static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffercreate(int capacity)Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceSampleLocationsPropertiesEXTcreate(long address)Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXTinstance for the specified memory address.static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceSampleLocationsPropertiesEXT.Bufferinstance at the specified memory.static VkPhysicalDeviceSampleLocationsPropertiesEXTcreateSafe(long address)static VkPhysicalDeviceSampleLocationsPropertiesEXT.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceSampleLocationsPropertiesEXTmalloc()Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXTinstance allocated withmemAlloc.static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceSampleLocationsPropertiesEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXTinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceSampleLocationsPropertiesEXTmallocStack()Deprecated.static VkPhysicalDeviceSampleLocationsPropertiesEXT.BuffermallocStack(int capacity)Deprecated.static VkPhysicalDeviceSampleLocationsPropertiesEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceSampleLocationsPropertiesEXTmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.VkExtent2DmaxSampleLocationGridSize()the maximum size of the pixel grid in which sample locations can vary that is supported for all sample counts insampleLocationSampleCounts.static VkExtent2DnmaxSampleLocationGridSize(long struct)Unsafe version ofmaxSampleLocationGridSize().static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static java.nio.FloatBuffernsampleLocationCoordinateRange(long struct)Unsafe version ofsampleLocationCoordinateRange().static floatnsampleLocationCoordinateRange(long struct, int index)Unsafe version ofsampleLocationCoordinateRange.static intnsampleLocationSampleCounts(long struct)Unsafe version ofsampleLocationSampleCounts().static intnsampleLocationSubPixelBits(long struct)Unsafe version ofsampleLocationSubPixelBits().static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static intnvariableSampleLocations(long struct)Unsafe version ofvariableSampleLocations().longpNext()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceSampleLocationsPropertiesEXTpNext(long value)Sets the specified value to thepNext()field.java.nio.FloatBuffersampleLocationCoordinateRange()the range of supported sample location coordinates.floatsampleLocationCoordinateRange(int index)the range of supported sample location coordinates.intsampleLocationSampleCounts()a bitmask ofVkSampleCountFlagBitsindicating the sample counts supporting custom sample locations.intsampleLocationSubPixelBits()the number of bits of subpixel precision for sample locations.VkPhysicalDeviceSampleLocationsPropertiesEXTset(int sType, long pNext)Initializes this struct with the specified values.VkPhysicalDeviceSampleLocationsPropertiesEXTset(VkPhysicalDeviceSampleLocationsPropertiesEXT src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceSampleLocationsPropertiesEXTsType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceSampleLocationsPropertiesEXTsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLE_LOCATIONS_PROPERTIES_EXTvalue to thesType()field.booleanvariableSampleLocations()specifies whether the sample locations used by all pipelines that will be bound to a command buffer during a subpass must match.
-
-
-
Constructor Detail
-
VkPhysicalDeviceSampleLocationsPropertiesEXT
public VkPhysicalDeviceSampleLocationsPropertiesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceSampleLocationsPropertiesEXTinstance 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.
-
sampleLocationSampleCounts
public int sampleLocationSampleCounts()
a bitmask ofVkSampleCountFlagBitsindicating the sample counts supporting custom sample locations.
-
maxSampleLocationGridSize
public VkExtent2D maxSampleLocationGridSize()
the maximum size of the pixel grid in which sample locations can vary that is supported for all sample counts insampleLocationSampleCounts.
-
sampleLocationCoordinateRange
public java.nio.FloatBuffer sampleLocationCoordinateRange() public float sampleLocationCoordinateRange(int index)
the range of supported sample location coordinates.
-
sampleLocationSubPixelBits
public int sampleLocationSubPixelBits()
the number of bits of subpixel precision for sample locations.
-
variableSampleLocations
public boolean variableSampleLocations()
-
sType
public VkPhysicalDeviceSampleLocationsPropertiesEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceSampleLocationsPropertiesEXT sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLE_LOCATIONS_PROPERTIES_EXTvalue 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 newVkPhysicalDeviceSampleLocationsPropertiesEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceSampleLocationsPropertiesEXT calloc()
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceSampleLocationsPropertiesEXT create()
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXTinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceSampleLocationsPropertiesEXT create(long address)
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceSampleLocationsPropertiesEXT createSafe(long address)
-
malloc
public static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer create(int capacity)
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceSampleLocationsPropertiesEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkPhysicalDeviceSampleLocationsPropertiesEXT mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceSampleLocationsPropertiesEXT callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceSampleLocationsPropertiesEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceSampleLocationsPropertiesEXT callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkPhysicalDeviceSampleLocationsPropertiesEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceSampleLocationsPropertiesEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT.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().
-
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.
-
-