Package org.lwjgl.vulkan
Class VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesKHR
public class VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing support for zero initialization of workgroup memory by an implementation.Description
If the
VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturescan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures { VkStructureTypesType(); void *pNext(); VkBool32shaderZeroInitializeWorkgroupMemory(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures.BufferAn array ofVkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
SHADERZEROINITIALIZEWORKGROUPMEMORYThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturescalloc()Returns a newVkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesinstance allocated withmemCalloc.static VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturescalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturescreate()Returns a newVkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesinstance allocated withBufferUtils.static VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures.Buffercreate(int capacity)Returns a newVkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturescreate(long address)Returns a newVkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesinstance for the specified memory address.static VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures.Bufferinstance at the specified memory.static VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturescreateSafe(long address)static VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesmalloc()Returns a newVkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesinstance allocated withmemAlloc.static VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnshaderZeroInitializeWorkgroupMemory(long struct)Unsafe version ofshaderZeroInitializeWorkgroupMemory().static voidnshaderZeroInitializeWorkgroupMemory(long struct, int value)Unsafe version ofshaderZeroInitializeWorkgroupMemory.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.VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturespNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesset(int sType, long pNext, boolean shaderZeroInitializeWorkgroupMemory)Initializes this struct with the specified values.VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesset(VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures src)Copies the specified struct data to this struct.booleanshaderZeroInitializeWorkgroupMemory()specifies whether the implementation supports initializing a variable in Workgroup storage class.VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesshaderZeroInitializeWorkgroupMemory(boolean value)Sets the specified value to theshaderZeroInitializeWorkgroupMemory()field.intsizeof()intsType()the type of this structure.VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturessType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturessType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_ZERO_INITIALIZE_WORKGROUP_MEMORY_FEATURESvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures
public VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesinstance 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.
-
shaderZeroInitializeWorkgroupMemory
public boolean shaderZeroInitializeWorkgroupMemory()
specifies whether the implementation supports initializing a variable in Workgroup storage class.
-
sType
public VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_ZERO_INITIALIZE_WORKGROUP_MEMORY_FEATURESvalue to thesType()field.
-
pNext
public VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures pNext(long value)
Sets the specified value to thepNext()field.
-
shaderZeroInitializeWorkgroupMemory
public VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures shaderZeroInitializeWorkgroupMemory(boolean value)
Sets the specified value to theshaderZeroInitializeWorkgroupMemory()field.
-
set
public VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures set(int sType, long pNext, boolean shaderZeroInitializeWorkgroupMemory)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures set(VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures malloc()
Returns a newVkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures calloc()
Returns a newVkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures create()
Returns a newVkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures create(long address)
Returns a newVkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures createSafe(long address)
-
malloc
public static VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures.Buffer create(int capacity)
Returns a newVkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures.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().
-
nshaderZeroInitializeWorkgroupMemory
public static int nshaderZeroInitializeWorkgroupMemory(long struct)
Unsafe version ofshaderZeroInitializeWorkgroupMemory().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nshaderZeroInitializeWorkgroupMemory
public static void nshaderZeroInitializeWorkgroupMemory(long struct, int value)Unsafe version ofshaderZeroInitializeWorkgroupMemory.
-
-