public class VkCoarseSampleLocationNV
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
pixelX must be less than the width (in pixels) of the fragment.pixelY must be less than the height (in pixels) of the fragment.sample must be less than the number of coverage samples in each pixel belonging to the fragment.pixelX – added to the x coordinate of the upper-leftmost pixel of each fragment to identify the pixel containing the coverage sample.pixelY – added to the y coordinate of the upper-leftmost pixel of each fragment to identify the pixel containing the coverage sample.sample – the number of the coverage sample in the pixel identified by pixelX and pixelY.
struct VkCoarseSampleLocationNV {
uint32_t pixelX;
uint32_t pixelY;
uint32_t sample;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkCoarseSampleLocationNV.Buffer
An array of
VkCoarseSampleLocationNV structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
PIXELX
The struct member offsets.
|
static int |
PIXELY
The struct member offsets.
|
static int |
SAMPLE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
VkCoarseSampleLocationNV(java.nio.ByteBuffer container)
Creates a
VkCoarseSampleLocationNV instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkCoarseSampleLocationNV |
calloc()
Returns a new
VkCoarseSampleLocationNV instance allocated with memCalloc. |
static VkCoarseSampleLocationNV.Buffer |
calloc(int capacity)
Returns a new
VkCoarseSampleLocationNV.Buffer instance allocated with memCalloc. |
static VkCoarseSampleLocationNV |
callocStack()
Returns a new
VkCoarseSampleLocationNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkCoarseSampleLocationNV.Buffer |
callocStack(int capacity)
Returns a new
VkCoarseSampleLocationNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkCoarseSampleLocationNV.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkCoarseSampleLocationNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkCoarseSampleLocationNV |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkCoarseSampleLocationNV instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkCoarseSampleLocationNV |
create()
Returns a new
VkCoarseSampleLocationNV instance allocated with BufferUtils. |
static VkCoarseSampleLocationNV.Buffer |
create(int capacity)
Returns a new
VkCoarseSampleLocationNV.Buffer instance allocated with BufferUtils. |
static VkCoarseSampleLocationNV |
create(long address)
Returns a new
VkCoarseSampleLocationNV instance for the specified memory address. |
static VkCoarseSampleLocationNV.Buffer |
create(long address,
int capacity)
Create a
VkCoarseSampleLocationNV.Buffer instance at the specified memory. |
static VkCoarseSampleLocationNV |
createSafe(long address)
|
static VkCoarseSampleLocationNV.Buffer |
createSafe(long address,
int capacity)
|
static VkCoarseSampleLocationNV |
malloc()
Returns a new
VkCoarseSampleLocationNV instance allocated with memAlloc. |
static VkCoarseSampleLocationNV.Buffer |
malloc(int capacity)
Returns a new
VkCoarseSampleLocationNV.Buffer instance allocated with memAlloc. |
static VkCoarseSampleLocationNV |
mallocStack()
Returns a new
VkCoarseSampleLocationNV instance allocated on the thread-local MemoryStack. |
static VkCoarseSampleLocationNV.Buffer |
mallocStack(int capacity)
Returns a new
VkCoarseSampleLocationNV.Buffer instance allocated on the thread-local MemoryStack. |
static VkCoarseSampleLocationNV.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkCoarseSampleLocationNV.Buffer instance allocated on the specified MemoryStack. |
static VkCoarseSampleLocationNV |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkCoarseSampleLocationNV instance allocated on the specified MemoryStack. |
static int |
npixelX(long struct)
Unsafe version of
pixelX(). |
static void |
npixelX(long struct,
int value)
Unsafe version of
pixelX. |
static int |
npixelY(long struct)
Unsafe version of
pixelY(). |
static void |
npixelY(long struct,
int value)
Unsafe version of
pixelY. |
static int |
nsample(long struct)
Unsafe version of
sample(). |
static void |
nsample(long struct,
int value)
Unsafe version of
sample. |
int |
pixelX()
Returns the value of the
pixelX field. |
VkCoarseSampleLocationNV |
pixelX(int value)
Sets the specified value to the
pixelX field. |
int |
pixelY()
Returns the value of the
pixelY field. |
VkCoarseSampleLocationNV |
pixelY(int value)
Sets the specified value to the
pixelY field. |
int |
sample()
Returns the value of the
sample field. |
VkCoarseSampleLocationNV |
sample(int value)
Sets the specified value to the
sample field. |
VkCoarseSampleLocationNV |
set(int pixelX,
int pixelY,
int sample)
Initializes this struct with the specified values.
|
VkCoarseSampleLocationNV |
set(VkCoarseSampleLocationNV src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int PIXELX
public static final int PIXELY
public static final int SAMPLE
public VkCoarseSampleLocationNV(java.nio.ByteBuffer container)
VkCoarseSampleLocationNV 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 pixelX()
pixelX field.public int pixelY()
pixelY field.public int sample()
sample field.public VkCoarseSampleLocationNV pixelX(int value)
pixelX field.public VkCoarseSampleLocationNV pixelY(int value)
pixelY field.public VkCoarseSampleLocationNV sample(int value)
sample field.public VkCoarseSampleLocationNV set(int pixelX, int pixelY, int sample)
public VkCoarseSampleLocationNV set(VkCoarseSampleLocationNV src)
src - the source structpublic static VkCoarseSampleLocationNV malloc()
VkCoarseSampleLocationNV instance allocated with memAlloc. The instance must be explicitly freed.public static VkCoarseSampleLocationNV calloc()
VkCoarseSampleLocationNV instance allocated with memCalloc. The instance must be explicitly freed.public static VkCoarseSampleLocationNV create()
VkCoarseSampleLocationNV instance allocated with BufferUtils.public static VkCoarseSampleLocationNV create(long address)
VkCoarseSampleLocationNV instance for the specified memory address.@Nullable public static VkCoarseSampleLocationNV createSafe(long address)
public static VkCoarseSampleLocationNV.Buffer malloc(int capacity)
VkCoarseSampleLocationNV.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkCoarseSampleLocationNV.Buffer calloc(int capacity)
VkCoarseSampleLocationNV.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkCoarseSampleLocationNV.Buffer create(int capacity)
VkCoarseSampleLocationNV.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkCoarseSampleLocationNV.Buffer create(long address, int capacity)
VkCoarseSampleLocationNV.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkCoarseSampleLocationNV.Buffer createSafe(long address, int capacity)
public static VkCoarseSampleLocationNV mallocStack()
VkCoarseSampleLocationNV instance allocated on the thread-local MemoryStack.public static VkCoarseSampleLocationNV callocStack()
VkCoarseSampleLocationNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkCoarseSampleLocationNV mallocStack(org.lwjgl.system.MemoryStack stack)
VkCoarseSampleLocationNV instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkCoarseSampleLocationNV callocStack(org.lwjgl.system.MemoryStack stack)
VkCoarseSampleLocationNV instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkCoarseSampleLocationNV.Buffer mallocStack(int capacity)
VkCoarseSampleLocationNV.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkCoarseSampleLocationNV.Buffer callocStack(int capacity)
VkCoarseSampleLocationNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkCoarseSampleLocationNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkCoarseSampleLocationNV.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkCoarseSampleLocationNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkCoarseSampleLocationNV.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 npixelX(long struct)
pixelX().public static int npixelY(long struct)
pixelY().public static int nsample(long struct)
sample().public static void npixelX(long struct,
int value)
pixelX.public static void npixelY(long struct,
int value)
pixelY.public static void nsample(long struct,
int value)
sample.Copyright LWJGL. All Rights Reserved. License terms.