Package org.lwjgl.vulkan
Class VkImportSemaphoreWin32HandleInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkImportSemaphoreWin32HandleInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkImportSemaphoreWin32HandleInfoKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying Windows handle to import to a semaphore.Description
The handle types supported by
handleTypeare:Handle Types Supported by
VkImportSemaphoreWin32HandleInfoKHRHandle Type Transference Permanence Supported EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_BITReference Temporary,Permanent EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_KMT_BITReference Temporary,Permanent EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D12_FENCE_BITReference Temporary,Permanent Valid Usage
handleTypemust be a value included in the Handle Types Supported byVkImportSemaphoreWin32HandleInfoKHRtable- If
handleTypeis notEXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_BITorEXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D12_FENCE_BIT,namemust beNULL - If
handleisNULL,namemust name a valid synchronization primitive of the type specified byhandleType - If
nameisNULL,handlemust be a valid handle of the type specified byhandleType - If
handleis notNULL,namemust beNULL - If
handleis notNULL, it must obey any requirements listed forhandleTypein external semaphore handle types compatibility - If
nameis notNULL, it must obey any requirements listed forhandleTypein external semaphore handle types compatibility - If
handleTypeisEXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_BITorEXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT, theVkSemaphoreCreateInfo::flagsfield must match that of the semaphore from whichhandleornamewas exported - If
handleTypeisEXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_BITorEXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT, theVkSemaphoreTypeCreateInfo::semaphoreTypefield must match that of the semaphore from whichhandleornamewas exported - If
flagscontainsSEMAPHORE_IMPORT_TEMPORARY_BIT, theVkSemaphoreTypeCreateInfo::semaphoreTypefield of the semaphore from whichhandleornamewas exported must not beSEMAPHORE_TYPE_TIMELINE
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_IMPORT_SEMAPHORE_WIN32_HANDLE_INFO_KHRpNextmust beNULLsemaphoremust be a validVkSemaphorehandleflagsmust be a valid combination ofVkSemaphoreImportFlagBitsvalues
Host Synchronization
- Host access to
semaphoremust be externally synchronized
See Also
Layout
struct VkImportSemaphoreWin32HandleInfoKHR { VkStructureTypesType(); void const *pNext(); VkSemaphoresemaphore(); VkSemaphoreImportFlagsflags(); VkExternalSemaphoreHandleTypeFlagBitshandleType(); HANDLEhandle(); LPCWSTRname(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkImportSemaphoreWin32HandleInfoKHR.BufferAn array ofVkImportSemaphoreWin32HandleInfoKHRstructs.
-
Constructor Summary
Constructors Constructor Description VkImportSemaphoreWin32HandleInfoKHR(java.nio.ByteBuffer container)Creates aVkImportSemaphoreWin32HandleInfoKHRinstance 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 VkImportSemaphoreWin32HandleInfoKHRcalloc()Returns a newVkImportSemaphoreWin32HandleInfoKHRinstance allocated withmemCalloc.static VkImportSemaphoreWin32HandleInfoKHR.Buffercalloc(int capacity)Returns a newVkImportSemaphoreWin32HandleInfoKHR.Bufferinstance allocated withmemCalloc.static VkImportSemaphoreWin32HandleInfoKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImportSemaphoreWin32HandleInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImportSemaphoreWin32HandleInfoKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkImportSemaphoreWin32HandleInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImportSemaphoreWin32HandleInfoKHRcallocStack()Deprecated.static VkImportSemaphoreWin32HandleInfoKHR.BuffercallocStack(int capacity)Deprecated.static VkImportSemaphoreWin32HandleInfoKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkImportSemaphoreWin32HandleInfoKHRcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkImportSemaphoreWin32HandleInfoKHRcreate()Returns a newVkImportSemaphoreWin32HandleInfoKHRinstance allocated withBufferUtils.static VkImportSemaphoreWin32HandleInfoKHR.Buffercreate(int capacity)Returns a newVkImportSemaphoreWin32HandleInfoKHR.Bufferinstance allocated withBufferUtils.static VkImportSemaphoreWin32HandleInfoKHRcreate(long address)Returns a newVkImportSemaphoreWin32HandleInfoKHRinstance for the specified memory address.static VkImportSemaphoreWin32HandleInfoKHR.Buffercreate(long address, int capacity)Create aVkImportSemaphoreWin32HandleInfoKHR.Bufferinstance at the specified memory.static VkImportSemaphoreWin32HandleInfoKHRcreateSafe(long address)static VkImportSemaphoreWin32HandleInfoKHR.BuffercreateSafe(long address, int capacity)intflags()a bitmask ofVkSemaphoreImportFlagBitsspecifying additional parameters for the semaphore payload import operation.VkImportSemaphoreWin32HandleInfoKHRflags(int value)Sets the specified value to theflags()field.longhandle()NULLor the external handle to import.VkImportSemaphoreWin32HandleInfoKHRhandle(long value)Sets the specified value to thehandle()field.inthandleType()aVkExternalSemaphoreHandleTypeFlagBitsvalue specifying the type ofhandle.VkImportSemaphoreWin32HandleInfoKHRhandleType(int value)Sets the specified value to thehandleType()field.static VkImportSemaphoreWin32HandleInfoKHRmalloc()Returns a newVkImportSemaphoreWin32HandleInfoKHRinstance allocated withmemAlloc.static VkImportSemaphoreWin32HandleInfoKHR.Buffermalloc(int capacity)Returns a newVkImportSemaphoreWin32HandleInfoKHR.Bufferinstance allocated withmemAlloc.static VkImportSemaphoreWin32HandleInfoKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImportSemaphoreWin32HandleInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkImportSemaphoreWin32HandleInfoKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkImportSemaphoreWin32HandleInfoKHRinstance allocated on the specifiedMemoryStack.static VkImportSemaphoreWin32HandleInfoKHRmallocStack()Deprecated.static VkImportSemaphoreWin32HandleInfoKHR.BuffermallocStack(int capacity)Deprecated.static VkImportSemaphoreWin32HandleInfoKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkImportSemaphoreWin32HandleInfoKHRmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.java.nio.ByteBuffername()NULLor a null-terminated UTF-16 string naming the underlying synchronization primitive to import.VkImportSemaphoreWin32HandleInfoKHRname(java.nio.ByteBuffer value)Sets the address of the specified encoded string to thename()field.java.lang.StringnameString()NULLor a null-terminated UTF-16 string naming the underlying synchronization primitive to import.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static longnhandle(long struct)Unsafe version ofhandle().static voidnhandle(long struct, long value)Unsafe version ofhandle.static intnhandleType(long struct)Unsafe version ofhandleType().static voidnhandleType(long struct, int value)Unsafe version ofhandleType.static java.nio.ByteBuffernname(long struct)Unsafe version ofname().static voidnname(long struct, java.nio.ByteBuffer value)Unsafe version ofname.static java.lang.StringnnameString(long struct)Unsafe version ofnameString().static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static longnsemaphore(long struct)Unsafe version ofsemaphore().static voidnsemaphore(long struct, long value)Unsafe version ofsemaphore.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.VkImportSemaphoreWin32HandleInfoKHRpNext(long value)Sets the specified value to thepNext()field.longsemaphore()the semaphore into which the payload will be imported.VkImportSemaphoreWin32HandleInfoKHRsemaphore(long value)Sets the specified value to thesemaphore()field.VkImportSemaphoreWin32HandleInfoKHRset(int sType, long pNext, long semaphore, int flags, int handleType, long handle, java.nio.ByteBuffer name)Initializes this struct with the specified values.VkImportSemaphoreWin32HandleInfoKHRset(VkImportSemaphoreWin32HandleInfoKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkImportSemaphoreWin32HandleInfoKHRsType(int value)Sets the specified value to thesType()field.VkImportSemaphoreWin32HandleInfoKHRsType$Default()Sets theSTRUCTURE_TYPE_IMPORT_SEMAPHORE_WIN32_HANDLE_INFO_KHRvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
VkImportSemaphoreWin32HandleInfoKHR
public VkImportSemaphoreWin32HandleInfoKHR(java.nio.ByteBuffer container)
Creates aVkImportSemaphoreWin32HandleInfoKHRinstance 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.
-
semaphore
public long semaphore()
the semaphore into which the payload will be imported.
-
flags
public int flags()
a bitmask ofVkSemaphoreImportFlagBitsspecifying additional parameters for the semaphore payload import operation.
-
handleType
public int handleType()
aVkExternalSemaphoreHandleTypeFlagBitsvalue specifying the type ofhandle.
-
handle
public long handle()
NULLor the external handle to import.
-
name, nameString
public java.nio.ByteBuffer name() public java.lang.String nameString()
NULLor a null-terminated UTF-16 string naming the underlying synchronization primitive to import.
-
sType
public VkImportSemaphoreWin32HandleInfoKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkImportSemaphoreWin32HandleInfoKHR sType$Default()
Sets theSTRUCTURE_TYPE_IMPORT_SEMAPHORE_WIN32_HANDLE_INFO_KHRvalue to thesType()field.
-
pNext
public VkImportSemaphoreWin32HandleInfoKHR pNext(long value)
Sets the specified value to thepNext()field.
-
semaphore
public VkImportSemaphoreWin32HandleInfoKHR semaphore(long value)
Sets the specified value to thesemaphore()field.
-
flags
public VkImportSemaphoreWin32HandleInfoKHR flags(int value)
Sets the specified value to theflags()field.
-
handleType
public VkImportSemaphoreWin32HandleInfoKHR handleType(int value)
Sets the specified value to thehandleType()field.
-
handle
public VkImportSemaphoreWin32HandleInfoKHR handle(long value)
Sets the specified value to thehandle()field.
-
name
public VkImportSemaphoreWin32HandleInfoKHR name(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to thename()field.
-
set
public VkImportSemaphoreWin32HandleInfoKHR set(int sType, long pNext, long semaphore, int flags, int handleType, long handle, java.nio.ByteBuffer name)
Initializes this struct with the specified values.
-
set
public VkImportSemaphoreWin32HandleInfoKHR set(VkImportSemaphoreWin32HandleInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkImportSemaphoreWin32HandleInfoKHR malloc()
Returns a newVkImportSemaphoreWin32HandleInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkImportSemaphoreWin32HandleInfoKHR calloc()
Returns a newVkImportSemaphoreWin32HandleInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkImportSemaphoreWin32HandleInfoKHR create()
Returns a newVkImportSemaphoreWin32HandleInfoKHRinstance allocated withBufferUtils.
-
create
public static VkImportSemaphoreWin32HandleInfoKHR create(long address)
Returns a newVkImportSemaphoreWin32HandleInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkImportSemaphoreWin32HandleInfoKHR createSafe(long address)
-
malloc
public static VkImportSemaphoreWin32HandleInfoKHR.Buffer malloc(int capacity)
Returns a newVkImportSemaphoreWin32HandleInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkImportSemaphoreWin32HandleInfoKHR.Buffer calloc(int capacity)
Returns a newVkImportSemaphoreWin32HandleInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkImportSemaphoreWin32HandleInfoKHR.Buffer create(int capacity)
Returns a newVkImportSemaphoreWin32HandleInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkImportSemaphoreWin32HandleInfoKHR.Buffer create(long address, int capacity)
Create aVkImportSemaphoreWin32HandleInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkImportSemaphoreWin32HandleInfoKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkImportSemaphoreWin32HandleInfoKHR mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkImportSemaphoreWin32HandleInfoKHR callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkImportSemaphoreWin32HandleInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkImportSemaphoreWin32HandleInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkImportSemaphoreWin32HandleInfoKHR.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkImportSemaphoreWin32HandleInfoKHR.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkImportSemaphoreWin32HandleInfoKHR.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 VkImportSemaphoreWin32HandleInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkImportSemaphoreWin32HandleInfoKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkImportSemaphoreWin32HandleInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkImportSemaphoreWin32HandleInfoKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkImportSemaphoreWin32HandleInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkImportSemaphoreWin32HandleInfoKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImportSemaphoreWin32HandleInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkImportSemaphoreWin32HandleInfoKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImportSemaphoreWin32HandleInfoKHR.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().
-
nsemaphore
public static long nsemaphore(long struct)
Unsafe version ofsemaphore().
-
nflags
public static int nflags(long struct)
Unsafe version offlags().
-
nhandleType
public static int nhandleType(long struct)
Unsafe version ofhandleType().
-
nhandle
public static long nhandle(long struct)
Unsafe version ofhandle().
-
nname
public static java.nio.ByteBuffer nname(long struct)
Unsafe version ofname().
-
nnameString
public static java.lang.String nnameString(long struct)
Unsafe version ofnameString().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nsemaphore
public static void nsemaphore(long struct, long value)Unsafe version ofsemaphore.
-
nflags
public static void nflags(long struct, int value)Unsafe version offlags.
-
nhandleType
public static void nhandleType(long struct, int value)Unsafe version ofhandleType.
-
nhandle
public static void nhandle(long struct, long value)Unsafe version ofhandle.
-
nname
public static void nname(long struct, java.nio.ByteBuffer value)Unsafe version ofname.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-