Package org.lwjgl.vulkan
Class VkPipelineFragmentShadingRateStateCreateInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPipelineFragmentShadingRateStateCreateInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPipelineFragmentShadingRateStateCreateInfoKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying parameters controlling the fragment shading rate.Description
If the
pNextchain ofVkGraphicsPipelineCreateInfoincludes aVkPipelineFragmentShadingRateStateCreateInfoKHRstructure, then that structure includes parameters controlling the pipeline fragment shading rate.If this structure is not present,
fragmentSizeis considered to be equal to(1,1), 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_STATE_CREATE_INFO_KHR- Any given element of
combinerOpsmust be a validVkFragmentShadingRateCombinerOpKHRvalue
See Also
Layout
struct VkPipelineFragmentShadingRateStateCreateInfoKHR { VkStructureTypesType(); void const *pNext();VkExtent2DfragmentSize(); VkFragmentShadingRateCombinerOpKHRcombinerOps()[2]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPipelineFragmentShadingRateStateCreateInfoKHR.BufferAn array ofVkPipelineFragmentShadingRateStateCreateInfoKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCOMBINEROPS
FRAGMENTSIZE
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPipelineFragmentShadingRateStateCreateInfoKHR(java.nio.ByteBuffer container)Creates aVkPipelineFragmentShadingRateStateCreateInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPipelineFragmentShadingRateStateCreateInfoKHRcalloc()Returns a newVkPipelineFragmentShadingRateStateCreateInfoKHRinstance allocated withmemCalloc.static VkPipelineFragmentShadingRateStateCreateInfoKHR.Buffercalloc(int capacity)Returns a newVkPipelineFragmentShadingRateStateCreateInfoKHR.Bufferinstance allocated withmemCalloc.static VkPipelineFragmentShadingRateStateCreateInfoKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineFragmentShadingRateStateCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineFragmentShadingRateStateCreateInfoKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineFragmentShadingRateStateCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.java.nio.IntBuffercombinerOps()specifies aVkFragmentShadingRateCombinerOpKHRvalue determining how the pipeline, primitive, and attachment shading rates are combined for fragments generated by drawing commands using the created pipeline.intcombinerOps(int index)specifies aVkFragmentShadingRateCombinerOpKHRvalue determining how the pipeline, primitive, and attachment shading rates are combined for fragments generated by drawing commands using the created pipeline.VkPipelineFragmentShadingRateStateCreateInfoKHRcombinerOps(int index, int value)Sets the specified value at the specified index of thecombinerOps()field.VkPipelineFragmentShadingRateStateCreateInfoKHRcombinerOps(java.nio.IntBuffer value)Copies the specifiedIntBufferto thecombinerOps()field.static VkPipelineFragmentShadingRateStateCreateInfoKHRcreate()Returns a newVkPipelineFragmentShadingRateStateCreateInfoKHRinstance allocated withBufferUtils.static VkPipelineFragmentShadingRateStateCreateInfoKHR.Buffercreate(int capacity)Returns a newVkPipelineFragmentShadingRateStateCreateInfoKHR.Bufferinstance allocated withBufferUtils.static VkPipelineFragmentShadingRateStateCreateInfoKHRcreate(long address)Returns a newVkPipelineFragmentShadingRateStateCreateInfoKHRinstance for the specified memory address.static VkPipelineFragmentShadingRateStateCreateInfoKHR.Buffercreate(long address, int capacity)Create aVkPipelineFragmentShadingRateStateCreateInfoKHR.Bufferinstance at the specified memory.static VkPipelineFragmentShadingRateStateCreateInfoKHRcreateSafe(long address)static VkPipelineFragmentShadingRateStateCreateInfoKHR.BuffercreateSafe(long address, int capacity)VkExtent2DfragmentSize()specifies aVkExtent2Dstructure containing the fragment size used to define the pipeline fragment shading rate for drawing commands using this pipeline.VkPipelineFragmentShadingRateStateCreateInfoKHRfragmentSize(java.util.function.Consumer<VkExtent2D> consumer)Passes thefragmentSize()field to the specifiedConsumer.VkPipelineFragmentShadingRateStateCreateInfoKHRfragmentSize(VkExtent2D value)Copies the specifiedVkExtent2Dto thefragmentSize()field.static VkPipelineFragmentShadingRateStateCreateInfoKHRmalloc()Returns a newVkPipelineFragmentShadingRateStateCreateInfoKHRinstance allocated withmemAlloc.static VkPipelineFragmentShadingRateStateCreateInfoKHR.Buffermalloc(int capacity)Returns a newVkPipelineFragmentShadingRateStateCreateInfoKHR.Bufferinstance allocated withmemAlloc.static VkPipelineFragmentShadingRateStateCreateInfoKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineFragmentShadingRateStateCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkPipelineFragmentShadingRateStateCreateInfoKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineFragmentShadingRateStateCreateInfoKHRinstance 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 VkExtent2DnfragmentSize(long struct)Unsafe version offragmentSize().static voidnfragmentSize(long struct, VkExtent2D value)Unsafe version offragmentSize.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.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.VkPipelineFragmentShadingRateStateCreateInfoKHRpNext(long value)Sets the specified value to thepNext()field.VkPipelineFragmentShadingRateStateCreateInfoKHRset(int sType, long pNext, VkExtent2D fragmentSize, java.nio.IntBuffer combinerOps)Initializes this struct with the specified values.VkPipelineFragmentShadingRateStateCreateInfoKHRset(VkPipelineFragmentShadingRateStateCreateInfoKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPipelineFragmentShadingRateStateCreateInfoKHRsType(int value)Sets the specified value to thesType()field.VkPipelineFragmentShadingRateStateCreateInfoKHRsType$Default()Sets theSTRUCTURE_TYPE_PIPELINE_FRAGMENT_SHADING_RATE_STATE_CREATE_INFO_KHRvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPipelineFragmentShadingRateStateCreateInfoKHR
public VkPipelineFragmentShadingRateStateCreateInfoKHR(java.nio.ByteBuffer container)
Creates aVkPipelineFragmentShadingRateStateCreateInfoKHRinstance 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.
-
fragmentSize
public VkExtent2D fragmentSize()
specifies aVkExtent2Dstructure containing the fragment size used to define the pipeline fragment shading rate for drawing commands using this pipeline.
-
combinerOps
public java.nio.IntBuffer combinerOps() public int combinerOps(int index)
specifies aVkFragmentShadingRateCombinerOpKHRvalue determining how the pipeline, primitive, and attachment shading rates are combined for fragments generated by drawing commands using the created pipeline.
-
sType
public VkPipelineFragmentShadingRateStateCreateInfoKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPipelineFragmentShadingRateStateCreateInfoKHR sType$Default()
Sets theSTRUCTURE_TYPE_PIPELINE_FRAGMENT_SHADING_RATE_STATE_CREATE_INFO_KHRvalue to thesType()field.
-
pNext
public VkPipelineFragmentShadingRateStateCreateInfoKHR pNext(long value)
Sets the specified value to thepNext()field.
-
fragmentSize
public VkPipelineFragmentShadingRateStateCreateInfoKHR fragmentSize(VkExtent2D value)
Copies the specifiedVkExtent2Dto thefragmentSize()field.
-
fragmentSize
public VkPipelineFragmentShadingRateStateCreateInfoKHR fragmentSize(java.util.function.Consumer<VkExtent2D> consumer)
Passes thefragmentSize()field to the specifiedConsumer.
-
combinerOps
public VkPipelineFragmentShadingRateStateCreateInfoKHR combinerOps(java.nio.IntBuffer value)
Copies the specifiedIntBufferto thecombinerOps()field.
-
combinerOps
public VkPipelineFragmentShadingRateStateCreateInfoKHR combinerOps(int index, int value)
Sets the specified value at the specified index of thecombinerOps()field.
-
set
public VkPipelineFragmentShadingRateStateCreateInfoKHR set(int sType, long pNext, VkExtent2D fragmentSize, java.nio.IntBuffer combinerOps)
Initializes this struct with the specified values.
-
set
public VkPipelineFragmentShadingRateStateCreateInfoKHR set(VkPipelineFragmentShadingRateStateCreateInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPipelineFragmentShadingRateStateCreateInfoKHR malloc()
Returns a newVkPipelineFragmentShadingRateStateCreateInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPipelineFragmentShadingRateStateCreateInfoKHR calloc()
Returns a newVkPipelineFragmentShadingRateStateCreateInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPipelineFragmentShadingRateStateCreateInfoKHR create()
Returns a newVkPipelineFragmentShadingRateStateCreateInfoKHRinstance allocated withBufferUtils.
-
create
public static VkPipelineFragmentShadingRateStateCreateInfoKHR create(long address)
Returns a newVkPipelineFragmentShadingRateStateCreateInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkPipelineFragmentShadingRateStateCreateInfoKHR createSafe(long address)
-
malloc
public static VkPipelineFragmentShadingRateStateCreateInfoKHR.Buffer malloc(int capacity)
Returns a newVkPipelineFragmentShadingRateStateCreateInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPipelineFragmentShadingRateStateCreateInfoKHR.Buffer calloc(int capacity)
Returns a newVkPipelineFragmentShadingRateStateCreateInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineFragmentShadingRateStateCreateInfoKHR.Buffer create(int capacity)
Returns a newVkPipelineFragmentShadingRateStateCreateInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineFragmentShadingRateStateCreateInfoKHR.Buffer create(long address, int capacity)
Create aVkPipelineFragmentShadingRateStateCreateInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPipelineFragmentShadingRateStateCreateInfoKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPipelineFragmentShadingRateStateCreateInfoKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineFragmentShadingRateStateCreateInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPipelineFragmentShadingRateStateCreateInfoKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineFragmentShadingRateStateCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPipelineFragmentShadingRateStateCreateInfoKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineFragmentShadingRateStateCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPipelineFragmentShadingRateStateCreateInfoKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineFragmentShadingRateStateCreateInfoKHR.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().
-
nfragmentSize
public static VkExtent2D nfragmentSize(long struct)
Unsafe version offragmentSize().
-
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.
-
nfragmentSize
public static void nfragmentSize(long struct, VkExtent2D value)Unsafe version offragmentSize.
-
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.
-
-