Package org.lwjgl.vulkan
Class VkPhysicalDeviceSubgroupSizeControlProperties
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceSubgroupSizeControlProperties
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceSubgroupSizeControlPropertiesEXT
public class VkPhysicalDeviceSubgroupSizeControlProperties extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing the control subgroup size properties of an implementation.Description
If the
VkPhysicalDeviceSubgroupSizeControlPropertiesstructure is included in thepNextchain of theVkPhysicalDeviceProperties2structure passed toGetPhysicalDeviceProperties2, it is filled in with each corresponding implementation-dependent property.If
VkPhysicalDeviceSubgroupProperties::supportedOperationsincludesSUBGROUP_FEATURE_QUAD_BIT,minSubgroupSizemust be greater than or equal to 4.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceSubgroupSizeControlProperties { VkStructureTypesType(); void *pNext(); uint32_tminSubgroupSize(); uint32_tmaxSubgroupSize(); uint32_tmaxComputeWorkgroupSubgroups(); VkShaderStageFlagsrequiredSubgroupSizeStages(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceSubgroupSizeControlProperties.BufferAn array ofVkPhysicalDeviceSubgroupSizeControlPropertiesstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intMAXCOMPUTEWORKGROUPSUBGROUPS
MAXSUBGROUPSIZE
MINSUBGROUPSIZE
PNEXT
REQUIREDSUBGROUPSIZESTAGESThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceSubgroupSizeControlProperties(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceSubgroupSizeControlPropertiesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceSubgroupSizeControlPropertiescalloc()Returns a newVkPhysicalDeviceSubgroupSizeControlPropertiesinstance allocated withmemCalloc.static VkPhysicalDeviceSubgroupSizeControlProperties.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceSubgroupSizeControlProperties.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceSubgroupSizeControlProperties.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSubgroupSizeControlProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceSubgroupSizeControlPropertiescalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSubgroupSizeControlPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceSubgroupSizeControlPropertiescreate()Returns a newVkPhysicalDeviceSubgroupSizeControlPropertiesinstance allocated withBufferUtils.static VkPhysicalDeviceSubgroupSizeControlProperties.Buffercreate(int capacity)Returns a newVkPhysicalDeviceSubgroupSizeControlProperties.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceSubgroupSizeControlPropertiescreate(long address)Returns a newVkPhysicalDeviceSubgroupSizeControlPropertiesinstance for the specified memory address.static VkPhysicalDeviceSubgroupSizeControlProperties.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceSubgroupSizeControlProperties.Bufferinstance at the specified memory.static VkPhysicalDeviceSubgroupSizeControlPropertiescreateSafe(long address)static VkPhysicalDeviceSubgroupSizeControlProperties.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceSubgroupSizeControlPropertiesmalloc()Returns a newVkPhysicalDeviceSubgroupSizeControlPropertiesinstance allocated withmemAlloc.static VkPhysicalDeviceSubgroupSizeControlProperties.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceSubgroupSizeControlProperties.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceSubgroupSizeControlProperties.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSubgroupSizeControlProperties.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceSubgroupSizeControlPropertiesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSubgroupSizeControlPropertiesinstance allocated on the specifiedMemoryStack.intmaxComputeWorkgroupSubgroups()the maximum number of subgroups supported by the implementation within a workgroup.intmaxSubgroupSize()the maximum subgroup size supported by this device.intminSubgroupSize()the minimum subgroup size supported by this device.static intnmaxComputeWorkgroupSubgroups(long struct)Unsafe version ofmaxComputeWorkgroupSubgroups().static intnmaxSubgroupSize(long struct)Unsafe version ofmaxSubgroupSize().static intnminSubgroupSize(long struct)Unsafe version ofminSubgroupSize().static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnrequiredSubgroupSizeStages(long struct)Unsafe version ofrequiredSubgroupSizeStages().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.VkPhysicalDeviceSubgroupSizeControlPropertiespNext(long value)Sets the specified value to thepNext()field.intrequiredSubgroupSizeStages()a bitfield of what shader stages support having a required subgroup size specified.VkPhysicalDeviceSubgroupSizeControlPropertiesset(int sType, long pNext)Initializes this struct with the specified values.VkPhysicalDeviceSubgroupSizeControlPropertiesset(VkPhysicalDeviceSubgroupSizeControlProperties src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceSubgroupSizeControlPropertiessType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceSubgroupSizeControlPropertiessType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SUBGROUP_SIZE_CONTROL_PROPERTIESvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceSubgroupSizeControlProperties
public VkPhysicalDeviceSubgroupSizeControlProperties(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceSubgroupSizeControlPropertiesinstance 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.
-
minSubgroupSize
public int minSubgroupSize()
the minimum subgroup size supported by this device.minSubgroupSizeis at least one if any of the physical device’s queues supportQUEUE_GRAPHICS_BITorQUEUE_COMPUTE_BIT.minSubgroupSizeis a power-of-two.minSubgroupSizeis less than or equal tomaxSubgroupSize.minSubgroupSizeis less than or equal to subgroupSize.
-
maxSubgroupSize
public int maxSubgroupSize()
the maximum subgroup size supported by this device.maxSubgroupSizeis at least one if any of the physical device’s queues supportQUEUE_GRAPHICS_BITorQUEUE_COMPUTE_BIT.maxSubgroupSizeis a power-of-two.maxSubgroupSizeis greater than or equal tominSubgroupSize.maxSubgroupSizeis greater than or equal to subgroupSize.
-
maxComputeWorkgroupSubgroups
public int maxComputeWorkgroupSubgroups()
the maximum number of subgroups supported by the implementation within a workgroup.
-
requiredSubgroupSizeStages
public int requiredSubgroupSizeStages()
a bitfield of what shader stages support having a required subgroup size specified.
-
sType
public VkPhysicalDeviceSubgroupSizeControlProperties sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceSubgroupSizeControlProperties sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SUBGROUP_SIZE_CONTROL_PROPERTIESvalue to thesType()field.
-
pNext
public VkPhysicalDeviceSubgroupSizeControlProperties pNext(long value)
Sets the specified value to thepNext()field.
-
set
public VkPhysicalDeviceSubgroupSizeControlProperties set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceSubgroupSizeControlProperties set(VkPhysicalDeviceSubgroupSizeControlProperties src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceSubgroupSizeControlProperties malloc()
Returns a newVkPhysicalDeviceSubgroupSizeControlPropertiesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceSubgroupSizeControlProperties calloc()
Returns a newVkPhysicalDeviceSubgroupSizeControlPropertiesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceSubgroupSizeControlProperties create()
Returns a newVkPhysicalDeviceSubgroupSizeControlPropertiesinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceSubgroupSizeControlProperties create(long address)
Returns a newVkPhysicalDeviceSubgroupSizeControlPropertiesinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceSubgroupSizeControlProperties createSafe(long address)
-
malloc
public static VkPhysicalDeviceSubgroupSizeControlProperties.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceSubgroupSizeControlProperties.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceSubgroupSizeControlProperties.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceSubgroupSizeControlProperties.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceSubgroupSizeControlProperties.Buffer create(int capacity)
Returns a newVkPhysicalDeviceSubgroupSizeControlProperties.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceSubgroupSizeControlProperties.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceSubgroupSizeControlProperties.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceSubgroupSizeControlProperties.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceSubgroupSizeControlProperties malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSubgroupSizeControlPropertiesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceSubgroupSizeControlProperties calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSubgroupSizeControlPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceSubgroupSizeControlProperties.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSubgroupSizeControlProperties.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceSubgroupSizeControlProperties.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSubgroupSizeControlProperties.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().
-
nminSubgroupSize
public static int nminSubgroupSize(long struct)
Unsafe version ofminSubgroupSize().
-
nmaxSubgroupSize
public static int nmaxSubgroupSize(long struct)
Unsafe version ofmaxSubgroupSize().
-
nmaxComputeWorkgroupSubgroups
public static int nmaxComputeWorkgroupSubgroups(long struct)
Unsafe version ofmaxComputeWorkgroupSubgroups().
-
nrequiredSubgroupSizeStages
public static int nrequiredSubgroupSizeStages(long struct)
Unsafe version ofrequiredSubgroupSizeStages().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
-