Class VkPhysicalDeviceSubgroupSizeControlFeatures
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceSubgroupSizeControlFeatures
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceSubgroupSizeControlFeaturesEXT
public class VkPhysicalDeviceSubgroupSizeControlFeatures extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing the subgroup size control features that can be supported by an implementation.Description
If the
VkPhysicalDeviceSubgroupSizeControlFeaturesstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceSubgroupSizeControlFeaturescan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Note
The
VkPhysicalDeviceSubgroupSizeControlFeaturesEXTstructure was added in version 2 of theVK_EXT_subgroup_size_controlextension. Version 1 implementations of this extension will not fill out the features structure but applications may assume that bothsubgroupSizeControlandcomputeFullSubgroupsare supported if the extension is supported. (See also the Feature Requirements section.) Applications are advised to add aVkPhysicalDeviceSubgroupSizeControlFeaturesEXTstructure to thepNextchain ofVkDeviceCreateInfoto enable the features regardless of the version of the extension supported by the implementation. If the implementation only supports version 1, it will safely ignore theVkPhysicalDeviceSubgroupSizeControlFeaturesEXTstructure.Vulkan 1.3 implementations always support the features structure.
Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceSubgroupSizeControlFeatures { VkStructureTypesType(); void *pNext(); VkBool32subgroupSizeControl(); VkBool32computeFullSubgroups(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceSubgroupSizeControlFeatures.BufferAn array ofVkPhysicalDeviceSubgroupSizeControlFeaturesstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCOMPUTEFULLSUBGROUPS
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
SUBGROUPSIZECONTROLThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceSubgroupSizeControlFeatures(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceSubgroupSizeControlFeaturesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceSubgroupSizeControlFeaturescalloc()Returns a newVkPhysicalDeviceSubgroupSizeControlFeaturesinstance allocated withmemCalloc.static VkPhysicalDeviceSubgroupSizeControlFeatures.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceSubgroupSizeControlFeatures.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceSubgroupSizeControlFeatures.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSubgroupSizeControlFeatures.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceSubgroupSizeControlFeaturescalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSubgroupSizeControlFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.booleancomputeFullSubgroups()indicates whether the implementation supports requiring full subgroups in compute shaders via thePIPELINE_SHADER_STAGE_CREATE_REQUIRE_FULL_SUBGROUPS_BITflag.VkPhysicalDeviceSubgroupSizeControlFeaturescomputeFullSubgroups(boolean value)Sets the specified value to thecomputeFullSubgroups()field.static VkPhysicalDeviceSubgroupSizeControlFeaturescreate()Returns a newVkPhysicalDeviceSubgroupSizeControlFeaturesinstance allocated withBufferUtils.static VkPhysicalDeviceSubgroupSizeControlFeatures.Buffercreate(int capacity)Returns a newVkPhysicalDeviceSubgroupSizeControlFeatures.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceSubgroupSizeControlFeaturescreate(long address)Returns a newVkPhysicalDeviceSubgroupSizeControlFeaturesinstance for the specified memory address.static VkPhysicalDeviceSubgroupSizeControlFeatures.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceSubgroupSizeControlFeatures.Bufferinstance at the specified memory.static VkPhysicalDeviceSubgroupSizeControlFeaturescreateSafe(long address)static VkPhysicalDeviceSubgroupSizeControlFeatures.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceSubgroupSizeControlFeaturesmalloc()Returns a newVkPhysicalDeviceSubgroupSizeControlFeaturesinstance allocated withmemAlloc.static VkPhysicalDeviceSubgroupSizeControlFeatures.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceSubgroupSizeControlFeatures.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceSubgroupSizeControlFeatures.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSubgroupSizeControlFeatures.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceSubgroupSizeControlFeaturesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSubgroupSizeControlFeaturesinstance allocated on the specifiedMemoryStack.static intncomputeFullSubgroups(long struct)Unsafe version ofcomputeFullSubgroups().static voidncomputeFullSubgroups(long struct, int value)Unsafe version ofcomputeFullSubgroups.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.static intnsubgroupSizeControl(long struct)Unsafe version ofsubgroupSizeControl().static voidnsubgroupSizeControl(long struct, int value)Unsafe version ofsubgroupSizeControl.longpNext()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceSubgroupSizeControlFeaturespNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceSubgroupSizeControlFeaturesset(int sType, long pNext, boolean subgroupSizeControl, boolean computeFullSubgroups)Initializes this struct with the specified values.VkPhysicalDeviceSubgroupSizeControlFeaturesset(VkPhysicalDeviceSubgroupSizeControlFeatures src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceSubgroupSizeControlFeaturessType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceSubgroupSizeControlFeaturessType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SUBGROUP_SIZE_CONTROL_FEATURESvalue to thesType()field.booleansubgroupSizeControl()indicates whether the implementation supports controlling shader subgroup sizes via thePIPELINE_SHADER_STAGE_CREATE_ALLOW_VARYING_SUBGROUP_SIZE_BITflag and theVkPipelineShaderStageRequiredSubgroupSizeCreateInfostructure.VkPhysicalDeviceSubgroupSizeControlFeaturessubgroupSizeControl(boolean value)Sets the specified value to thesubgroupSizeControl()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceSubgroupSizeControlFeatures
public VkPhysicalDeviceSubgroupSizeControlFeatures(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceSubgroupSizeControlFeaturesinstance 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.
-
subgroupSizeControl
public boolean subgroupSizeControl()
indicates whether the implementation supports controlling shader subgroup sizes via thePIPELINE_SHADER_STAGE_CREATE_ALLOW_VARYING_SUBGROUP_SIZE_BITflag and theVkPipelineShaderStageRequiredSubgroupSizeCreateInfostructure.
-
computeFullSubgroups
public boolean computeFullSubgroups()
indicates whether the implementation supports requiring full subgroups in compute shaders via thePIPELINE_SHADER_STAGE_CREATE_REQUIRE_FULL_SUBGROUPS_BITflag.
-
sType
public VkPhysicalDeviceSubgroupSizeControlFeatures sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceSubgroupSizeControlFeatures sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SUBGROUP_SIZE_CONTROL_FEATURESvalue to thesType()field.
-
pNext
public VkPhysicalDeviceSubgroupSizeControlFeatures pNext(long value)
Sets the specified value to thepNext()field.
-
subgroupSizeControl
public VkPhysicalDeviceSubgroupSizeControlFeatures subgroupSizeControl(boolean value)
Sets the specified value to thesubgroupSizeControl()field.
-
computeFullSubgroups
public VkPhysicalDeviceSubgroupSizeControlFeatures computeFullSubgroups(boolean value)
Sets the specified value to thecomputeFullSubgroups()field.
-
set
public VkPhysicalDeviceSubgroupSizeControlFeatures set(int sType, long pNext, boolean subgroupSizeControl, boolean computeFullSubgroups)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceSubgroupSizeControlFeatures set(VkPhysicalDeviceSubgroupSizeControlFeatures src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceSubgroupSizeControlFeatures malloc()
Returns a newVkPhysicalDeviceSubgroupSizeControlFeaturesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceSubgroupSizeControlFeatures calloc()
Returns a newVkPhysicalDeviceSubgroupSizeControlFeaturesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceSubgroupSizeControlFeatures create()
Returns a newVkPhysicalDeviceSubgroupSizeControlFeaturesinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceSubgroupSizeControlFeatures create(long address)
Returns a newVkPhysicalDeviceSubgroupSizeControlFeaturesinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceSubgroupSizeControlFeatures createSafe(long address)
-
malloc
public static VkPhysicalDeviceSubgroupSizeControlFeatures.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceSubgroupSizeControlFeatures.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceSubgroupSizeControlFeatures.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceSubgroupSizeControlFeatures.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceSubgroupSizeControlFeatures.Buffer create(int capacity)
Returns a newVkPhysicalDeviceSubgroupSizeControlFeatures.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceSubgroupSizeControlFeatures.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceSubgroupSizeControlFeatures.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceSubgroupSizeControlFeatures.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceSubgroupSizeControlFeatures malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSubgroupSizeControlFeaturesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceSubgroupSizeControlFeatures calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSubgroupSizeControlFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceSubgroupSizeControlFeatures.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSubgroupSizeControlFeatures.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceSubgroupSizeControlFeatures.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSubgroupSizeControlFeatures.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().
-
nsubgroupSizeControl
public static int nsubgroupSizeControl(long struct)
Unsafe version ofsubgroupSizeControl().
-
ncomputeFullSubgroups
public static int ncomputeFullSubgroups(long struct)
Unsafe version ofcomputeFullSubgroups().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nsubgroupSizeControl
public static void nsubgroupSizeControl(long struct, int value)Unsafe version ofsubgroupSizeControl.
-
ncomputeFullSubgroups
public static void ncomputeFullSubgroups(long struct, int value)Unsafe version ofcomputeFullSubgroups.
-
-