Package org.lwjgl.vulkan
Class VkPhysicalDeviceFragmentShadingRateFeaturesKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceFragmentShadingRateFeaturesKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceFragmentShadingRateFeaturesKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure indicating support for variable rate fragment shading.Description
If the
VkPhysicalDeviceFragmentShadingRateFeaturesKHRstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceFragmentShadingRateFeaturesKHRcan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceFragmentShadingRateFeaturesKHR { VkStructureTypesType(); void *pNext(); VkBool32pipelineFragmentShadingRate(); VkBool32primitiveFragmentShadingRate(); VkBool32attachmentFragmentShadingRate(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceFragmentShadingRateFeaturesKHR.BufferAn array ofVkPhysicalDeviceFragmentShadingRateFeaturesKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intATTACHMENTFRAGMENTSHADINGRATE
PIPELINEFRAGMENTSHADINGRATE
PNEXT
PRIMITIVEFRAGMENTSHADINGRATEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceFragmentShadingRateFeaturesKHR(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceFragmentShadingRateFeaturesKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanattachmentFragmentShadingRate()indicates that the implementation supports the attachment fragment shading rate.VkPhysicalDeviceFragmentShadingRateFeaturesKHRattachmentFragmentShadingRate(boolean value)Sets the specified value to theattachmentFragmentShadingRate()field.static VkPhysicalDeviceFragmentShadingRateFeaturesKHRcalloc()Returns a newVkPhysicalDeviceFragmentShadingRateFeaturesKHRinstance allocated withmemCalloc.static VkPhysicalDeviceFragmentShadingRateFeaturesKHR.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceFragmentShadingRateFeaturesKHR.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceFragmentShadingRateFeaturesKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceFragmentShadingRateFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceFragmentShadingRateFeaturesKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceFragmentShadingRateFeaturesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceFragmentShadingRateFeaturesKHRcreate()Returns a newVkPhysicalDeviceFragmentShadingRateFeaturesKHRinstance allocated withBufferUtils.static VkPhysicalDeviceFragmentShadingRateFeaturesKHR.Buffercreate(int capacity)Returns a newVkPhysicalDeviceFragmentShadingRateFeaturesKHR.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceFragmentShadingRateFeaturesKHRcreate(long address)Returns a newVkPhysicalDeviceFragmentShadingRateFeaturesKHRinstance for the specified memory address.static VkPhysicalDeviceFragmentShadingRateFeaturesKHR.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceFragmentShadingRateFeaturesKHR.Bufferinstance at the specified memory.static VkPhysicalDeviceFragmentShadingRateFeaturesKHRcreateSafe(long address)static VkPhysicalDeviceFragmentShadingRateFeaturesKHR.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceFragmentShadingRateFeaturesKHRmalloc()Returns a newVkPhysicalDeviceFragmentShadingRateFeaturesKHRinstance allocated withmemAlloc.static VkPhysicalDeviceFragmentShadingRateFeaturesKHR.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceFragmentShadingRateFeaturesKHR.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceFragmentShadingRateFeaturesKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceFragmentShadingRateFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceFragmentShadingRateFeaturesKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceFragmentShadingRateFeaturesKHRinstance allocated on the specifiedMemoryStack.static intnattachmentFragmentShadingRate(long struct)Unsafe version ofattachmentFragmentShadingRate().static voidnattachmentFragmentShadingRate(long struct, int value)Unsafe version ofattachmentFragmentShadingRate.static intnpipelineFragmentShadingRate(long struct)Unsafe version ofpipelineFragmentShadingRate().static voidnpipelineFragmentShadingRate(long struct, int value)Unsafe version ofpipelineFragmentShadingRate.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnprimitiveFragmentShadingRate(long struct)Unsafe version ofprimitiveFragmentShadingRate().static voidnprimitiveFragmentShadingRate(long struct, int value)Unsafe version ofprimitiveFragmentShadingRate.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.booleanpipelineFragmentShadingRate()indicates that the implementation supports the pipeline fragment shading rate.VkPhysicalDeviceFragmentShadingRateFeaturesKHRpipelineFragmentShadingRate(boolean value)Sets the specified value to thepipelineFragmentShadingRate()field.longpNext()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceFragmentShadingRateFeaturesKHRpNext(long value)Sets the specified value to thepNext()field.booleanprimitiveFragmentShadingRate()indicates that the implementation supports the primitive fragment shading rate.VkPhysicalDeviceFragmentShadingRateFeaturesKHRprimitiveFragmentShadingRate(boolean value)Sets the specified value to theprimitiveFragmentShadingRate()field.VkPhysicalDeviceFragmentShadingRateFeaturesKHRset(int sType, long pNext, boolean pipelineFragmentShadingRate, boolean primitiveFragmentShadingRate, boolean attachmentFragmentShadingRate)Initializes this struct with the specified values.VkPhysicalDeviceFragmentShadingRateFeaturesKHRset(VkPhysicalDeviceFragmentShadingRateFeaturesKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceFragmentShadingRateFeaturesKHRsType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceFragmentShadingRateFeaturesKHRsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_FEATURES_KHRvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceFragmentShadingRateFeaturesKHR
public VkPhysicalDeviceFragmentShadingRateFeaturesKHR(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceFragmentShadingRateFeaturesKHRinstance 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.
-
pipelineFragmentShadingRate
public boolean pipelineFragmentShadingRate()
indicates that the implementation supports the pipeline fragment shading rate.
-
primitiveFragmentShadingRate
public boolean primitiveFragmentShadingRate()
indicates that the implementation supports the primitive fragment shading rate.
-
attachmentFragmentShadingRate
public boolean attachmentFragmentShadingRate()
indicates that the implementation supports the attachment fragment shading rate.
-
sType
public VkPhysicalDeviceFragmentShadingRateFeaturesKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceFragmentShadingRateFeaturesKHR sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_FEATURES_KHRvalue to thesType()field.
-
pNext
public VkPhysicalDeviceFragmentShadingRateFeaturesKHR pNext(long value)
Sets the specified value to thepNext()field.
-
pipelineFragmentShadingRate
public VkPhysicalDeviceFragmentShadingRateFeaturesKHR pipelineFragmentShadingRate(boolean value)
Sets the specified value to thepipelineFragmentShadingRate()field.
-
primitiveFragmentShadingRate
public VkPhysicalDeviceFragmentShadingRateFeaturesKHR primitiveFragmentShadingRate(boolean value)
Sets the specified value to theprimitiveFragmentShadingRate()field.
-
attachmentFragmentShadingRate
public VkPhysicalDeviceFragmentShadingRateFeaturesKHR attachmentFragmentShadingRate(boolean value)
Sets the specified value to theattachmentFragmentShadingRate()field.
-
set
public VkPhysicalDeviceFragmentShadingRateFeaturesKHR set(int sType, long pNext, boolean pipelineFragmentShadingRate, boolean primitiveFragmentShadingRate, boolean attachmentFragmentShadingRate)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceFragmentShadingRateFeaturesKHR set(VkPhysicalDeviceFragmentShadingRateFeaturesKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceFragmentShadingRateFeaturesKHR malloc()
Returns a newVkPhysicalDeviceFragmentShadingRateFeaturesKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceFragmentShadingRateFeaturesKHR calloc()
Returns a newVkPhysicalDeviceFragmentShadingRateFeaturesKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceFragmentShadingRateFeaturesKHR create()
Returns a newVkPhysicalDeviceFragmentShadingRateFeaturesKHRinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceFragmentShadingRateFeaturesKHR create(long address)
Returns a newVkPhysicalDeviceFragmentShadingRateFeaturesKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceFragmentShadingRateFeaturesKHR createSafe(long address)
-
malloc
public static VkPhysicalDeviceFragmentShadingRateFeaturesKHR.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceFragmentShadingRateFeaturesKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceFragmentShadingRateFeaturesKHR.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceFragmentShadingRateFeaturesKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceFragmentShadingRateFeaturesKHR.Buffer create(int capacity)
Returns a newVkPhysicalDeviceFragmentShadingRateFeaturesKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceFragmentShadingRateFeaturesKHR.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceFragmentShadingRateFeaturesKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceFragmentShadingRateFeaturesKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceFragmentShadingRateFeaturesKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceFragmentShadingRateFeaturesKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceFragmentShadingRateFeaturesKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceFragmentShadingRateFeaturesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceFragmentShadingRateFeaturesKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceFragmentShadingRateFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceFragmentShadingRateFeaturesKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceFragmentShadingRateFeaturesKHR.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().
-
npipelineFragmentShadingRate
public static int npipelineFragmentShadingRate(long struct)
Unsafe version ofpipelineFragmentShadingRate().
-
nprimitiveFragmentShadingRate
public static int nprimitiveFragmentShadingRate(long struct)
Unsafe version ofprimitiveFragmentShadingRate().
-
nattachmentFragmentShadingRate
public static int nattachmentFragmentShadingRate(long struct)
Unsafe version ofattachmentFragmentShadingRate().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
npipelineFragmentShadingRate
public static void npipelineFragmentShadingRate(long struct, int value)Unsafe version ofpipelineFragmentShadingRate.
-
nprimitiveFragmentShadingRate
public static void nprimitiveFragmentShadingRate(long struct, int value)Unsafe version ofprimitiveFragmentShadingRate.
-
nattachmentFragmentShadingRate
public static void nattachmentFragmentShadingRate(long struct, int value)Unsafe version ofattachmentFragmentShadingRate.
-
-