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 fragmentpixelYmust be less than the height (in pixels) of the fragmentsamplemust be less than the number of coverage samples in each pixel belonging to the fragment
See Also
Layout
struct VkCoarseSampleLocationNV { uint32_tpixelX(); uint32_tpixelY(); uint32_tsample(); }
-
-
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 Deprecated 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 VkCoarseSampleLocationNV.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkCoarseSampleLocationNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkCoarseSampleLocationNVcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkCoarseSampleLocationNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkCoarseSampleLocationNVcallocStack()Deprecated.static VkCoarseSampleLocationNV.BuffercallocStack(int capacity)Deprecated.static VkCoarseSampleLocationNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkCoarseSampleLocationNVcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 VkCoarseSampleLocationNV.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkCoarseSampleLocationNV.Bufferinstance allocated on the specifiedMemoryStack.static VkCoarseSampleLocationNVmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkCoarseSampleLocationNVinstance allocated on the specifiedMemoryStack.static VkCoarseSampleLocationNVmallocStack()Deprecated.static VkCoarseSampleLocationNV.BuffermallocStack(int capacity)Deprecated.static VkCoarseSampleLocationNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkCoarseSampleLocationNVmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()added to the x coordinate of the upper-leftmost pixel of each fragment to identify the pixel containing the coverage sample.VkCoarseSampleLocationNVpixelX(int value)Sets the specified value to thepixelX()field.intpixelY()added to the y coordinate of the upper-leftmost pixel of each fragment to identify the pixel containing the coverage sample.VkCoarseSampleLocationNVpixelY(int value)Sets the specified value to thepixelY()field.intsample()the number of the coverage sample in the pixel identified bypixelXandpixelY.VkCoarseSampleLocationNVsample(int value)Sets the specified value to thesample()field.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()
added to the x coordinate of the upper-leftmost pixel of each fragment to identify the pixel containing the coverage sample.
-
pixelY
public int pixelY()
added to the y coordinate of the upper-leftmost pixel of each fragment to identify the pixel containing the coverage sample.
-
sample
public int sample()
the number of the coverage sample in the pixel identified bypixelXandpixelY.
-
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 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
@Deprecated public static VkCoarseSampleLocationNV mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkCoarseSampleLocationNV callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkCoarseSampleLocationNV mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkCoarseSampleLocationNV callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkCoarseSampleLocationNV.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkCoarseSampleLocationNV.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkCoarseSampleLocationNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkCoarseSampleLocationNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkCoarseSampleLocationNV malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkCoarseSampleLocationNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkCoarseSampleLocationNV calloc(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
-
malloc
public static VkCoarseSampleLocationNV.Buffer malloc(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
-
calloc
public static VkCoarseSampleLocationNV.Buffer calloc(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.
-
-