Package org.lwjgl.vulkan
Class VkCoarseSampleOrderCustomNV
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class VkCoarseSampleOrderCustomNV
extends Struct<VkCoarseSampleOrderCustomNV>
implements NativeResource
struct VkCoarseSampleOrderCustomNV {
VkShadingRatePaletteEntryNV shadingRate;
uint32_t sampleCount;
uint32_t sampleLocationCount;
{@link VkCoarseSampleLocationNV VkCoarseSampleLocationNV} const * pSampleLocations;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkCoarseSampleOrderCustomNV(ByteBuffer container) Creates aVkCoarseSampleOrderCustomNVinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkCoarseSampleOrderCustomNVcalloc()Returns a newVkCoarseSampleOrderCustomNVinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkCoarseSampleOrderCustomNV.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkCoarseSampleOrderCustomNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkCoarseSampleOrderCustomNVcalloc(MemoryStack stack) Returns a newVkCoarseSampleOrderCustomNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkCoarseSampleOrderCustomNVDeprecated.callocStack(int capacity) Deprecated.callocStack(int capacity, MemoryStack stack) Deprecated.static VkCoarseSampleOrderCustomNVcallocStack(MemoryStack stack) Deprecated.static VkCoarseSampleOrderCustomNVcreate()Returns a newVkCoarseSampleOrderCustomNVinstance allocated withBufferUtils.create(int capacity) Returns a newVkCoarseSampleOrderCustomNV.Bufferinstance allocated withBufferUtils.static VkCoarseSampleOrderCustomNVcreate(long address) Returns a newVkCoarseSampleOrderCustomNVinstance for the specified memory address.create(long address, int capacity) Create aVkCoarseSampleOrderCustomNV.Bufferinstance at the specified memory.static @Nullable VkCoarseSampleOrderCustomNVcreateSafe(long address) static @Nullable VkCoarseSampleOrderCustomNV.BuffercreateSafe(long address, int capacity) static VkCoarseSampleOrderCustomNVmalloc()Returns a newVkCoarseSampleOrderCustomNVinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkCoarseSampleOrderCustomNV.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkCoarseSampleOrderCustomNV.Bufferinstance allocated on the specifiedMemoryStack.static VkCoarseSampleOrderCustomNVmalloc(MemoryStack stack) Returns a newVkCoarseSampleOrderCustomNVinstance allocated on the specifiedMemoryStack.static VkCoarseSampleOrderCustomNVDeprecated.mallocStack(int capacity) Deprecated.mallocStack(int capacity, MemoryStack stack) Deprecated.static VkCoarseSampleOrderCustomNVmallocStack(MemoryStack stack) Deprecated.npSampleLocations(long struct) Unsafe version ofpSampleLocations().static voidnpSampleLocations(long struct, VkCoarseSampleLocationNV.Buffer value) Unsafe version ofpSampleLocations.static intnsampleCount(long struct) Unsafe version ofsampleCount().static voidnsampleCount(long struct, int value) Unsafe version ofsampleCount.static intnsampleLocationCount(long struct) Unsafe version ofsampleLocationCount().static voidnsampleLocationCount(long struct, int value) Sets the specified value to thesampleLocationCountfield of the specifiedstruct.static intnshadingRate(long struct) Unsafe version ofshadingRate().static voidnshadingRate(long struct, int value) Unsafe version ofshadingRate.Sets the address of the specifiedVkCoarseSampleLocationNV.Bufferto thepSampleLocationsfield.intsampleCount(int value) Sets the specified value to thesampleCountfield.intset(int shadingRate, int sampleCount, VkCoarseSampleLocationNV.Buffer pSampleLocations) Initializes this struct with the specified values.Copies the specified struct data to this struct.intshadingRate(int value) Sets the specified value to theshadingRatefield.intsizeof()Returnssizeof(struct).static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
SHADINGRATE
public static final int SHADINGRATEThe struct member offsets. -
SAMPLECOUNT
public static final int SAMPLECOUNTThe struct member offsets. -
SAMPLELOCATIONCOUNT
public static final int SAMPLELOCATIONCOUNTThe struct member offsets. -
PSAMPLELOCATIONS
public static final int PSAMPLELOCATIONSThe struct member offsets.
-
-
Constructor Details
-
VkCoarseSampleOrderCustomNV
Creates aVkCoarseSampleOrderCustomNVinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkCoarseSampleOrderCustomNV>
-
shadingRate
public int shadingRate()- Returns:
- the value of the
shadingRatefield.
-
sampleCount
public int sampleCount()- Returns:
- the value of the
sampleCountfield.
-
sampleLocationCount
public int sampleLocationCount()- Returns:
- the value of the
sampleLocationCountfield.
-
pSampleLocations
- Returns:
- a
VkCoarseSampleLocationNV.Bufferview of the struct array pointed to by thepSampleLocationsfield.
-
shadingRate
Sets the specified value to theshadingRatefield. -
sampleCount
Sets the specified value to thesampleCountfield. -
pSampleLocations
Sets the address of the specifiedVkCoarseSampleLocationNV.Bufferto thepSampleLocationsfield. -
set
public VkCoarseSampleOrderCustomNV set(int shadingRate, int sampleCount, VkCoarseSampleLocationNV.Buffer pSampleLocations) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkCoarseSampleOrderCustomNVinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkCoarseSampleOrderCustomNVinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkCoarseSampleOrderCustomNVinstance allocated withBufferUtils. -
create
Returns a newVkCoarseSampleOrderCustomNVinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkCoarseSampleOrderCustomNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkCoarseSampleOrderCustomNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkCoarseSampleOrderCustomNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkCoarseSampleOrderCustomNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
@Deprecated public static VkCoarseSampleOrderCustomNV.Buffer mallocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
@Deprecated public static VkCoarseSampleOrderCustomNV.Buffer callocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newVkCoarseSampleOrderCustomNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkCoarseSampleOrderCustomNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkCoarseSampleOrderCustomNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkCoarseSampleOrderCustomNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nshadingRate
public static int nshadingRate(long struct) Unsafe version ofshadingRate(). -
nsampleCount
public static int nsampleCount(long struct) Unsafe version ofsampleCount(). -
nsampleLocationCount
public static int nsampleLocationCount(long struct) Unsafe version ofsampleLocationCount(). -
npSampleLocations
Unsafe version ofpSampleLocations(). -
nshadingRate
public static void nshadingRate(long struct, int value) Unsafe version ofshadingRate. -
nsampleCount
public static void nsampleCount(long struct, int value) Unsafe version ofsampleCount. -
nsampleLocationCount
public static void nsampleLocationCount(long struct, int value) Sets the specified value to thesampleLocationCountfield of the specifiedstruct. -
npSampleLocations
Unsafe version ofpSampleLocations. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-