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 ofVkPhysicalDeviceProperties2, it is filled with the implementation-dependent limits.Valid Usage (Implicit)
See Also
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.sampleLocationSampleCounts– a bitmask ofVkSampleCountFlagBitsindicating 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;VkExtent2DmaxSampleLocationGridSize; float sampleLocationCoordinateRange[2]; uint32_t sampleLocationSubPixelBits; VkBool32 variableSampleLocations; }
-
-
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 Modifier and Type Method Description static VkPhysicalDeviceSampleLocationsPropertiesEXTcalloc()Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXTinstance allocated withmemCalloc.static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceSampleLocationsPropertiesEXTcallocStack()Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceSampleLocationsPropertiesEXT.BuffercallocStack(int capacity)Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceSampleLocationsPropertiesEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceSampleLocationsPropertiesEXTcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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 VkPhysicalDeviceSampleLocationsPropertiesEXTmallocStack()Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXTinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceSampleLocationsPropertiesEXT.BuffermallocStack(int capacity)Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT.Bufferinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceSampleLocationsPropertiesEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceSampleLocationsPropertiesEXTmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXTinstance allocated on the specifiedMemoryStack.VkExtent2DmaxSampleLocationGridSize()Returns aVkExtent2Dview of themaxSampleLocationGridSizefield.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()Returns the value of thepNextfield.VkPhysicalDeviceSampleLocationsPropertiesEXTpNext(long value)Sets the specified value to thepNextfield.java.nio.FloatBuffersampleLocationCoordinateRange()Returns aFloatBufferview of thesampleLocationCoordinateRangefield.floatsampleLocationCoordinateRange(int index)Returns the value at the specified index of thesampleLocationCoordinateRangefield.intsampleLocationSampleCounts()Returns the value of thesampleLocationSampleCountsfield.intsampleLocationSubPixelBits()Returns the value of thesampleLocationSubPixelBitsfield.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()Returns the value of thesTypefield.VkPhysicalDeviceSampleLocationsPropertiesEXTsType(int value)Sets the specified value to thesTypefield.booleanvariableSampleLocations()Returns the value of thevariableSampleLocationsfield.
-
-
-
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()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
sampleLocationSampleCounts
public int sampleLocationSampleCounts()
Returns the value of thesampleLocationSampleCountsfield.
-
maxSampleLocationGridSize
public VkExtent2D maxSampleLocationGridSize()
Returns aVkExtent2Dview of themaxSampleLocationGridSizefield.
-
sampleLocationCoordinateRange
public java.nio.FloatBuffer sampleLocationCoordinateRange()
Returns aFloatBufferview of thesampleLocationCoordinateRangefield.
-
sampleLocationCoordinateRange
public float sampleLocationCoordinateRange(int index)
Returns the value at the specified index of thesampleLocationCoordinateRangefield.
-
sampleLocationSubPixelBits
public int sampleLocationSubPixelBits()
Returns the value of thesampleLocationSubPixelBitsfield.
-
variableSampleLocations
public boolean variableSampleLocations()
Returns the value of thevariableSampleLocationsfield.
-
sType
public VkPhysicalDeviceSampleLocationsPropertiesEXT sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPhysicalDeviceSampleLocationsPropertiesEXT pNext(long value)
Sets the specified value to thepNextfield.
-
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
public static VkPhysicalDeviceSampleLocationsPropertiesEXT mallocStack()
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXTinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPhysicalDeviceSampleLocationsPropertiesEXT callocStack()
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceSampleLocationsPropertiesEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceSampleLocationsPropertiesEXT callocStack(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
-
mallocStack
public static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceSampleLocationsPropertiesEXT.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceSampleLocationsPropertiesEXT.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.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.
-
-