Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkWin32KeyedMutexAcquireReleaseInfoKHR

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

Use the Windows keyed mutex mechanism to synchronize work.
Valid Usage
Valid Usage (Implicit)

Layout


struct VkWin32KeyedMutexAcquireReleaseInfoKHR {
    VkStructureType sType;
    void const * pNext;
    uint32_t acquireCount;
    VkDeviceMemory const * pAcquireSyncs;
    uint64_t const * pAcquireKeys;
    uint32_t const * pAcquireTimeouts;
    uint32_t releaseCount;
    VkDeviceMemory const * pReleaseSyncs;
    uint64_t const * pReleaseKeys;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ACQUIRECOUNT

The struct member offsets.

public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
PACQUIREKEYS

The struct member offsets.

public static final int
PACQUIRESYNCS

The struct member offsets.

public static final int
PACQUIRETIMEOUTS

The struct member offsets.

public static final int
PNEXT

The struct member offsets.

public static final int
PRELEASEKEYS

The struct member offsets.

public static final int
PRELEASESYNCS

The struct member offsets.

public static final int
RELEASECOUNT

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
VkWin32KeyedMutexAcquireReleaseInfoKHR(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public int
acquireCount()

the number of entries in the pAcquireSyncs, pAcquireKeys, and pAcquireTimeouts arrays.

public VkWin32KeyedMutexAcquireReleaseInfoKHR
acquireCount(int value)

Sets the specified value to the acquireCount field.

public static VkWin32KeyedMutexAcquireReleaseInfoKHR
calloc()

Returns a new VkWin32KeyedMutexAcquireReleaseInfoKHR instance allocated with memCalloc.

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

Returns a new VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer instance allocated with memCalloc.

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

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

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

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

public static VkWin32KeyedMutexAcquireReleaseInfoKHR
callocStack()

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

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

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

Deprecated
Deprecated for removal in 3.4.0.
protected VkWin32KeyedMutexAcquireReleaseInfoKHR
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 VkWin32KeyedMutexAcquireReleaseInfoKHR
create()

Returns a new VkWin32KeyedMutexAcquireReleaseInfoKHR instance allocated with BufferUtils.

public static VkWin32KeyedMutexAcquireReleaseInfoKHR
create(long address)

Returns a new VkWin32KeyedMutexAcquireReleaseInfoKHR instance for the specified memory address.

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

Returns a new VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer instance allocated with BufferUtils.

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

Create a VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer instance at the specified memory.

public static VkWin32KeyedMutexAcquireReleaseInfoKHR
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public static VkWin32KeyedMutexAcquireReleaseInfoKHR
malloc()

Returns a new VkWin32KeyedMutexAcquireReleaseInfoKHR instance allocated with memAlloc.

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

Returns a new VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer instance allocated with memAlloc.

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

Returns a new VkWin32KeyedMutexAcquireReleaseInfoKHR instance allocated on the specified MemoryStack.

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

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

public static VkWin32KeyedMutexAcquireReleaseInfoKHR
mallocStack()

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

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

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

Deprecated
Deprecated for removal in 3.4.0.
public static int
nacquireCount(long struct)

Unsafe version of acquireCount.

public static void
nacquireCount(long struct, int value)

Sets the specified value to the acquireCount field of the specified struct.

public static LongBuffer
npAcquireKeys(long struct)

Unsafe version of pAcquireKeys.

public static void
npAcquireKeys(long struct, LongBuffer value)

Unsafe version of pAcquireKeys.

public static LongBuffer
npAcquireSyncs(long struct)

Unsafe version of pAcquireSyncs.

public static void
npAcquireSyncs(long struct, LongBuffer value)

Unsafe version of pAcquireSyncs.

public static IntBuffer
npAcquireTimeouts(long struct)

Unsafe version of pAcquireTimeouts.

public static void
npAcquireTimeouts(long struct, IntBuffer value)

Unsafe version of pAcquireTimeouts.

public static long
npNext(long struct)

Unsafe version of pNext.

public static void
npNext(long struct, long value)

Unsafe version of pNext.

public static LongBuffer
npReleaseKeys(long struct)

Unsafe version of pReleaseKeys.

public static void
npReleaseKeys(long struct, LongBuffer value)

Unsafe version of pReleaseKeys.

public static LongBuffer
npReleaseSyncs(long struct)

Unsafe version of pReleaseSyncs.

public static void
npReleaseSyncs(long struct, LongBuffer value)

Unsafe version of pReleaseSyncs.

public static int
nreleaseCount(long struct)

Unsafe version of releaseCount.

public static void
nreleaseCount(long struct, int value)

Sets the specified value to the releaseCount field of the specified struct.

public static int
nsType(long struct)

Unsafe version of sType.

public static void
nsType(long struct, int value)

Unsafe version of sType.

public LongBuffer
pAcquireKeys()

a pointer to an array of mutex key values to wait for prior to beginning the submitted work.

public VkWin32KeyedMutexAcquireReleaseInfoKHR
pAcquireKeys(LongBuffer value)

Sets the address of the specified LongBuffer to the pAcquireKeys field.

public LongBuffer
pAcquireSyncs()

a pointer to an array of VkDeviceMemory objects which were imported from Direct3D 11 resources.

public VkWin32KeyedMutexAcquireReleaseInfoKHR
pAcquireSyncs(LongBuffer value)

Sets the address of the specified LongBuffer to the pAcquireSyncs field.

public IntBuffer
pAcquireTimeouts()

a pointer to an array of timeout values, in millisecond units, for each acquire specified in pAcquireKeys.

public VkWin32KeyedMutexAcquireReleaseInfoKHR
pAcquireTimeouts(IntBuffer value)

Sets the address of the specified IntBuffer to the pAcquireTimeouts field.

public long
pNext()

NULL or a pointer to a structure extending this structure.

public VkWin32KeyedMutexAcquireReleaseInfoKHR
pNext(long value)

Sets the specified value to the pNext field.

public LongBuffer
pReleaseKeys()

a pointer to an array of mutex key values to set when the submitted work has completed.

public VkWin32KeyedMutexAcquireReleaseInfoKHR
pReleaseKeys(LongBuffer value)

Sets the address of the specified LongBuffer to the pReleaseKeys field.

public LongBuffer
pReleaseSyncs()

a pointer to an array of VkDeviceMemory objects which were imported from Direct3D 11 resources.

public VkWin32KeyedMutexAcquireReleaseInfoKHR
pReleaseSyncs(LongBuffer value)

Sets the address of the specified LongBuffer to the pReleaseSyncs field.

public int
releaseCount()

the number of entries in the pReleaseSyncs and pReleaseKeys arrays.

public VkWin32KeyedMutexAcquireReleaseInfoKHR
releaseCount(int value)

Sets the specified value to the releaseCount field.

public VkWin32KeyedMutexAcquireReleaseInfoKHR
set(int sType, long pNext, int acquireCount, LongBuffer pAcquireSyncs, LongBuffer pAcquireKeys, IntBuffer pAcquireTimeouts, int releaseCount, LongBuffer pReleaseSyncs, LongBuffer pReleaseKeys)

Initializes this struct with the specified values.

public VkWin32KeyedMutexAcquireReleaseInfoKHR

Returns:

this struct
set
(VkWin32KeyedMutexAcquireReleaseInfoKHR
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 VkWin32KeyedMutexAcquireReleaseInfoKHR
sType(int value)

Sets the specified value to the sType field.

public VkWin32KeyedMutexAcquireReleaseInfoKHR
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