Package org.lwjgl.vulkan
Class VkPipelineFragmentShadingRateEnumStateCreateInfoNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPipelineFragmentShadingRateEnumStateCreateInfoNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPipelineFragmentShadingRateEnumStateCreateInfoNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying parameters controlling the fragment shading rate using rate enums.Description
If the
pNextchain ofVkGraphicsPipelineCreateInfoincludes aVkPipelineFragmentShadingRateEnumStateCreateInfoNVstructure, then that structure includes parameters controlling the pipeline fragment shading rate.If this structure is not present,
shadingRateTypeis considered to be equal toFRAGMENT_SHADING_RATE_TYPE_FRAGMENT_SIZE_NV,shadingRateis considered to be equal toFRAGMENT_SHADING_RATE_1_INVOCATION_PER_PIXEL_NV, and both elements ofcombinerOpsare considered to be equal toFRAGMENT_SHADING_RATE_COMBINER_OP_KEEP_KHR.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PIPELINE_FRAGMENT_SHADING_RATE_ENUM_STATE_CREATE_INFO_NVshadingRateTypemust be a validVkFragmentShadingRateTypeNVvalueshadingRatemust be a validVkFragmentShadingRateNVvalue- Any given element of
combinerOpsmust be a validVkFragmentShadingRateCombinerOpKHRvalue
Layout
struct VkPipelineFragmentShadingRateEnumStateCreateInfoNV { VkStructureTypesType(); void const *pNext(); VkFragmentShadingRateTypeNVshadingRateType(); VkFragmentShadingRateNVshadingRate(); VkFragmentShadingRateCombinerOpKHRcombinerOps()[2]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPipelineFragmentShadingRateEnumStateCreateInfoNV.BufferAn array ofVkPipelineFragmentShadingRateEnumStateCreateInfoNVstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCOMBINEROPS
PNEXT
SHADINGRATE
SHADINGRATETYPEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPipelineFragmentShadingRateEnumStateCreateInfoNV(java.nio.ByteBuffer container)Creates aVkPipelineFragmentShadingRateEnumStateCreateInfoNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPipelineFragmentShadingRateEnumStateCreateInfoNVcalloc()Returns a newVkPipelineFragmentShadingRateEnumStateCreateInfoNVinstance allocated withmemCalloc.static VkPipelineFragmentShadingRateEnumStateCreateInfoNV.Buffercalloc(int capacity)Returns a newVkPipelineFragmentShadingRateEnumStateCreateInfoNV.Bufferinstance allocated withmemCalloc.static VkPipelineFragmentShadingRateEnumStateCreateInfoNV.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineFragmentShadingRateEnumStateCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineFragmentShadingRateEnumStateCreateInfoNVcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineFragmentShadingRateEnumStateCreateInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.java.nio.IntBuffercombinerOps()specifiesVkFragmentShadingRateCombinerOpKHRvalues determining how the pipeline, primitive, and attachment shading rates are combined for fragments generated by drawing commands using the created pipeline.intcombinerOps(int index)specifiesVkFragmentShadingRateCombinerOpKHRvalues determining how the pipeline, primitive, and attachment shading rates are combined for fragments generated by drawing commands using the created pipeline.VkPipelineFragmentShadingRateEnumStateCreateInfoNVcombinerOps(int index, int value)Sets the specified value at the specified index of thecombinerOps()field.VkPipelineFragmentShadingRateEnumStateCreateInfoNVcombinerOps(java.nio.IntBuffer value)Copies the specifiedIntBufferto thecombinerOps()field.static VkPipelineFragmentShadingRateEnumStateCreateInfoNVcreate()Returns a newVkPipelineFragmentShadingRateEnumStateCreateInfoNVinstance allocated withBufferUtils.static VkPipelineFragmentShadingRateEnumStateCreateInfoNV.Buffercreate(int capacity)Returns a newVkPipelineFragmentShadingRateEnumStateCreateInfoNV.Bufferinstance allocated withBufferUtils.static VkPipelineFragmentShadingRateEnumStateCreateInfoNVcreate(long address)Returns a newVkPipelineFragmentShadingRateEnumStateCreateInfoNVinstance for the specified memory address.static VkPipelineFragmentShadingRateEnumStateCreateInfoNV.Buffercreate(long address, int capacity)Create aVkPipelineFragmentShadingRateEnumStateCreateInfoNV.Bufferinstance at the specified memory.static VkPipelineFragmentShadingRateEnumStateCreateInfoNVcreateSafe(long address)static VkPipelineFragmentShadingRateEnumStateCreateInfoNV.BuffercreateSafe(long address, int capacity)static VkPipelineFragmentShadingRateEnumStateCreateInfoNVmalloc()Returns a newVkPipelineFragmentShadingRateEnumStateCreateInfoNVinstance allocated withmemAlloc.static VkPipelineFragmentShadingRateEnumStateCreateInfoNV.Buffermalloc(int capacity)Returns a newVkPipelineFragmentShadingRateEnumStateCreateInfoNV.Bufferinstance allocated withmemAlloc.static VkPipelineFragmentShadingRateEnumStateCreateInfoNV.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineFragmentShadingRateEnumStateCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStack.static VkPipelineFragmentShadingRateEnumStateCreateInfoNVmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineFragmentShadingRateEnumStateCreateInfoNVinstance allocated on the specifiedMemoryStack.static java.nio.IntBufferncombinerOps(long struct)Unsafe version ofcombinerOps().static intncombinerOps(long struct, int index)Unsafe version ofcombinerOps.static voidncombinerOps(long struct, int index, int value)Unsafe version ofcombinerOps.static voidncombinerOps(long struct, java.nio.IntBuffer value)Unsafe version ofcombinerOps.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnshadingRate(long struct)Unsafe version ofshadingRate().static voidnshadingRate(long struct, int value)Unsafe version ofshadingRate.static intnshadingRateType(long struct)Unsafe version ofshadingRateType().static voidnshadingRateType(long struct, int value)Unsafe version ofshadingRateType.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()NULLor a pointer to a structure extending this structure.VkPipelineFragmentShadingRateEnumStateCreateInfoNVpNext(long value)Sets the specified value to thepNext()field.VkPipelineFragmentShadingRateEnumStateCreateInfoNVset(int sType, long pNext, int shadingRateType, int shadingRate, java.nio.IntBuffer combinerOps)Initializes this struct with the specified values.VkPipelineFragmentShadingRateEnumStateCreateInfoNVset(VkPipelineFragmentShadingRateEnumStateCreateInfoNV src)Copies the specified struct data to this struct.intshadingRate()specifies aVkFragmentShadingRateNVvalue indicating the pipeline fragment shading rate.VkPipelineFragmentShadingRateEnumStateCreateInfoNVshadingRate(int value)Sets the specified value to theshadingRate()field.intshadingRateType()specifies aVkFragmentShadingRateTypeNVvalue indicating whether fragment shading rates are specified using fragment sizes orVkFragmentShadingRateNVenums.VkPipelineFragmentShadingRateEnumStateCreateInfoNVshadingRateType(int value)Sets the specified value to theshadingRateType()field.intsizeof()intsType()the type of this structure.VkPipelineFragmentShadingRateEnumStateCreateInfoNVsType(int value)Sets the specified value to thesType()field.VkPipelineFragmentShadingRateEnumStateCreateInfoNVsType$Default()Sets theSTRUCTURE_TYPE_PIPELINE_FRAGMENT_SHADING_RATE_ENUM_STATE_CREATE_INFO_NVvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPipelineFragmentShadingRateEnumStateCreateInfoNV
public VkPipelineFragmentShadingRateEnumStateCreateInfoNV(java.nio.ByteBuffer container)
Creates aVkPipelineFragmentShadingRateEnumStateCreateInfoNVinstance 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
-
sType
public int sType()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
shadingRateType
public int shadingRateType()
specifies aVkFragmentShadingRateTypeNVvalue indicating whether fragment shading rates are specified using fragment sizes orVkFragmentShadingRateNVenums.
-
shadingRate
public int shadingRate()
specifies aVkFragmentShadingRateNVvalue indicating the pipeline fragment shading rate.
-
combinerOps
public java.nio.IntBuffer combinerOps() public int combinerOps(int index)
specifiesVkFragmentShadingRateCombinerOpKHRvalues determining how the pipeline, primitive, and attachment shading rates are combined for fragments generated by drawing commands using the created pipeline.
-
sType
public VkPipelineFragmentShadingRateEnumStateCreateInfoNV sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPipelineFragmentShadingRateEnumStateCreateInfoNV sType$Default()
Sets theSTRUCTURE_TYPE_PIPELINE_FRAGMENT_SHADING_RATE_ENUM_STATE_CREATE_INFO_NVvalue to thesType()field.
-
pNext
public VkPipelineFragmentShadingRateEnumStateCreateInfoNV pNext(long value)
Sets the specified value to thepNext()field.
-
shadingRateType
public VkPipelineFragmentShadingRateEnumStateCreateInfoNV shadingRateType(int value)
Sets the specified value to theshadingRateType()field.
-
shadingRate
public VkPipelineFragmentShadingRateEnumStateCreateInfoNV shadingRate(int value)
Sets the specified value to theshadingRate()field.
-
combinerOps
public VkPipelineFragmentShadingRateEnumStateCreateInfoNV combinerOps(java.nio.IntBuffer value)
Copies the specifiedIntBufferto thecombinerOps()field.
-
combinerOps
public VkPipelineFragmentShadingRateEnumStateCreateInfoNV combinerOps(int index, int value)
Sets the specified value at the specified index of thecombinerOps()field.
-
set
public VkPipelineFragmentShadingRateEnumStateCreateInfoNV set(int sType, long pNext, int shadingRateType, int shadingRate, java.nio.IntBuffer combinerOps)
Initializes this struct with the specified values.
-
set
public VkPipelineFragmentShadingRateEnumStateCreateInfoNV set(VkPipelineFragmentShadingRateEnumStateCreateInfoNV src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPipelineFragmentShadingRateEnumStateCreateInfoNV malloc()
Returns a newVkPipelineFragmentShadingRateEnumStateCreateInfoNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPipelineFragmentShadingRateEnumStateCreateInfoNV calloc()
Returns a newVkPipelineFragmentShadingRateEnumStateCreateInfoNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPipelineFragmentShadingRateEnumStateCreateInfoNV create()
Returns a newVkPipelineFragmentShadingRateEnumStateCreateInfoNVinstance allocated withBufferUtils.
-
create
public static VkPipelineFragmentShadingRateEnumStateCreateInfoNV create(long address)
Returns a newVkPipelineFragmentShadingRateEnumStateCreateInfoNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkPipelineFragmentShadingRateEnumStateCreateInfoNV createSafe(long address)
-
malloc
public static VkPipelineFragmentShadingRateEnumStateCreateInfoNV.Buffer malloc(int capacity)
Returns a newVkPipelineFragmentShadingRateEnumStateCreateInfoNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPipelineFragmentShadingRateEnumStateCreateInfoNV.Buffer calloc(int capacity)
Returns a newVkPipelineFragmentShadingRateEnumStateCreateInfoNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineFragmentShadingRateEnumStateCreateInfoNV.Buffer create(int capacity)
Returns a newVkPipelineFragmentShadingRateEnumStateCreateInfoNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineFragmentShadingRateEnumStateCreateInfoNV.Buffer create(long address, int capacity)
Create aVkPipelineFragmentShadingRateEnumStateCreateInfoNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPipelineFragmentShadingRateEnumStateCreateInfoNV.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPipelineFragmentShadingRateEnumStateCreateInfoNV malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineFragmentShadingRateEnumStateCreateInfoNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPipelineFragmentShadingRateEnumStateCreateInfoNV calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineFragmentShadingRateEnumStateCreateInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPipelineFragmentShadingRateEnumStateCreateInfoNV.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineFragmentShadingRateEnumStateCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPipelineFragmentShadingRateEnumStateCreateInfoNV.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineFragmentShadingRateEnumStateCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
nshadingRateType
public static int nshadingRateType(long struct)
Unsafe version ofshadingRateType().
-
nshadingRate
public static int nshadingRate(long struct)
Unsafe version ofshadingRate().
-
ncombinerOps
public static java.nio.IntBuffer ncombinerOps(long struct)
Unsafe version ofcombinerOps().
-
ncombinerOps
public static int ncombinerOps(long struct, int index)Unsafe version ofcombinerOps.
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nshadingRateType
public static void nshadingRateType(long struct, int value)Unsafe version ofshadingRateType.
-
nshadingRate
public static void nshadingRate(long struct, int value)Unsafe version ofshadingRate.
-
ncombinerOps
public static void ncombinerOps(long struct, java.nio.IntBuffer value)Unsafe version ofcombinerOps.
-
ncombinerOps
public static void ncombinerOps(long struct, int index, int value)Unsafe version ofcombinerOps.
-
-