public class VkSampleLocationEXT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
The domain space of the sample location coordinates has an upper-left origin within the pixel in framebuffer space.
The values specified in a VkSampleLocationEXT structure are always clamped to the implementation-dependent sample location coordinate range [sampleLocationCoordinateRange[0],sampleLocationCoordinateRange[1]] that can be queried by adding a VkPhysicalDeviceSampleLocationsPropertiesEXT structure to the pNext chain of VkPhysicalDeviceProperties2.
x – the horizontal coordinate of the sample’s location.y – the vertical coordinate of the sample’s location.
struct VkSampleLocationEXT {
float x;
float y;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkSampleLocationEXT.Buffer
An array of
VkSampleLocationEXT structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
X
The struct member offsets.
|
static int |
Y
The struct member offsets.
|
| Constructor and Description |
|---|
VkSampleLocationEXT(java.nio.ByteBuffer container)
Creates a
VkSampleLocationEXT instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkSampleLocationEXT |
calloc()
Returns a new
VkSampleLocationEXT instance allocated with memCalloc. |
static VkSampleLocationEXT.Buffer |
calloc(int capacity)
Returns a new
VkSampleLocationEXT.Buffer instance allocated with memCalloc. |
static VkSampleLocationEXT |
callocStack()
Returns a new
VkSampleLocationEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSampleLocationEXT.Buffer |
callocStack(int capacity)
Returns a new
VkSampleLocationEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSampleLocationEXT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSampleLocationEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkSampleLocationEXT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSampleLocationEXT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkSampleLocationEXT |
create()
Returns a new
VkSampleLocationEXT instance allocated with BufferUtils. |
static VkSampleLocationEXT.Buffer |
create(int capacity)
Returns a new
VkSampleLocationEXT.Buffer instance allocated with BufferUtils. |
static VkSampleLocationEXT |
create(long address)
Returns a new
VkSampleLocationEXT instance for the specified memory address. |
static VkSampleLocationEXT.Buffer |
create(long address,
int capacity)
Create a
VkSampleLocationEXT.Buffer instance at the specified memory. |
static VkSampleLocationEXT |
createSafe(long address)
|
static VkSampleLocationEXT.Buffer |
createSafe(long address,
int capacity)
|
static VkSampleLocationEXT |
malloc()
Returns a new
VkSampleLocationEXT instance allocated with memAlloc. |
static VkSampleLocationEXT.Buffer |
malloc(int capacity)
Returns a new
VkSampleLocationEXT.Buffer instance allocated with memAlloc. |
static VkSampleLocationEXT |
mallocStack()
Returns a new
VkSampleLocationEXT instance allocated on the thread-local MemoryStack. |
static VkSampleLocationEXT.Buffer |
mallocStack(int capacity)
Returns a new
VkSampleLocationEXT.Buffer instance allocated on the thread-local MemoryStack. |
static VkSampleLocationEXT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSampleLocationEXT.Buffer instance allocated on the specified MemoryStack. |
static VkSampleLocationEXT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSampleLocationEXT instance allocated on the specified MemoryStack. |
static float |
nx(long struct)
Unsafe version of
x(). |
static void |
nx(long struct,
float value)
Unsafe version of
x. |
static float |
ny(long struct)
Unsafe version of
y(). |
static void |
ny(long struct,
float value)
Unsafe version of
y. |
VkSampleLocationEXT |
set(float x,
float y)
Initializes this struct with the specified values.
|
VkSampleLocationEXT |
set(VkSampleLocationEXT src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
float |
x()
Returns the value of the
x field. |
VkSampleLocationEXT |
x(float value)
Sets the specified value to the
x field. |
float |
y()
Returns the value of the
y field. |
VkSampleLocationEXT |
y(float value)
Sets the specified value to the
y field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int X
public static final int Y
public VkSampleLocationEXT(java.nio.ByteBuffer container)
VkSampleLocationEXT 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 float x()
x field.public float y()
y field.public VkSampleLocationEXT x(float value)
x field.public VkSampleLocationEXT y(float value)
y field.public VkSampleLocationEXT set(float x, float y)
public VkSampleLocationEXT set(VkSampleLocationEXT src)
src - the source structpublic static VkSampleLocationEXT malloc()
VkSampleLocationEXT instance allocated with memAlloc. The instance must be explicitly freed.public static VkSampleLocationEXT calloc()
VkSampleLocationEXT instance allocated with memCalloc. The instance must be explicitly freed.public static VkSampleLocationEXT create()
VkSampleLocationEXT instance allocated with BufferUtils.public static VkSampleLocationEXT create(long address)
VkSampleLocationEXT instance for the specified memory address.@Nullable public static VkSampleLocationEXT createSafe(long address)
public static VkSampleLocationEXT.Buffer malloc(int capacity)
VkSampleLocationEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSampleLocationEXT.Buffer calloc(int capacity)
VkSampleLocationEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSampleLocationEXT.Buffer create(int capacity)
VkSampleLocationEXT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkSampleLocationEXT.Buffer create(long address, int capacity)
VkSampleLocationEXT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkSampleLocationEXT.Buffer createSafe(long address, int capacity)
public static VkSampleLocationEXT mallocStack()
VkSampleLocationEXT instance allocated on the thread-local MemoryStack.public static VkSampleLocationEXT callocStack()
VkSampleLocationEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkSampleLocationEXT mallocStack(org.lwjgl.system.MemoryStack stack)
VkSampleLocationEXT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkSampleLocationEXT callocStack(org.lwjgl.system.MemoryStack stack)
VkSampleLocationEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkSampleLocationEXT.Buffer mallocStack(int capacity)
VkSampleLocationEXT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkSampleLocationEXT.Buffer callocStack(int capacity)
VkSampleLocationEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkSampleLocationEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSampleLocationEXT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkSampleLocationEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSampleLocationEXT.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 float nx(long struct)
x().public static float ny(long struct)
y().public static void nx(long struct,
float value)
x.public static void ny(long struct,
float value)
y.Copyright LWJGL. All Rights Reserved. License terms.