Package org.lwjgl.vulkan
Class VkExternalSemaphoreProperties
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkExternalSemaphoreProperties
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkExternalSemaphorePropertiesKHR
public class VkExternalSemaphoreProperties extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing supported external semaphore handle features.Description
If
handleTypeis not supported by the implementation, thenVkExternalSemaphoreProperties::externalSemaphoreFeatureswill be set to zero.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_EXTERNAL_SEMAPHORE_PROPERTIESpNextmust beNULL
See Also
GetPhysicalDeviceExternalSemaphoreProperties,GetPhysicalDeviceExternalSemaphorePropertiesKHRLayout
struct VkExternalSemaphoreProperties { VkStructureTypesType(); void *pNext(); VkExternalSemaphoreHandleTypeFlagsexportFromImportedHandleTypes(); VkExternalSemaphoreHandleTypeFlagscompatibleHandleTypes(); VkExternalSemaphoreFeatureFlagsexternalSemaphoreFeatures(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkExternalSemaphoreProperties.BufferAn array ofVkExternalSemaphorePropertiesstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCOMPATIBLEHANDLETYPES
EXPORTFROMIMPORTEDHANDLETYPES
EXTERNALSEMAPHOREFEATURES
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkExternalSemaphoreProperties(java.nio.ByteBuffer container)Creates aVkExternalSemaphorePropertiesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VkExternalSemaphorePropertiescalloc()Returns a newVkExternalSemaphorePropertiesinstance allocated withmemCalloc.static VkExternalSemaphoreProperties.Buffercalloc(int capacity)Returns a newVkExternalSemaphoreProperties.Bufferinstance allocated withmemCalloc.static VkExternalSemaphoreProperties.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkExternalSemaphoreProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkExternalSemaphorePropertiescalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkExternalSemaphorePropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkExternalSemaphorePropertiescallocStack()Deprecated.static VkExternalSemaphoreProperties.BuffercallocStack(int capacity)Deprecated.static VkExternalSemaphoreProperties.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkExternalSemaphorePropertiescallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.intcompatibleHandleTypes()a bitmask ofVkExternalSemaphoreHandleTypeFlagBitsspecifying handle types which can be specified at the same time ashandleTypewhen creating a semaphore.static VkExternalSemaphorePropertiescreate()Returns a newVkExternalSemaphorePropertiesinstance allocated withBufferUtils.static VkExternalSemaphoreProperties.Buffercreate(int capacity)Returns a newVkExternalSemaphoreProperties.Bufferinstance allocated withBufferUtils.static VkExternalSemaphorePropertiescreate(long address)Returns a newVkExternalSemaphorePropertiesinstance for the specified memory address.static VkExternalSemaphoreProperties.Buffercreate(long address, int capacity)Create aVkExternalSemaphoreProperties.Bufferinstance at the specified memory.static VkExternalSemaphorePropertiescreateSafe(long address)static VkExternalSemaphoreProperties.BuffercreateSafe(long address, int capacity)intexportFromImportedHandleTypes()a bitmask ofVkExternalSemaphoreHandleTypeFlagBitsspecifying which types of imported handlehandleTypecan be exported from.intexternalSemaphoreFeatures()a bitmask ofVkExternalSemaphoreFeatureFlagBitsdescribing the features ofhandleType.static VkExternalSemaphorePropertiesmalloc()Returns a newVkExternalSemaphorePropertiesinstance allocated withmemAlloc.static VkExternalSemaphoreProperties.Buffermalloc(int capacity)Returns a newVkExternalSemaphoreProperties.Bufferinstance allocated withmemAlloc.static VkExternalSemaphoreProperties.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkExternalSemaphoreProperties.Bufferinstance allocated on the specifiedMemoryStack.static VkExternalSemaphorePropertiesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkExternalSemaphorePropertiesinstance allocated on the specifiedMemoryStack.static VkExternalSemaphorePropertiesmallocStack()Deprecated.static VkExternalSemaphoreProperties.BuffermallocStack(int capacity)Deprecated.static VkExternalSemaphoreProperties.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkExternalSemaphorePropertiesmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intncompatibleHandleTypes(long struct)Unsafe version ofcompatibleHandleTypes().static intnexportFromImportedHandleTypes(long struct)Unsafe version ofexportFromImportedHandleTypes().static intnexternalSemaphoreFeatures(long struct)Unsafe version ofexternalSemaphoreFeatures().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.longpNext()NULLor a pointer to a structure extending this structure.VkExternalSemaphorePropertiespNext(long value)Sets the specified value to thepNext()field.VkExternalSemaphorePropertiesset(int sType, long pNext)Initializes this struct with the specified values.VkExternalSemaphorePropertiesset(VkExternalSemaphoreProperties src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structureVkExternalSemaphorePropertiessType(int value)Sets the specified value to thesType()field.VkExternalSemaphorePropertiessType$Default()Sets theSTRUCTURE_TYPE_EXTERNAL_SEMAPHORE_PROPERTIESvalue to thesType()field.
-
-
-
Constructor Detail
-
VkExternalSemaphoreProperties
public VkExternalSemaphoreProperties(java.nio.ByteBuffer container)
Creates aVkExternalSemaphorePropertiesinstance 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.
-
exportFromImportedHandleTypes
public int exportFromImportedHandleTypes()
a bitmask ofVkExternalSemaphoreHandleTypeFlagBitsspecifying which types of imported handlehandleTypecan be exported from.
-
compatibleHandleTypes
public int compatibleHandleTypes()
a bitmask ofVkExternalSemaphoreHandleTypeFlagBitsspecifying handle types which can be specified at the same time ashandleTypewhen creating a semaphore.
-
externalSemaphoreFeatures
public int externalSemaphoreFeatures()
a bitmask ofVkExternalSemaphoreFeatureFlagBitsdescribing the features ofhandleType.
-
sType
public VkExternalSemaphoreProperties sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkExternalSemaphoreProperties sType$Default()
Sets theSTRUCTURE_TYPE_EXTERNAL_SEMAPHORE_PROPERTIESvalue to thesType()field.
-
pNext
public VkExternalSemaphoreProperties pNext(long value)
Sets the specified value to thepNext()field.
-
set
public VkExternalSemaphoreProperties set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkExternalSemaphoreProperties set(VkExternalSemaphoreProperties src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkExternalSemaphoreProperties malloc()
Returns a newVkExternalSemaphorePropertiesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkExternalSemaphoreProperties calloc()
Returns a newVkExternalSemaphorePropertiesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkExternalSemaphoreProperties create()
Returns a newVkExternalSemaphorePropertiesinstance allocated withBufferUtils.
-
create
public static VkExternalSemaphoreProperties create(long address)
Returns a newVkExternalSemaphorePropertiesinstance for the specified memory address.
-
createSafe
@Nullable public static VkExternalSemaphoreProperties createSafe(long address)
-
malloc
public static VkExternalSemaphoreProperties.Buffer malloc(int capacity)
Returns a newVkExternalSemaphoreProperties.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkExternalSemaphoreProperties.Buffer calloc(int capacity)
Returns a newVkExternalSemaphoreProperties.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkExternalSemaphoreProperties.Buffer create(int capacity)
Returns a newVkExternalSemaphoreProperties.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkExternalSemaphoreProperties.Buffer create(long address, int capacity)
Create aVkExternalSemaphoreProperties.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkExternalSemaphoreProperties.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkExternalSemaphoreProperties mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkExternalSemaphoreProperties callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkExternalSemaphoreProperties mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkExternalSemaphoreProperties callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkExternalSemaphoreProperties.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkExternalSemaphoreProperties.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkExternalSemaphoreProperties.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkExternalSemaphoreProperties.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkExternalSemaphoreProperties malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkExternalSemaphorePropertiesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkExternalSemaphoreProperties calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkExternalSemaphorePropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkExternalSemaphoreProperties.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkExternalSemaphoreProperties.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkExternalSemaphoreProperties.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkExternalSemaphoreProperties.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().
-
nexportFromImportedHandleTypes
public static int nexportFromImportedHandleTypes(long struct)
Unsafe version ofexportFromImportedHandleTypes().
-
ncompatibleHandleTypes
public static int ncompatibleHandleTypes(long struct)
Unsafe version ofcompatibleHandleTypes().
-
nexternalSemaphoreFeatures
public static int nexternalSemaphoreFeatures(long struct)
Unsafe version ofexternalSemaphoreFeatures().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
-