public class VkExportSemaphoreWin32HandleInfoKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
If this structure is not present, or if pAttributes is set to NULL, default security descriptor values will be used, and child processes created by the application will not inherit the handle, as described in the MSDN documentation for "Synchronization Object Security and Access Rights"1.
For handles of the following types:
EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_BIT
The implementation must ensure the access rights allow both signal and wait operations on the semaphore.
For handles of the following types:
EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D12_FENCE_BIT
The access rights must be:
GENERIC_ALL
VkExportSemaphoreCreateInfo::handleTypes does not include EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_BIT or EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D12_FENCE_BIT, VkExportSemaphoreWin32HandleInfoKHR must not be included in the pNext chain of VkSemaphoreCreateInfo.sType must be STRUCTURE_TYPE_EXPORT_SEMAPHORE_WIN32_HANDLE_INFO_KHRpAttributes is not NULL, pAttributes must be a valid pointer to a valid SECURITY_ATTRIBUTES valuesType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.pAttributes – a pointer to a Windows SECURITY_ATTRIBUTES structure specifying security attributes of the handle.dwAccess – a DWORD specifying access rights of the handle.name – a null-terminated UTF-16 string to associate with the underlying synchronization primitive referenced by NT handles exported from the created semaphore.
struct VkExportSemaphoreWin32HandleInfoKHR {
VkStructureType sType;
void const * pNext;
SECURITY_ATTRIBUTES const * pAttributes;
DWORD dwAccess;
LPCWSTR name;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkExportSemaphoreWin32HandleInfoKHR.Buffer
An array of
VkExportSemaphoreWin32HandleInfoKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DWACCESS
The struct member offsets.
|
static int |
NAME
The struct member offsets.
|
static int |
PATTRIBUTES
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkExportSemaphoreWin32HandleInfoKHR(java.nio.ByteBuffer container)
Creates a
VkExportSemaphoreWin32HandleInfoKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkExportSemaphoreWin32HandleInfoKHR |
calloc()
Returns a new
VkExportSemaphoreWin32HandleInfoKHR instance allocated with memCalloc. |
static VkExportSemaphoreWin32HandleInfoKHR.Buffer |
calloc(int capacity)
Returns a new
VkExportSemaphoreWin32HandleInfoKHR.Buffer instance allocated with memCalloc. |
static VkExportSemaphoreWin32HandleInfoKHR |
callocStack()
Returns a new
VkExportSemaphoreWin32HandleInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkExportSemaphoreWin32HandleInfoKHR.Buffer |
callocStack(int capacity)
Returns a new
VkExportSemaphoreWin32HandleInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkExportSemaphoreWin32HandleInfoKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkExportSemaphoreWin32HandleInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkExportSemaphoreWin32HandleInfoKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkExportSemaphoreWin32HandleInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkExportSemaphoreWin32HandleInfoKHR |
create()
Returns a new
VkExportSemaphoreWin32HandleInfoKHR instance allocated with BufferUtils. |
static VkExportSemaphoreWin32HandleInfoKHR.Buffer |
create(int capacity)
Returns a new
VkExportSemaphoreWin32HandleInfoKHR.Buffer instance allocated with BufferUtils. |
static VkExportSemaphoreWin32HandleInfoKHR |
create(long address)
Returns a new
VkExportSemaphoreWin32HandleInfoKHR instance for the specified memory address. |
static VkExportSemaphoreWin32HandleInfoKHR.Buffer |
create(long address,
int capacity)
Create a
VkExportSemaphoreWin32HandleInfoKHR.Buffer instance at the specified memory. |
static VkExportSemaphoreWin32HandleInfoKHR |
createSafe(long address)
|
static VkExportSemaphoreWin32HandleInfoKHR.Buffer |
createSafe(long address,
int capacity)
|
int |
dwAccess()
Returns the value of the
dwAccess field. |
VkExportSemaphoreWin32HandleInfoKHR |
dwAccess(int value)
Sets the specified value to the
dwAccess field. |
static VkExportSemaphoreWin32HandleInfoKHR |
malloc()
Returns a new
VkExportSemaphoreWin32HandleInfoKHR instance allocated with memAlloc. |
static VkExportSemaphoreWin32HandleInfoKHR.Buffer |
malloc(int capacity)
Returns a new
VkExportSemaphoreWin32HandleInfoKHR.Buffer instance allocated with memAlloc. |
static VkExportSemaphoreWin32HandleInfoKHR |
mallocStack()
Returns a new
VkExportSemaphoreWin32HandleInfoKHR instance allocated on the thread-local MemoryStack. |
static VkExportSemaphoreWin32HandleInfoKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkExportSemaphoreWin32HandleInfoKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkExportSemaphoreWin32HandleInfoKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkExportSemaphoreWin32HandleInfoKHR.Buffer instance allocated on the specified MemoryStack. |
static VkExportSemaphoreWin32HandleInfoKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkExportSemaphoreWin32HandleInfoKHR instance allocated on the specified MemoryStack. |
java.nio.ByteBuffer |
name()
Returns a
ByteBuffer view of the null-terminated string pointed to by the name field. |
VkExportSemaphoreWin32HandleInfoKHR |
name(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to the
name field. |
java.lang.String |
nameString()
Decodes the null-terminated string pointed to by the
name field. |
static int |
ndwAccess(long struct)
Unsafe version of
dwAccess(). |
static void |
ndwAccess(long struct,
int value)
Unsafe version of
dwAccess. |
static java.nio.ByteBuffer |
nname(long struct)
Unsafe version of
name(). |
static void |
nname(long struct,
java.nio.ByteBuffer value)
Unsafe version of
name. |
static java.lang.String |
nnameString(long struct)
Unsafe version of
nameString(). |
static org.lwjgl.system.windows.SECURITY_ATTRIBUTES |
npAttributes(long struct)
Unsafe version of
pAttributes(). |
static void |
npAttributes(long struct,
org.lwjgl.system.windows.SECURITY_ATTRIBUTES value)
Unsafe version of
pAttributes. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
org.lwjgl.system.windows.SECURITY_ATTRIBUTES |
pAttributes()
Returns a
SECURITY_ATTRIBUTES view of the struct pointed to by the pAttributes field. |
VkExportSemaphoreWin32HandleInfoKHR |
pAttributes(org.lwjgl.system.windows.SECURITY_ATTRIBUTES value)
Sets the address of the specified
SECURITY_ATTRIBUTES to the pAttributes field. |
long |
pNext()
Returns the value of the
pNext field. |
VkExportSemaphoreWin32HandleInfoKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
VkExportSemaphoreWin32HandleInfoKHR |
set(int sType,
long pNext,
org.lwjgl.system.windows.SECURITY_ATTRIBUTES pAttributes,
int dwAccess,
java.nio.ByteBuffer name)
Initializes this struct with the specified values.
|
VkExportSemaphoreWin32HandleInfoKHR |
set(VkExportSemaphoreWin32HandleInfoKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkExportSemaphoreWin32HandleInfoKHR |
sType(int value)
Sets the specified value to the
sType field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int PATTRIBUTES
public static final int DWACCESS
public static final int NAME
public VkExportSemaphoreWin32HandleInfoKHR(java.nio.ByteBuffer container)
VkExportSemaphoreWin32HandleInfoKHR instance at the current position of the specified ByteBuffer container. 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.@Nullable public org.lwjgl.system.windows.SECURITY_ATTRIBUTES pAttributes()
SECURITY_ATTRIBUTES view of the struct pointed to by the pAttributes field.public int dwAccess()
dwAccess field.public java.nio.ByteBuffer name()
ByteBuffer view of the null-terminated string pointed to by the name field.public java.lang.String nameString()
name field.public VkExportSemaphoreWin32HandleInfoKHR sType(int value)
sType field.public VkExportSemaphoreWin32HandleInfoKHR pNext(long value)
pNext field.public VkExportSemaphoreWin32HandleInfoKHR pAttributes(@Nullable org.lwjgl.system.windows.SECURITY_ATTRIBUTES value)
SECURITY_ATTRIBUTES to the pAttributes field.public VkExportSemaphoreWin32HandleInfoKHR dwAccess(int value)
dwAccess field.public VkExportSemaphoreWin32HandleInfoKHR name(java.nio.ByteBuffer value)
name field.public VkExportSemaphoreWin32HandleInfoKHR set(int sType, long pNext, @Nullable org.lwjgl.system.windows.SECURITY_ATTRIBUTES pAttributes, int dwAccess, java.nio.ByteBuffer name)
public VkExportSemaphoreWin32HandleInfoKHR set(VkExportSemaphoreWin32HandleInfoKHR src)
src - the source structpublic static VkExportSemaphoreWin32HandleInfoKHR malloc()
VkExportSemaphoreWin32HandleInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkExportSemaphoreWin32HandleInfoKHR calloc()
VkExportSemaphoreWin32HandleInfoKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkExportSemaphoreWin32HandleInfoKHR create()
VkExportSemaphoreWin32HandleInfoKHR instance allocated with BufferUtils.public static VkExportSemaphoreWin32HandleInfoKHR create(long address)
VkExportSemaphoreWin32HandleInfoKHR instance for the specified memory address.@Nullable public static VkExportSemaphoreWin32HandleInfoKHR createSafe(long address)
public static VkExportSemaphoreWin32HandleInfoKHR.Buffer malloc(int capacity)
VkExportSemaphoreWin32HandleInfoKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkExportSemaphoreWin32HandleInfoKHR.Buffer calloc(int capacity)
VkExportSemaphoreWin32HandleInfoKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkExportSemaphoreWin32HandleInfoKHR.Buffer create(int capacity)
VkExportSemaphoreWin32HandleInfoKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkExportSemaphoreWin32HandleInfoKHR.Buffer create(long address, int capacity)
VkExportSemaphoreWin32HandleInfoKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkExportSemaphoreWin32HandleInfoKHR.Buffer createSafe(long address, int capacity)
public static VkExportSemaphoreWin32HandleInfoKHR mallocStack()
VkExportSemaphoreWin32HandleInfoKHR instance allocated on the thread-local MemoryStack.public static VkExportSemaphoreWin32HandleInfoKHR callocStack()
VkExportSemaphoreWin32HandleInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkExportSemaphoreWin32HandleInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkExportSemaphoreWin32HandleInfoKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkExportSemaphoreWin32HandleInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkExportSemaphoreWin32HandleInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkExportSemaphoreWin32HandleInfoKHR.Buffer mallocStack(int capacity)
VkExportSemaphoreWin32HandleInfoKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkExportSemaphoreWin32HandleInfoKHR.Buffer callocStack(int capacity)
VkExportSemaphoreWin32HandleInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkExportSemaphoreWin32HandleInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkExportSemaphoreWin32HandleInfoKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkExportSemaphoreWin32HandleInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkExportSemaphoreWin32HandleInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().@Nullable public static org.lwjgl.system.windows.SECURITY_ATTRIBUTES npAttributes(long struct)
pAttributes().public static int ndwAccess(long struct)
dwAccess().public static java.nio.ByteBuffer nname(long struct)
name().public static java.lang.String nnameString(long struct)
nameString().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void npAttributes(long struct,
@Nullable
org.lwjgl.system.windows.SECURITY_ATTRIBUTES value)
pAttributes.public static void ndwAccess(long struct,
int value)
dwAccess.public static void nname(long struct,
java.nio.ByteBuffer value)
name.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.