Package org.lwjgl.vulkan
Class VkCoarseSampleLocationNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkCoarseSampleLocationNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkCoarseSampleLocationNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure specifying parameters controlling shading rate image usage.Valid Usage
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.
See Also
Member documentation
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 bypixelX
andpixelY
.
Layout
struct VkCoarseSampleLocationNV { uint32_t pixelX; uint32_t pixelY; uint32_t sample; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkCoarseSampleLocationNV.Buffer
An array ofVkCoarseSampleLocationNV
structs.
-
Constructor Summary
Constructors Constructor Description VkCoarseSampleLocationNV(java.nio.ByteBuffer container)
Creates aVkCoarseSampleLocationNV
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkCoarseSampleLocationNV
calloc()
Returns a newVkCoarseSampleLocationNV
instance allocated withmemCalloc
.static VkCoarseSampleLocationNV.Buffer
calloc(int capacity)
Returns a newVkCoarseSampleLocationNV.Buffer
instance allocated withmemCalloc
.static VkCoarseSampleLocationNV
callocStack()
Returns a newVkCoarseSampleLocationNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkCoarseSampleLocationNV.Buffer
callocStack(int capacity)
Returns a newVkCoarseSampleLocationNV.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkCoarseSampleLocationNV.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCoarseSampleLocationNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkCoarseSampleLocationNV
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkCoarseSampleLocationNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkCoarseSampleLocationNV
create()
Returns a newVkCoarseSampleLocationNV
instance allocated withBufferUtils
.static VkCoarseSampleLocationNV.Buffer
create(int capacity)
Returns a newVkCoarseSampleLocationNV.Buffer
instance allocated withBufferUtils
.static VkCoarseSampleLocationNV
create(long address)
Returns a newVkCoarseSampleLocationNV
instance for the specified memory address.static VkCoarseSampleLocationNV.Buffer
create(long address, int capacity)
Create aVkCoarseSampleLocationNV.Buffer
instance at the specified memory.static VkCoarseSampleLocationNV
createSafe(long address)
static VkCoarseSampleLocationNV.Buffer
createSafe(long address, int capacity)
static VkCoarseSampleLocationNV
malloc()
Returns a newVkCoarseSampleLocationNV
instance allocated withmemAlloc
.static VkCoarseSampleLocationNV.Buffer
malloc(int capacity)
Returns a newVkCoarseSampleLocationNV.Buffer
instance allocated withmemAlloc
.static VkCoarseSampleLocationNV
mallocStack()
Returns a newVkCoarseSampleLocationNV
instance allocated on the thread-localMemoryStack
.static VkCoarseSampleLocationNV.Buffer
mallocStack(int capacity)
Returns a newVkCoarseSampleLocationNV.Buffer
instance allocated on the thread-localMemoryStack
.static VkCoarseSampleLocationNV.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCoarseSampleLocationNV.Buffer
instance allocated on the specifiedMemoryStack
.static VkCoarseSampleLocationNV
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkCoarseSampleLocationNV
instance allocated on the specifiedMemoryStack
.static int
npixelX(long struct)
Unsafe version ofpixelX()
.static void
npixelX(long struct, int value)
Unsafe version ofpixelX
.static int
npixelY(long struct)
Unsafe version ofpixelY()
.static void
npixelY(long struct, int value)
Unsafe version ofpixelY
.static int
nsample(long struct)
Unsafe version ofsample()
.static void
nsample(long struct, int value)
Unsafe version ofsample
.int
pixelX()
Returns the value of thepixelX
field.VkCoarseSampleLocationNV
pixelX(int value)
Sets the specified value to thepixelX
field.int
pixelY()
Returns the value of thepixelY
field.VkCoarseSampleLocationNV
pixelY(int value)
Sets the specified value to thepixelY
field.int
sample()
Returns the value of thesample
field.VkCoarseSampleLocationNV
sample(int value)
Sets the specified value to thesample
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()
-
-
-
Constructor Detail
-
VkCoarseSampleLocationNV
public VkCoarseSampleLocationNV(java.nio.ByteBuffer container)
Creates aVkCoarseSampleLocationNV
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
pixelX
public int pixelX()
Returns the value of thepixelX
field.
-
pixelY
public int pixelY()
Returns the value of thepixelY
field.
-
sample
public int sample()
Returns the value of thesample
field.
-
pixelX
public VkCoarseSampleLocationNV pixelX(int value)
Sets the specified value to thepixelX
field.
-
pixelY
public VkCoarseSampleLocationNV pixelY(int value)
Sets the specified value to thepixelY
field.
-
sample
public VkCoarseSampleLocationNV sample(int value)
Sets the specified value to thesample
field.
-
set
public VkCoarseSampleLocationNV set(int pixelX, int pixelY, int sample)
Initializes this struct with the specified values.
-
set
public VkCoarseSampleLocationNV set(VkCoarseSampleLocationNV src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkCoarseSampleLocationNV malloc()
Returns a newVkCoarseSampleLocationNV
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkCoarseSampleLocationNV calloc()
Returns a newVkCoarseSampleLocationNV
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkCoarseSampleLocationNV create()
Returns a newVkCoarseSampleLocationNV
instance allocated withBufferUtils
.
-
create
public static VkCoarseSampleLocationNV create(long address)
Returns a newVkCoarseSampleLocationNV
instance for the specified memory address.
-
createSafe
@Nullable public static VkCoarseSampleLocationNV createSafe(long address)
-
malloc
public static VkCoarseSampleLocationNV.Buffer malloc(int capacity)
Returns a newVkCoarseSampleLocationNV.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkCoarseSampleLocationNV.Buffer calloc(int capacity)
Returns a newVkCoarseSampleLocationNV.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkCoarseSampleLocationNV.Buffer create(int capacity)
Returns a newVkCoarseSampleLocationNV.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkCoarseSampleLocationNV.Buffer create(long address, int capacity)
Create aVkCoarseSampleLocationNV.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkCoarseSampleLocationNV.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkCoarseSampleLocationNV mallocStack()
Returns a newVkCoarseSampleLocationNV
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkCoarseSampleLocationNV callocStack()
Returns a newVkCoarseSampleLocationNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkCoarseSampleLocationNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkCoarseSampleLocationNV
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkCoarseSampleLocationNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkCoarseSampleLocationNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkCoarseSampleLocationNV.Buffer mallocStack(int capacity)
Returns a newVkCoarseSampleLocationNV.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkCoarseSampleLocationNV.Buffer callocStack(int capacity)
Returns a newVkCoarseSampleLocationNV.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkCoarseSampleLocationNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCoarseSampleLocationNV.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkCoarseSampleLocationNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCoarseSampleLocationNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
npixelX
public static int npixelX(long struct)
Unsafe version ofpixelX()
.
-
npixelY
public static int npixelY(long struct)
Unsafe version ofpixelY()
.
-
nsample
public static int nsample(long struct)
Unsafe version ofsample()
.
-
npixelX
public static void npixelX(long struct, int value)
Unsafe version ofpixelX
.
-
npixelY
public static void npixelY(long struct, int value)
Unsafe version ofpixelY
.
-
nsample
public static void nsample(long struct, int value)
Unsafe version ofsample
.
-
-