Package org.lwjgl.vulkan
Class VkPhysicalDeviceSynchronization2Features
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceSynchronization2Features
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceSynchronization2FeaturesKHR
public class VkPhysicalDeviceSynchronization2Features extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing whether the implementation supports v2 synchronization commands.Description
If the
VkPhysicalDeviceSynchronization2Featuresstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceSynchronization2Featurescan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceSynchronization2Features { VkStructureTypesType(); void *pNext(); VkBool32synchronization2(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceSynchronization2Features.BufferAn array ofVkPhysicalDeviceSynchronization2Featuresstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
SYNCHRONIZATION2The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceSynchronization2Features(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceSynchronization2Featuresinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceSynchronization2Featurescalloc()Returns a newVkPhysicalDeviceSynchronization2Featuresinstance allocated withmemCalloc.static VkPhysicalDeviceSynchronization2Features.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceSynchronization2Features.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceSynchronization2Features.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSynchronization2Features.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceSynchronization2Featurescalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSynchronization2Featuresinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceSynchronization2Featurescreate()Returns a newVkPhysicalDeviceSynchronization2Featuresinstance allocated withBufferUtils.static VkPhysicalDeviceSynchronization2Features.Buffercreate(int capacity)Returns a newVkPhysicalDeviceSynchronization2Features.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceSynchronization2Featurescreate(long address)Returns a newVkPhysicalDeviceSynchronization2Featuresinstance for the specified memory address.static VkPhysicalDeviceSynchronization2Features.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceSynchronization2Features.Bufferinstance at the specified memory.static VkPhysicalDeviceSynchronization2FeaturescreateSafe(long address)static VkPhysicalDeviceSynchronization2Features.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceSynchronization2Featuresmalloc()Returns a newVkPhysicalDeviceSynchronization2Featuresinstance allocated withmemAlloc.static VkPhysicalDeviceSynchronization2Features.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceSynchronization2Features.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceSynchronization2Features.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSynchronization2Features.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceSynchronization2Featuresmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSynchronization2Featuresinstance allocated on the specifiedMemoryStack.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 intnsynchronization2(long struct)Unsafe version ofsynchronization2().static voidnsynchronization2(long struct, int value)Unsafe version ofsynchronization2.longpNext()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceSynchronization2FeaturespNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceSynchronization2Featuresset(int sType, long pNext, boolean synchronization2)Initializes this struct with the specified values.VkPhysicalDeviceSynchronization2Featuresset(VkPhysicalDeviceSynchronization2Features src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceSynchronization2FeaturessType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceSynchronization2FeaturessType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SYNCHRONIZATION_2_FEATURESvalue to thesType()field.booleansynchronization2()indicates whether the implementation supports the new set of synchronization commands introduced inVK_KHR_synchronization2.VkPhysicalDeviceSynchronization2Featuressynchronization2(boolean value)Sets the specified value to thesynchronization2()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceSynchronization2Features
public VkPhysicalDeviceSynchronization2Features(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceSynchronization2Featuresinstance 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.
-
synchronization2
public boolean synchronization2()
indicates whether the implementation supports the new set of synchronization commands introduced inVK_KHR_synchronization2.
-
sType
public VkPhysicalDeviceSynchronization2Features sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceSynchronization2Features sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SYNCHRONIZATION_2_FEATURESvalue to thesType()field.
-
pNext
public VkPhysicalDeviceSynchronization2Features pNext(long value)
Sets the specified value to thepNext()field.
-
synchronization2
public VkPhysicalDeviceSynchronization2Features synchronization2(boolean value)
Sets the specified value to thesynchronization2()field.
-
set
public VkPhysicalDeviceSynchronization2Features set(int sType, long pNext, boolean synchronization2)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceSynchronization2Features set(VkPhysicalDeviceSynchronization2Features src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceSynchronization2Features malloc()
Returns a newVkPhysicalDeviceSynchronization2Featuresinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceSynchronization2Features calloc()
Returns a newVkPhysicalDeviceSynchronization2Featuresinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceSynchronization2Features create()
Returns a newVkPhysicalDeviceSynchronization2Featuresinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceSynchronization2Features create(long address)
Returns a newVkPhysicalDeviceSynchronization2Featuresinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceSynchronization2Features createSafe(long address)
-
malloc
public static VkPhysicalDeviceSynchronization2Features.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceSynchronization2Features.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceSynchronization2Features.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceSynchronization2Features.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceSynchronization2Features.Buffer create(int capacity)
Returns a newVkPhysicalDeviceSynchronization2Features.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceSynchronization2Features.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceSynchronization2Features.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceSynchronization2Features.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceSynchronization2Features malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSynchronization2Featuresinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceSynchronization2Features calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSynchronization2Featuresinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceSynchronization2Features.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSynchronization2Features.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceSynchronization2Features.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSynchronization2Features.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().
-
nsynchronization2
public static int nsynchronization2(long struct)
Unsafe version ofsynchronization2().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nsynchronization2
public static void nsynchronization2(long struct, int value)Unsafe version ofsynchronization2.
-
-