Package org.lwjgl.vulkan
Class VkExternalFenceProperties
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkExternalFenceProperties
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkExternalFencePropertiesKHR
public class VkExternalFenceProperties extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing supported external fence handle features.Description
If
handleTypeis not supported by the implementation, thenVkExternalFenceProperties::externalFenceFeatureswill be set to zero.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_EXTERNAL_FENCE_PROPERTIESpNextmust beNULL
See Also
GetPhysicalDeviceExternalFenceProperties,GetPhysicalDeviceExternalFencePropertiesKHRMember documentation
exportFromImportedHandleTypes– a bitmask ofVkExternalFenceHandleTypeFlagBitsindicating which types of imported handlehandleTypecan be exported from.compatibleHandleTypes– a bitmask ofVkExternalFenceHandleTypeFlagBitsspecifying handle types which can be specified at the same time ashandleTypewhen creating a fence.externalFenceFeatures– a bitmask ofVkExternalFenceFeatureFlagBitsindicating the features ofhandleType.
Layout
struct VkExternalFenceProperties { VkStructureType sType; void * pNext; VkExternalFenceHandleTypeFlags exportFromImportedHandleTypes; VkExternalFenceHandleTypeFlags compatibleHandleTypes; VkExternalFenceFeatureFlags externalFenceFeatures; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkExternalFenceProperties.BufferAn array ofVkExternalFencePropertiesstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCOMPATIBLEHANDLETYPES
EXPORTFROMIMPORTEDHANDLETYPES
EXTERNALFENCEFEATURES
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkExternalFenceProperties(java.nio.ByteBuffer container)Creates aVkExternalFencePropertiesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkExternalFencePropertiescalloc()Returns a newVkExternalFencePropertiesinstance allocated withmemCalloc.static VkExternalFenceProperties.Buffercalloc(int capacity)Returns a newVkExternalFenceProperties.Bufferinstance allocated withmemCalloc.static VkExternalFencePropertiescallocStack()Returns a newVkExternalFencePropertiesinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkExternalFenceProperties.BuffercallocStack(int capacity)Returns a newVkExternalFenceProperties.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkExternalFenceProperties.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkExternalFenceProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkExternalFencePropertiescallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkExternalFencePropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcompatibleHandleTypes()Returns the value of thecompatibleHandleTypesfield.static VkExternalFencePropertiescreate()Returns a newVkExternalFencePropertiesinstance allocated withBufferUtils.static VkExternalFenceProperties.Buffercreate(int capacity)Returns a newVkExternalFenceProperties.Bufferinstance allocated withBufferUtils.static VkExternalFencePropertiescreate(long address)Returns a newVkExternalFencePropertiesinstance for the specified memory address.static VkExternalFenceProperties.Buffercreate(long address, int capacity)Create aVkExternalFenceProperties.Bufferinstance at the specified memory.static VkExternalFencePropertiescreateSafe(long address)static VkExternalFenceProperties.BuffercreateSafe(long address, int capacity)intexportFromImportedHandleTypes()Returns the value of theexportFromImportedHandleTypesfield.intexternalFenceFeatures()Returns the value of theexternalFenceFeaturesfield.static VkExternalFencePropertiesmalloc()Returns a newVkExternalFencePropertiesinstance allocated withmemAlloc.static VkExternalFenceProperties.Buffermalloc(int capacity)Returns a newVkExternalFenceProperties.Bufferinstance allocated withmemAlloc.static VkExternalFencePropertiesmallocStack()Returns a newVkExternalFencePropertiesinstance allocated on the thread-localMemoryStack.static VkExternalFenceProperties.BuffermallocStack(int capacity)Returns a newVkExternalFenceProperties.Bufferinstance allocated on the thread-localMemoryStack.static VkExternalFenceProperties.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkExternalFenceProperties.Bufferinstance allocated on the specifiedMemoryStack.static VkExternalFencePropertiesmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkExternalFencePropertiesinstance allocated on the specifiedMemoryStack.static intncompatibleHandleTypes(long struct)Unsafe version ofcompatibleHandleTypes().static intnexportFromImportedHandleTypes(long struct)Unsafe version ofexportFromImportedHandleTypes().static intnexternalFenceFeatures(long struct)Unsafe version ofexternalFenceFeatures().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()Returns the value of thepNextfield.VkExternalFencePropertiespNext(long value)Sets the specified value to thepNextfield.VkExternalFencePropertiesset(int sType, long pNext)Initializes this struct with the specified values.VkExternalFencePropertiesset(VkExternalFenceProperties src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkExternalFencePropertiessType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkExternalFenceProperties
public VkExternalFenceProperties(java.nio.ByteBuffer container)
Creates aVkExternalFencePropertiesinstance 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()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
exportFromImportedHandleTypes
public int exportFromImportedHandleTypes()
Returns the value of theexportFromImportedHandleTypesfield.
-
compatibleHandleTypes
public int compatibleHandleTypes()
Returns the value of thecompatibleHandleTypesfield.
-
externalFenceFeatures
public int externalFenceFeatures()
Returns the value of theexternalFenceFeaturesfield.
-
sType
public VkExternalFenceProperties sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkExternalFenceProperties pNext(long value)
Sets the specified value to thepNextfield.
-
set
public VkExternalFenceProperties set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkExternalFenceProperties set(VkExternalFenceProperties src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkExternalFenceProperties malloc()
Returns a newVkExternalFencePropertiesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkExternalFenceProperties calloc()
Returns a newVkExternalFencePropertiesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkExternalFenceProperties create()
Returns a newVkExternalFencePropertiesinstance allocated withBufferUtils.
-
create
public static VkExternalFenceProperties create(long address)
Returns a newVkExternalFencePropertiesinstance for the specified memory address.
-
createSafe
@Nullable public static VkExternalFenceProperties createSafe(long address)
-
malloc
public static VkExternalFenceProperties.Buffer malloc(int capacity)
Returns a newVkExternalFenceProperties.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkExternalFenceProperties.Buffer calloc(int capacity)
Returns a newVkExternalFenceProperties.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkExternalFenceProperties.Buffer create(int capacity)
Returns a newVkExternalFenceProperties.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkExternalFenceProperties.Buffer create(long address, int capacity)
Create aVkExternalFenceProperties.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkExternalFenceProperties.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkExternalFenceProperties mallocStack()
Returns a newVkExternalFencePropertiesinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkExternalFenceProperties callocStack()
Returns a newVkExternalFencePropertiesinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkExternalFenceProperties mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkExternalFencePropertiesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkExternalFenceProperties callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkExternalFencePropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkExternalFenceProperties.Buffer mallocStack(int capacity)
Returns a newVkExternalFenceProperties.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkExternalFenceProperties.Buffer callocStack(int capacity)
Returns a newVkExternalFenceProperties.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkExternalFenceProperties.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkExternalFenceProperties.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkExternalFenceProperties.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkExternalFenceProperties.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().
-
nexternalFenceFeatures
public static int nexternalFenceFeatures(long struct)
Unsafe version ofexternalFenceFeatures().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
-