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.NativeResourceStructure specifying parameters controlling shading rate image usage.Valid Usage
pixelXmust be less than the width (in pixels) of the fragment.pixelYmust be less than the height (in pixels) of the fragment.samplemust 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 bypixelXandpixelY.
Layout
struct VkCoarseSampleLocationNV { uint32_t pixelX; uint32_t pixelY; uint32_t sample; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkCoarseSampleLocationNV.BufferAn array ofVkCoarseSampleLocationNVstructs.
-
Constructor Summary
Constructors Constructor Description VkCoarseSampleLocationNV(java.nio.ByteBuffer container)Creates aVkCoarseSampleLocationNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkCoarseSampleLocationNVcalloc()Returns a newVkCoarseSampleLocationNVinstance allocated withmemCalloc.static VkCoarseSampleLocationNV.Buffercalloc(int capacity)Returns a newVkCoarseSampleLocationNV.Bufferinstance allocated withmemCalloc.static VkCoarseSampleLocationNVcallocStack()Returns a newVkCoarseSampleLocationNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkCoarseSampleLocationNV.BuffercallocStack(int capacity)Returns a newVkCoarseSampleLocationNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkCoarseSampleLocationNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkCoarseSampleLocationNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkCoarseSampleLocationNVcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkCoarseSampleLocationNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkCoarseSampleLocationNVcreate()Returns a newVkCoarseSampleLocationNVinstance allocated withBufferUtils.static VkCoarseSampleLocationNV.Buffercreate(int capacity)Returns a newVkCoarseSampleLocationNV.Bufferinstance allocated withBufferUtils.static VkCoarseSampleLocationNVcreate(long address)Returns a newVkCoarseSampleLocationNVinstance for the specified memory address.static VkCoarseSampleLocationNV.Buffercreate(long address, int capacity)Create aVkCoarseSampleLocationNV.Bufferinstance at the specified memory.static VkCoarseSampleLocationNVcreateSafe(long address)static VkCoarseSampleLocationNV.BuffercreateSafe(long address, int capacity)static VkCoarseSampleLocationNVmalloc()Returns a newVkCoarseSampleLocationNVinstance allocated withmemAlloc.static VkCoarseSampleLocationNV.Buffermalloc(int capacity)Returns a newVkCoarseSampleLocationNV.Bufferinstance allocated withmemAlloc.static VkCoarseSampleLocationNVmallocStack()Returns a newVkCoarseSampleLocationNVinstance allocated on the thread-localMemoryStack.static VkCoarseSampleLocationNV.BuffermallocStack(int capacity)Returns a newVkCoarseSampleLocationNV.Bufferinstance allocated on the thread-localMemoryStack.static VkCoarseSampleLocationNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkCoarseSampleLocationNV.Bufferinstance allocated on the specifiedMemoryStack.static VkCoarseSampleLocationNVmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkCoarseSampleLocationNVinstance allocated on the specifiedMemoryStack.static intnpixelX(long struct)Unsafe version ofpixelX().static voidnpixelX(long struct, int value)Unsafe version ofpixelX.static intnpixelY(long struct)Unsafe version ofpixelY().static voidnpixelY(long struct, int value)Unsafe version ofpixelY.static intnsample(long struct)Unsafe version ofsample().static voidnsample(long struct, int value)Unsafe version ofsample.intpixelX()Returns the value of thepixelXfield.VkCoarseSampleLocationNVpixelX(int value)Sets the specified value to thepixelXfield.intpixelY()Returns the value of thepixelYfield.VkCoarseSampleLocationNVpixelY(int value)Sets the specified value to thepixelYfield.intsample()Returns the value of thesamplefield.VkCoarseSampleLocationNVsample(int value)Sets the specified value to thesamplefield.VkCoarseSampleLocationNVset(int pixelX, int pixelY, int sample)Initializes this struct with the specified values.VkCoarseSampleLocationNVset(VkCoarseSampleLocationNV src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
VkCoarseSampleLocationNV
public VkCoarseSampleLocationNV(java.nio.ByteBuffer container)
Creates aVkCoarseSampleLocationNVinstance 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
-
pixelX
public int pixelX()
Returns the value of thepixelXfield.
-
pixelY
public int pixelY()
Returns the value of thepixelYfield.
-
sample
public int sample()
Returns the value of thesamplefield.
-
pixelX
public VkCoarseSampleLocationNV pixelX(int value)
Sets the specified value to thepixelXfield.
-
pixelY
public VkCoarseSampleLocationNV pixelY(int value)
Sets the specified value to thepixelYfield.
-
sample
public VkCoarseSampleLocationNV sample(int value)
Sets the specified value to thesamplefield.
-
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 newVkCoarseSampleLocationNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkCoarseSampleLocationNV calloc()
Returns a newVkCoarseSampleLocationNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkCoarseSampleLocationNV create()
Returns a newVkCoarseSampleLocationNVinstance allocated withBufferUtils.
-
create
public static VkCoarseSampleLocationNV create(long address)
Returns a newVkCoarseSampleLocationNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkCoarseSampleLocationNV createSafe(long address)
-
malloc
public static VkCoarseSampleLocationNV.Buffer malloc(int capacity)
Returns a newVkCoarseSampleLocationNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkCoarseSampleLocationNV.Buffer calloc(int capacity)
Returns a newVkCoarseSampleLocationNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkCoarseSampleLocationNV.Buffer create(int capacity)
Returns a newVkCoarseSampleLocationNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkCoarseSampleLocationNV.Buffer create(long address, int capacity)
Create aVkCoarseSampleLocationNV.Bufferinstance 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 newVkCoarseSampleLocationNVinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkCoarseSampleLocationNV callocStack()
Returns a newVkCoarseSampleLocationNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkCoarseSampleLocationNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkCoarseSampleLocationNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkCoarseSampleLocationNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkCoarseSampleLocationNVinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkCoarseSampleLocationNV.Buffer callocStack(int capacity)
Returns a newVkCoarseSampleLocationNV.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-