Package org.lwjgl.vulkan
Class VkPhysicalDeviceFragmentShadingRateKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceFragmentShadingRateKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceFragmentShadingRateKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure returning information about sample count specific additional multisampling capabilities.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_KHRpNextmust beNULL
See Also
VkExtent2D,GetPhysicalDeviceFragmentShadingRatesKHRLayout
struct VkPhysicalDeviceFragmentShadingRateKHR { VkStructureTypesType(); void *pNext(); VkSampleCountFlagssampleCounts();VkExtent2DfragmentSize(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceFragmentShadingRateKHR.BufferAn array ofVkPhysicalDeviceFragmentShadingRateKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intFRAGMENTSIZE
PNEXT
SAMPLECOUNTSThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceFragmentShadingRateKHR(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceFragmentShadingRateKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceFragmentShadingRateKHRcalloc()Returns a newVkPhysicalDeviceFragmentShadingRateKHRinstance allocated withmemCalloc.static VkPhysicalDeviceFragmentShadingRateKHR.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceFragmentShadingRateKHR.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceFragmentShadingRateKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceFragmentShadingRateKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceFragmentShadingRateKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceFragmentShadingRateKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceFragmentShadingRateKHRcreate()Returns a newVkPhysicalDeviceFragmentShadingRateKHRinstance allocated withBufferUtils.static VkPhysicalDeviceFragmentShadingRateKHR.Buffercreate(int capacity)Returns a newVkPhysicalDeviceFragmentShadingRateKHR.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceFragmentShadingRateKHRcreate(long address)Returns a newVkPhysicalDeviceFragmentShadingRateKHRinstance for the specified memory address.static VkPhysicalDeviceFragmentShadingRateKHR.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceFragmentShadingRateKHR.Bufferinstance at the specified memory.static VkPhysicalDeviceFragmentShadingRateKHRcreateSafe(long address)static VkPhysicalDeviceFragmentShadingRateKHR.BuffercreateSafe(long address, int capacity)VkExtent2DfragmentSize()aVkExtent2Ddescribing the width and height of a supported shading rate.static VkPhysicalDeviceFragmentShadingRateKHRmalloc()Returns a newVkPhysicalDeviceFragmentShadingRateKHRinstance allocated withmemAlloc.static VkPhysicalDeviceFragmentShadingRateKHR.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceFragmentShadingRateKHR.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceFragmentShadingRateKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceFragmentShadingRateKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceFragmentShadingRateKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceFragmentShadingRateKHRinstance allocated on the specifiedMemoryStack.static VkExtent2DnfragmentSize(long struct)Unsafe version offragmentSize().static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsampleCounts(long struct)Unsafe version ofsampleCounts().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.VkPhysicalDeviceFragmentShadingRateKHRpNext(long value)Sets the specified value to thepNext()field.intsampleCounts()a bitmask of sample counts for which the shading rate described byfragmentSizeis supported.VkPhysicalDeviceFragmentShadingRateKHRset(int sType, long pNext)Initializes this struct with the specified values.VkPhysicalDeviceFragmentShadingRateKHRset(VkPhysicalDeviceFragmentShadingRateKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceFragmentShadingRateKHRsType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceFragmentShadingRateKHRsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_KHRvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceFragmentShadingRateKHR
public VkPhysicalDeviceFragmentShadingRateKHR(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceFragmentShadingRateKHRinstance 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.
-
sampleCounts
public int sampleCounts()
a bitmask of sample counts for which the shading rate described byfragmentSizeis supported.
-
fragmentSize
public VkExtent2D fragmentSize()
aVkExtent2Ddescribing the width and height of a supported shading rate.
-
sType
public VkPhysicalDeviceFragmentShadingRateKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceFragmentShadingRateKHR sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_KHRvalue to thesType()field.
-
pNext
public VkPhysicalDeviceFragmentShadingRateKHR pNext(long value)
Sets the specified value to thepNext()field.
-
set
public VkPhysicalDeviceFragmentShadingRateKHR set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceFragmentShadingRateKHR set(VkPhysicalDeviceFragmentShadingRateKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceFragmentShadingRateKHR malloc()
Returns a newVkPhysicalDeviceFragmentShadingRateKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceFragmentShadingRateKHR calloc()
Returns a newVkPhysicalDeviceFragmentShadingRateKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceFragmentShadingRateKHR create()
Returns a newVkPhysicalDeviceFragmentShadingRateKHRinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceFragmentShadingRateKHR create(long address)
Returns a newVkPhysicalDeviceFragmentShadingRateKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceFragmentShadingRateKHR createSafe(long address)
-
malloc
public static VkPhysicalDeviceFragmentShadingRateKHR.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceFragmentShadingRateKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceFragmentShadingRateKHR.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceFragmentShadingRateKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceFragmentShadingRateKHR.Buffer create(int capacity)
Returns a newVkPhysicalDeviceFragmentShadingRateKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceFragmentShadingRateKHR.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceFragmentShadingRateKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceFragmentShadingRateKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceFragmentShadingRateKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceFragmentShadingRateKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceFragmentShadingRateKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceFragmentShadingRateKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceFragmentShadingRateKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceFragmentShadingRateKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceFragmentShadingRateKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceFragmentShadingRateKHR.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().
-
nsampleCounts
public static int nsampleCounts(long struct)
Unsafe version ofsampleCounts().
-
nfragmentSize
public static VkExtent2D nfragmentSize(long struct)
Unsafe version offragmentSize().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
-