public class VkSampleLocationsInfoEXT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
This structure can be used either to specify the sample locations to be used for rendering or to specify the set of sample locations an image subresource has been last rendered with for the purposes of layout transitions of depth/stencil images created with IMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT.
The sample locations in pSampleLocations specify sampleLocationsPerPixel number of sample locations for each pixel in the grid of the size specified in sampleLocationGridSize. The sample location for sample i at the pixel grid location (x,y) is taken from pSampleLocations[(x + y sampleLocationGridSize.width) sampleLocationsPerPixel + i].
If the render pass has a fragment density map, the implementation will choose the sample locations for the fragment and the contents of pSampleLocations may be ignored.
sampleLocationsPerPixel must be a bit value that is set in VkPhysicalDeviceSampleLocationsPropertiesEXT::sampleLocationSampleCountssampleLocationsCount must equal sampleLocationsPerPixel × sampleLocationGridSize.width × sampleLocationGridSize.heightsType must be STRUCTURE_TYPE_SAMPLE_LOCATIONS_INFO_EXTsampleLocationsPerPixel is not 0, sampleLocationsPerPixel must be a valid VkSampleCountFlagBits valuesampleLocationsCount is not 0, pSampleLocations must be a valid pointer to an array of sampleLocationsCount VkSampleLocationEXT structuresVkAttachmentSampleLocationsEXT, VkExtent2D, VkPipelineSampleLocationsStateCreateInfoEXT, VkSampleLocationEXT, VkSubpassSampleLocationsEXT, CmdSetSampleLocationsEXT
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.sampleLocationsPerPixel – a VkSampleCountFlagBits specifying the number of sample locations per pixel.sampleLocationGridSize – the size of the sample location grid to select custom sample locations for.sampleLocationsCount – the number of sample locations in pSampleLocations.pSampleLocations – a pointer to an array of sampleLocationsCount VkSampleLocationEXT structures.
struct VkSampleLocationsInfoEXT {
VkStructureType sType;
void const * pNext;
VkSampleCountFlagBits sampleLocationsPerPixel;
VkExtent2D sampleLocationGridSize;
uint32_t sampleLocationsCount;
VkSampleLocationEXT const * pSampleLocations;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkSampleLocationsInfoEXT.Buffer
An array of
VkSampleLocationsInfoEXT structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
PNEXT
The struct member offsets.
|
static int |
PSAMPLELOCATIONS
The struct member offsets.
|
static int |
SAMPLELOCATIONGRIDSIZE
The struct member offsets.
|
static int |
SAMPLELOCATIONSCOUNT
The struct member offsets.
|
static int |
SAMPLELOCATIONSPERPIXEL
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkSampleLocationsInfoEXT(java.nio.ByteBuffer container)
Creates a
VkSampleLocationsInfoEXT instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkSampleLocationsInfoEXT |
calloc()
Returns a new
VkSampleLocationsInfoEXT instance allocated with memCalloc. |
static VkSampleLocationsInfoEXT.Buffer |
calloc(int capacity)
Returns a new
VkSampleLocationsInfoEXT.Buffer instance allocated with memCalloc. |
static VkSampleLocationsInfoEXT |
callocStack()
Returns a new
VkSampleLocationsInfoEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSampleLocationsInfoEXT.Buffer |
callocStack(int capacity)
Returns a new
VkSampleLocationsInfoEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSampleLocationsInfoEXT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSampleLocationsInfoEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkSampleLocationsInfoEXT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSampleLocationsInfoEXT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkSampleLocationsInfoEXT |
create()
Returns a new
VkSampleLocationsInfoEXT instance allocated with BufferUtils. |
static VkSampleLocationsInfoEXT.Buffer |
create(int capacity)
Returns a new
VkSampleLocationsInfoEXT.Buffer instance allocated with BufferUtils. |
static VkSampleLocationsInfoEXT |
create(long address)
Returns a new
VkSampleLocationsInfoEXT instance for the specified memory address. |
static VkSampleLocationsInfoEXT.Buffer |
create(long address,
int capacity)
Create a
VkSampleLocationsInfoEXT.Buffer instance at the specified memory. |
static VkSampleLocationsInfoEXT |
createSafe(long address)
|
static VkSampleLocationsInfoEXT.Buffer |
createSafe(long address,
int capacity)
|
static VkSampleLocationsInfoEXT |
malloc()
Returns a new
VkSampleLocationsInfoEXT instance allocated with memAlloc. |
static VkSampleLocationsInfoEXT.Buffer |
malloc(int capacity)
Returns a new
VkSampleLocationsInfoEXT.Buffer instance allocated with memAlloc. |
static VkSampleLocationsInfoEXT |
mallocStack()
Returns a new
VkSampleLocationsInfoEXT instance allocated on the thread-local MemoryStack. |
static VkSampleLocationsInfoEXT.Buffer |
mallocStack(int capacity)
Returns a new
VkSampleLocationsInfoEXT.Buffer instance allocated on the thread-local MemoryStack. |
static VkSampleLocationsInfoEXT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSampleLocationsInfoEXT.Buffer instance allocated on the specified MemoryStack. |
static VkSampleLocationsInfoEXT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSampleLocationsInfoEXT instance allocated on the specified MemoryStack. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static VkSampleLocationEXT.Buffer |
npSampleLocations(long struct)
Unsafe version of
pSampleLocations(). |
static void |
npSampleLocations(long struct,
VkSampleLocationEXT.Buffer value)
Unsafe version of
pSampleLocations. |
static VkExtent2D |
nsampleLocationGridSize(long struct)
Unsafe version of
sampleLocationGridSize(). |
static void |
nsampleLocationGridSize(long struct,
VkExtent2D value)
Unsafe version of
sampleLocationGridSize. |
static int |
nsampleLocationsCount(long struct)
Unsafe version of
sampleLocationsCount(). |
static void |
nsampleLocationsCount(long struct,
int value)
Sets the specified value to the
sampleLocationsCount field of the specified struct. |
static int |
nsampleLocationsPerPixel(long struct)
Unsafe version of
sampleLocationsPerPixel(). |
static void |
nsampleLocationsPerPixel(long struct,
int value)
Unsafe version of
sampleLocationsPerPixel. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
long |
pNext()
Returns the value of the
pNext field. |
VkSampleLocationsInfoEXT |
pNext(long value)
Sets the specified value to the
pNext field. |
VkSampleLocationEXT.Buffer |
pSampleLocations()
Returns a
VkSampleLocationEXT.Buffer view of the struct array pointed to by the pSampleLocations field. |
VkSampleLocationsInfoEXT |
pSampleLocations(VkSampleLocationEXT.Buffer value)
Sets the address of the specified
VkSampleLocationEXT.Buffer to the pSampleLocations field. |
VkExtent2D |
sampleLocationGridSize()
Returns a
VkExtent2D view of the sampleLocationGridSize field. |
VkSampleLocationsInfoEXT |
sampleLocationGridSize(java.util.function.Consumer<VkExtent2D> consumer)
Passes the
sampleLocationGridSize field to the specified Consumer. |
VkSampleLocationsInfoEXT |
sampleLocationGridSize(VkExtent2D value)
Copies the specified
VkExtent2D to the sampleLocationGridSize field. |
int |
sampleLocationsCount()
Returns the value of the
sampleLocationsCount field. |
int |
sampleLocationsPerPixel()
Returns the value of the
sampleLocationsPerPixel field. |
VkSampleLocationsInfoEXT |
sampleLocationsPerPixel(int value)
Sets the specified value to the
sampleLocationsPerPixel field. |
VkSampleLocationsInfoEXT |
set(int sType,
long pNext,
int sampleLocationsPerPixel,
VkExtent2D sampleLocationGridSize,
VkSampleLocationEXT.Buffer pSampleLocations)
Initializes this struct with the specified values.
|
VkSampleLocationsInfoEXT |
set(VkSampleLocationsInfoEXT src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkSampleLocationsInfoEXT |
sType(int value)
Sets the specified value to the
sType field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int SAMPLELOCATIONSPERPIXEL
public static final int SAMPLELOCATIONGRIDSIZE
public static final int SAMPLELOCATIONSCOUNT
public static final int PSAMPLELOCATIONS
public VkSampleLocationsInfoEXT(java.nio.ByteBuffer container)
VkSampleLocationsInfoEXT 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 sampleLocationsPerPixel()
sampleLocationsPerPixel field.public VkExtent2D sampleLocationGridSize()
VkExtent2D view of the sampleLocationGridSize field.public int sampleLocationsCount()
sampleLocationsCount field.@Nullable public VkSampleLocationEXT.Buffer pSampleLocations()
VkSampleLocationEXT.Buffer view of the struct array pointed to by the pSampleLocations field.public VkSampleLocationsInfoEXT sType(int value)
sType field.public VkSampleLocationsInfoEXT pNext(long value)
pNext field.public VkSampleLocationsInfoEXT sampleLocationsPerPixel(int value)
sampleLocationsPerPixel field.public VkSampleLocationsInfoEXT sampleLocationGridSize(VkExtent2D value)
VkExtent2D to the sampleLocationGridSize field.public VkSampleLocationsInfoEXT sampleLocationGridSize(java.util.function.Consumer<VkExtent2D> consumer)
sampleLocationGridSize field to the specified Consumer.public VkSampleLocationsInfoEXT pSampleLocations(@Nullable VkSampleLocationEXT.Buffer value)
VkSampleLocationEXT.Buffer to the pSampleLocations field.public VkSampleLocationsInfoEXT set(int sType, long pNext, int sampleLocationsPerPixel, VkExtent2D sampleLocationGridSize, @Nullable VkSampleLocationEXT.Buffer pSampleLocations)
public VkSampleLocationsInfoEXT set(VkSampleLocationsInfoEXT src)
src - the source structpublic static VkSampleLocationsInfoEXT malloc()
VkSampleLocationsInfoEXT instance allocated with memAlloc. The instance must be explicitly freed.public static VkSampleLocationsInfoEXT calloc()
VkSampleLocationsInfoEXT instance allocated with memCalloc. The instance must be explicitly freed.public static VkSampleLocationsInfoEXT create()
VkSampleLocationsInfoEXT instance allocated with BufferUtils.public static VkSampleLocationsInfoEXT create(long address)
VkSampleLocationsInfoEXT instance for the specified memory address.@Nullable public static VkSampleLocationsInfoEXT createSafe(long address)
public static VkSampleLocationsInfoEXT.Buffer malloc(int capacity)
VkSampleLocationsInfoEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSampleLocationsInfoEXT.Buffer calloc(int capacity)
VkSampleLocationsInfoEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSampleLocationsInfoEXT.Buffer create(int capacity)
VkSampleLocationsInfoEXT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkSampleLocationsInfoEXT.Buffer create(long address, int capacity)
VkSampleLocationsInfoEXT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkSampleLocationsInfoEXT.Buffer createSafe(long address, int capacity)
public static VkSampleLocationsInfoEXT mallocStack()
VkSampleLocationsInfoEXT instance allocated on the thread-local MemoryStack.public static VkSampleLocationsInfoEXT callocStack()
VkSampleLocationsInfoEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkSampleLocationsInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
VkSampleLocationsInfoEXT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkSampleLocationsInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
VkSampleLocationsInfoEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkSampleLocationsInfoEXT.Buffer mallocStack(int capacity)
VkSampleLocationsInfoEXT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkSampleLocationsInfoEXT.Buffer callocStack(int capacity)
VkSampleLocationsInfoEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkSampleLocationsInfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSampleLocationsInfoEXT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkSampleLocationsInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSampleLocationsInfoEXT.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 nsampleLocationsPerPixel(long struct)
sampleLocationsPerPixel().public static VkExtent2D nsampleLocationGridSize(long struct)
sampleLocationGridSize().public static int nsampleLocationsCount(long struct)
sampleLocationsCount().@Nullable public static VkSampleLocationEXT.Buffer npSampleLocations(long struct)
pSampleLocations().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nsampleLocationsPerPixel(long struct,
int value)
sampleLocationsPerPixel.public static void nsampleLocationGridSize(long struct,
VkExtent2D value)
sampleLocationGridSize.public static void nsampleLocationsCount(long struct,
int value)
sampleLocationsCount field of the specified struct.public static void npSampleLocations(long struct,
@Nullable
VkSampleLocationEXT.Buffer value)
pSampleLocations.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.