Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkImportSemaphoreWin32HandleInfoKHR

extends Struct<VkImportSemaphoreWin32HandleInfoKHR>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*, org.lwjgl.system.windows.*

Structure specifying Windows handle to import to a semaphore.
Description

The handle types supported by handleType are:

Handle Types Supported by VkImportSemaphoreWin32HandleInfoKHR
Handle TypeTransferencePermanence Supported
EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_BITReferenceTemporary,Permanent
EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_KMT_BITReferenceTemporary,Permanent
EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D12_FENCE_BITReferenceTemporary,Permanent
Valid Usage
Valid Usage (Implicit)
Host Synchronization
See Also

ImportSemaphoreWin32HandleKHR

Layout


struct VkImportSemaphoreWin32HandleInfoKHR {
    VkStructureType sType;
    void const * pNext;
    VkSemaphore semaphore;
    VkSemaphoreImportFlags flags;
    VkExternalSemaphoreHandleTypeFlagBits handleType;
    HANDLE handle;
    LPCWSTR name;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
FLAGS

The struct member offsets.

public static final int
HANDLE

The struct member offsets.

public static final int
HANDLETYPE

The struct member offsets.

public static final int
NAME

The struct member offsets.

public static final int
PNEXT

The struct member offsets.

public static final int
SEMAPHORE

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
STYPE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
public
VkImportSemaphoreWin32HandleInfoKHR(ByteBuffer container)

Creates a VkImportSemaphoreWin32HandleInfoKHR instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static VkImportSemaphoreWin32HandleInfoKHR
calloc()

Returns a new VkImportSemaphoreWin32HandleInfoKHR instance allocated with memCalloc.

public static VkImportSemaphoreWin32HandleInfoKHR.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new VkImportSemaphoreWin32HandleInfoKHR.Buffer instance allocated with memCalloc.

public static VkImportSemaphoreWin32HandleInfoKHR
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkImportSemaphoreWin32HandleInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkImportSemaphoreWin32HandleInfoKHR.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkImportSemaphoreWin32HandleInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkImportSemaphoreWin32HandleInfoKHR
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static VkImportSemaphoreWin32HandleInfoKHR
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static VkImportSemaphoreWin32HandleInfoKHR.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static VkImportSemaphoreWin32HandleInfoKHR.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected VkImportSemaphoreWin32HandleInfoKHR
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static VkImportSemaphoreWin32HandleInfoKHR
create()

Returns a new VkImportSemaphoreWin32HandleInfoKHR instance allocated with BufferUtils.

public static VkImportSemaphoreWin32HandleInfoKHR
create(long address)

Returns a new VkImportSemaphoreWin32HandleInfoKHR instance for the specified memory address.

public static VkImportSemaphoreWin32HandleInfoKHR.Buffer
create(int
the buffer capacity
capacity
)

Returns a new VkImportSemaphoreWin32HandleInfoKHR.Buffer instance allocated with BufferUtils.

public static VkImportSemaphoreWin32HandleInfoKHR.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a VkImportSemaphoreWin32HandleInfoKHR.Buffer instance at the specified memory.

public static VkImportSemaphoreWin32HandleInfoKHR
createSafe(long address)

Like create, but returns null if address is NULL.

public static VkImportSemaphoreWin32HandleInfoKHR.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public int
flags()

a bitmask of VkSemaphoreImportFlagBits specifying additional parameters for the semaphore payload import operation.

public VkImportSemaphoreWin32HandleInfoKHR
flags(int value)

Sets the specified value to the flags field.

public long
handle()

NULL or the external handle to import.

public VkImportSemaphoreWin32HandleInfoKHR
handle(long value)

Sets the specified value to the handle field.

public int
handleType()

a VkExternalSemaphoreHandleTypeFlagBits value specifying the type of handle.

public VkImportSemaphoreWin32HandleInfoKHR
handleType(int value)

Sets the specified value to the handleType field.

public static VkImportSemaphoreWin32HandleInfoKHR
malloc()

Returns a new VkImportSemaphoreWin32HandleInfoKHR instance allocated with memAlloc.

public static VkImportSemaphoreWin32HandleInfoKHR.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new VkImportSemaphoreWin32HandleInfoKHR.Buffer instance allocated with memAlloc.

public static VkImportSemaphoreWin32HandleInfoKHR
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkImportSemaphoreWin32HandleInfoKHR instance allocated on the specified MemoryStack.

public static VkImportSemaphoreWin32HandleInfoKHR.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkImportSemaphoreWin32HandleInfoKHR.Buffer instance allocated on the specified MemoryStack.

public static VkImportSemaphoreWin32HandleInfoKHR
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static VkImportSemaphoreWin32HandleInfoKHR
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static VkImportSemaphoreWin32HandleInfoKHR.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static VkImportSemaphoreWin32HandleInfoKHR.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public ByteBuffer
name()

NULL or a null-terminated UTF-16 string naming the underlying synchronization primitive to import.

public VkImportSemaphoreWin32HandleInfoKHR
name(ByteBuffer value)

Sets the address of the specified encoded string to the name field.

public String
nameString()

NULL or a null-terminated UTF-16 string naming the underlying synchronization primitive to import.

public static int
nflags(long struct)

Unsafe version of flags.

public static void
nflags(long struct, int value)

Unsafe version of flags.

public static long
nhandle(long struct)

Unsafe version of handle.

public static void
nhandle(long struct, long value)

Unsafe version of handle.

public static int
nhandleType(long struct)

Unsafe version of handleType.

public static void
nhandleType(long struct, int value)

Unsafe version of handleType.

public static ByteBuffer
nname(long struct)

Unsafe version of name.

public static void
nname(long struct, ByteBuffer value)

Unsafe version of name.

public static String
nnameString(long struct)

Unsafe version of nameString.

public static long
npNext(long struct)

Unsafe version of pNext.

public static void
npNext(long struct, long value)

Unsafe version of pNext.

public static long
nsemaphore(long struct)

Unsafe version of semaphore.

public static void
nsemaphore(long struct, long value)

Unsafe version of semaphore.

public static int
nsType(long struct)

Unsafe version of sType.

public static void
nsType(long struct, int value)

Unsafe version of sType.

public long
pNext()

NULL or a pointer to a structure extending this structure.

public VkImportSemaphoreWin32HandleInfoKHR
pNext(long value)

Sets the specified value to the pNext field.

public long
semaphore()

the semaphore into which the payload will be imported.

public VkImportSemaphoreWin32HandleInfoKHR
semaphore(long value)

Sets the specified value to the semaphore field.

public VkImportSemaphoreWin32HandleInfoKHR
set(int sType, long pNext, long semaphore, int flags, int handleType, long handle, ByteBuffer name)

Initializes this struct with the specified values.

public VkImportSemaphoreWin32HandleInfoKHR

Returns:

this struct
set
(VkImportSemaphoreWin32HandleInfoKHR
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int
sType()

a VkStructureType value identifying this structure.

public VkImportSemaphoreWin32HandleInfoKHR
sType(int value)

Sets the specified value to the sType field.

public VkImportSemaphoreWin32HandleInfoKHR
public static void
validate(long
the struct to validate
struct
)

Validates pointer members that should not be NULL.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate