public class VkWin32KeyedMutexAcquireReleaseInfoKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
pAcquireSyncs and pReleaseSyncs must be a device memory object imported by setting VkImportMemoryWin32HandleInfoKHR::handleType to EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_BIT or EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_KMT_BIT.sType must be STRUCTURE_TYPE_WIN32_KEYED_MUTEX_ACQUIRE_RELEASE_INFO_KHRacquireCount is not 0, pAcquireSyncs must be a valid pointer to an array of acquireCount valid VkDeviceMemory handlesacquireCount is not 0, pAcquireKeys must be a valid pointer to an array of acquireCount uint64_t valuesacquireCount is not 0, pAcquireTimeouts must be a valid pointer to an array of acquireCount uint32_t valuesreleaseCount is not 0, pReleaseSyncs must be a valid pointer to an array of releaseCount valid VkDeviceMemory handlesreleaseCount is not 0, pReleaseKeys must be a valid pointer to an array of releaseCount uint64_t valuespAcquireSyncs, and the elements of pReleaseSyncs that are valid handles of non-ignored parameters must have been created, allocated, or retrieved from the same VkDeviceacquireCount – the number of entries in the pAcquireSyncs, pAcquireKeys, and pAcquireTimeoutMilliseconds arrays.pAcquireSyncs – a pointer to an array of VkDeviceMemory objects which were imported from Direct3D 11 resources.pAcquireKeys – a pointer to an array of mutex key values to wait for prior to beginning the submitted work. Entries refer to the keyed mutex associated with the corresponding entries in pAcquireSyncs.releaseCount – the number of entries in the pReleaseSyncs and pReleaseKeys arrays.pReleaseSyncs – a pointer to an array of VkDeviceMemory objects which were imported from Direct3D 11 resources.pReleaseKeys – a pointer to an array of mutex key values to set when the submitted work has completed. Entries refer to the keyed mutex associated with the corresponding entries in pReleaseSyncs.
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;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer
An array of
VkWin32KeyedMutexAcquireReleaseInfoKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ACQUIRECOUNT
The struct member offsets.
|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
PACQUIREKEYS
The struct member offsets.
|
static int |
PACQUIRESYNCS
The struct member offsets.
|
static int |
PACQUIRETIMEOUTS
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
PRELEASEKEYS
The struct member offsets.
|
static int |
PRELEASESYNCS
The struct member offsets.
|
static int |
RELEASECOUNT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkWin32KeyedMutexAcquireReleaseInfoKHR(java.nio.ByteBuffer container)
Creates a
VkWin32KeyedMutexAcquireReleaseInfoKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
acquireCount()
Returns the value of the
acquireCount field. |
VkWin32KeyedMutexAcquireReleaseInfoKHR |
acquireCount(int value)
Sets the specified value to the
acquireCount field. |
static VkWin32KeyedMutexAcquireReleaseInfoKHR |
calloc()
Returns a new
VkWin32KeyedMutexAcquireReleaseInfoKHR instance allocated with memCalloc. |
static VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer |
calloc(int capacity)
Returns a new
VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer instance allocated with memCalloc. |
static VkWin32KeyedMutexAcquireReleaseInfoKHR |
callocStack()
Returns a new
VkWin32KeyedMutexAcquireReleaseInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer |
callocStack(int capacity)
Returns a new
VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkWin32KeyedMutexAcquireReleaseInfoKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkWin32KeyedMutexAcquireReleaseInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkWin32KeyedMutexAcquireReleaseInfoKHR |
create()
Returns a new
VkWin32KeyedMutexAcquireReleaseInfoKHR instance allocated with BufferUtils. |
static VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer |
create(int capacity)
Returns a new
VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer instance allocated with BufferUtils. |
static VkWin32KeyedMutexAcquireReleaseInfoKHR |
create(long address)
Returns a new
VkWin32KeyedMutexAcquireReleaseInfoKHR instance for the specified memory address. |
static VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer |
create(long address,
int capacity)
Create a
VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer instance at the specified memory. |
static VkWin32KeyedMutexAcquireReleaseInfoKHR |
createSafe(long address)
|
static VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer |
createSafe(long address,
int capacity)
|
static VkWin32KeyedMutexAcquireReleaseInfoKHR |
malloc()
Returns a new
VkWin32KeyedMutexAcquireReleaseInfoKHR instance allocated with memAlloc. |
static VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer |
malloc(int capacity)
Returns a new
VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer instance allocated with memAlloc. |
static VkWin32KeyedMutexAcquireReleaseInfoKHR |
mallocStack()
Returns a new
VkWin32KeyedMutexAcquireReleaseInfoKHR instance allocated on the thread-local MemoryStack. |
static VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer instance allocated on the specified MemoryStack. |
static VkWin32KeyedMutexAcquireReleaseInfoKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkWin32KeyedMutexAcquireReleaseInfoKHR instance allocated on the specified MemoryStack. |
static int |
nacquireCount(long struct)
Unsafe version of
acquireCount(). |
static void |
nacquireCount(long struct,
int value)
Sets the specified value to the
acquireCount field of the specified struct. |
static java.nio.LongBuffer |
npAcquireKeys(long struct)
Unsafe version of
pAcquireKeys. |
static void |
npAcquireKeys(long struct,
java.nio.LongBuffer value)
Unsafe version of
pAcquireKeys. |
static java.nio.LongBuffer |
npAcquireSyncs(long struct)
Unsafe version of
pAcquireSyncs. |
static void |
npAcquireSyncs(long struct,
java.nio.LongBuffer value)
Unsafe version of
pAcquireSyncs. |
static java.nio.IntBuffer |
npAcquireTimeouts(long struct)
Unsafe version of
pAcquireTimeouts. |
static void |
npAcquireTimeouts(long struct,
java.nio.IntBuffer value)
Unsafe version of
pAcquireTimeouts. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static java.nio.LongBuffer |
npReleaseKeys(long struct)
Unsafe version of
pReleaseKeys. |
static void |
npReleaseKeys(long struct,
java.nio.LongBuffer value)
Unsafe version of
pReleaseKeys. |
static java.nio.LongBuffer |
npReleaseSyncs(long struct)
Unsafe version of
pReleaseSyncs. |
static void |
npReleaseSyncs(long struct,
java.nio.LongBuffer value)
Unsafe version of
pReleaseSyncs. |
static int |
nreleaseCount(long struct)
Unsafe version of
releaseCount(). |
static void |
nreleaseCount(long struct,
int value)
Sets the specified value to the
releaseCount field of the specified struct. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
java.nio.LongBuffer |
pAcquireKeys()
Returns a
LongBuffer view of the data pointed to by the pAcquireKeys field. |
VkWin32KeyedMutexAcquireReleaseInfoKHR |
pAcquireKeys(java.nio.LongBuffer value)
Sets the address of the specified
LongBuffer to the pAcquireKeys field. |
java.nio.LongBuffer |
pAcquireSyncs()
Returns a
LongBuffer view of the data pointed to by the pAcquireSyncs field. |
VkWin32KeyedMutexAcquireReleaseInfoKHR |
pAcquireSyncs(java.nio.LongBuffer value)
Sets the address of the specified
LongBuffer to the pAcquireSyncs field. |
java.nio.IntBuffer |
pAcquireTimeouts()
Returns a
IntBuffer view of the data pointed to by the pAcquireTimeouts field. |
VkWin32KeyedMutexAcquireReleaseInfoKHR |
pAcquireTimeouts(java.nio.IntBuffer value)
Sets the address of the specified
IntBuffer to the pAcquireTimeouts field. |
long |
pNext()
Returns the value of the
pNext field. |
VkWin32KeyedMutexAcquireReleaseInfoKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
java.nio.LongBuffer |
pReleaseKeys()
Returns a
LongBuffer view of the data pointed to by the pReleaseKeys field. |
VkWin32KeyedMutexAcquireReleaseInfoKHR |
pReleaseKeys(java.nio.LongBuffer value)
Sets the address of the specified
LongBuffer to the pReleaseKeys field. |
java.nio.LongBuffer |
pReleaseSyncs()
Returns a
LongBuffer view of the data pointed to by the pReleaseSyncs field. |
VkWin32KeyedMutexAcquireReleaseInfoKHR |
pReleaseSyncs(java.nio.LongBuffer value)
Sets the address of the specified
LongBuffer to the pReleaseSyncs field. |
int |
releaseCount()
Returns the value of the
releaseCount field. |
VkWin32KeyedMutexAcquireReleaseInfoKHR |
releaseCount(int value)
Sets the specified value to the
releaseCount field. |
VkWin32KeyedMutexAcquireReleaseInfoKHR |
set(int sType,
long pNext,
int acquireCount,
java.nio.LongBuffer pAcquireSyncs,
java.nio.LongBuffer pAcquireKeys,
java.nio.IntBuffer pAcquireTimeouts,
int releaseCount,
java.nio.LongBuffer pReleaseSyncs,
java.nio.LongBuffer pReleaseKeys)
Initializes this struct with the specified values.
|
VkWin32KeyedMutexAcquireReleaseInfoKHR |
set(VkWin32KeyedMutexAcquireReleaseInfoKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkWin32KeyedMutexAcquireReleaseInfoKHR |
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 ACQUIRECOUNT
public static final int PACQUIRESYNCS
public static final int PACQUIREKEYS
public static final int PACQUIRETIMEOUTS
public static final int RELEASECOUNT
public static final int PRELEASESYNCS
public static final int PRELEASEKEYS
public VkWin32KeyedMutexAcquireReleaseInfoKHR(java.nio.ByteBuffer container)
VkWin32KeyedMutexAcquireReleaseInfoKHR 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.public int acquireCount()
acquireCount field.@Nullable public java.nio.LongBuffer pAcquireSyncs()
LongBuffer view of the data pointed to by the pAcquireSyncs field.@Nullable public java.nio.LongBuffer pAcquireKeys()
LongBuffer view of the data pointed to by the pAcquireKeys field.@Nullable public java.nio.IntBuffer pAcquireTimeouts()
IntBuffer view of the data pointed to by the pAcquireTimeouts field.public int releaseCount()
releaseCount field.@Nullable public java.nio.LongBuffer pReleaseSyncs()
LongBuffer view of the data pointed to by the pReleaseSyncs field.@Nullable public java.nio.LongBuffer pReleaseKeys()
LongBuffer view of the data pointed to by the pReleaseKeys field.public VkWin32KeyedMutexAcquireReleaseInfoKHR sType(int value)
sType field.public VkWin32KeyedMutexAcquireReleaseInfoKHR pNext(long value)
pNext field.public VkWin32KeyedMutexAcquireReleaseInfoKHR acquireCount(int value)
acquireCount field.public VkWin32KeyedMutexAcquireReleaseInfoKHR pAcquireSyncs(@Nullable java.nio.LongBuffer value)
LongBuffer to the pAcquireSyncs field.public VkWin32KeyedMutexAcquireReleaseInfoKHR pAcquireKeys(@Nullable java.nio.LongBuffer value)
LongBuffer to the pAcquireKeys field.public VkWin32KeyedMutexAcquireReleaseInfoKHR pAcquireTimeouts(@Nullable java.nio.IntBuffer value)
IntBuffer to the pAcquireTimeouts field.public VkWin32KeyedMutexAcquireReleaseInfoKHR releaseCount(int value)
releaseCount field.public VkWin32KeyedMutexAcquireReleaseInfoKHR pReleaseSyncs(@Nullable java.nio.LongBuffer value)
LongBuffer to the pReleaseSyncs field.public VkWin32KeyedMutexAcquireReleaseInfoKHR pReleaseKeys(@Nullable java.nio.LongBuffer value)
LongBuffer to the pReleaseKeys field.public VkWin32KeyedMutexAcquireReleaseInfoKHR set(int sType, long pNext, int acquireCount, @Nullable java.nio.LongBuffer pAcquireSyncs, @Nullable java.nio.LongBuffer pAcquireKeys, @Nullable java.nio.IntBuffer pAcquireTimeouts, int releaseCount, @Nullable java.nio.LongBuffer pReleaseSyncs, @Nullable java.nio.LongBuffer pReleaseKeys)
public VkWin32KeyedMutexAcquireReleaseInfoKHR set(VkWin32KeyedMutexAcquireReleaseInfoKHR src)
src - the source structpublic static VkWin32KeyedMutexAcquireReleaseInfoKHR malloc()
VkWin32KeyedMutexAcquireReleaseInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkWin32KeyedMutexAcquireReleaseInfoKHR calloc()
VkWin32KeyedMutexAcquireReleaseInfoKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkWin32KeyedMutexAcquireReleaseInfoKHR create()
VkWin32KeyedMutexAcquireReleaseInfoKHR instance allocated with BufferUtils.public static VkWin32KeyedMutexAcquireReleaseInfoKHR create(long address)
VkWin32KeyedMutexAcquireReleaseInfoKHR instance for the specified memory address.@Nullable public static VkWin32KeyedMutexAcquireReleaseInfoKHR createSafe(long address)
public static VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer malloc(int capacity)
VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer calloc(int capacity)
VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer create(int capacity)
VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer create(long address, int capacity)
VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer createSafe(long address, int capacity)
public static VkWin32KeyedMutexAcquireReleaseInfoKHR mallocStack()
VkWin32KeyedMutexAcquireReleaseInfoKHR instance allocated on the thread-local MemoryStack.public static VkWin32KeyedMutexAcquireReleaseInfoKHR callocStack()
VkWin32KeyedMutexAcquireReleaseInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkWin32KeyedMutexAcquireReleaseInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkWin32KeyedMutexAcquireReleaseInfoKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkWin32KeyedMutexAcquireReleaseInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkWin32KeyedMutexAcquireReleaseInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer mallocStack(int capacity)
VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer callocStack(int capacity)
VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkWin32KeyedMutexAcquireReleaseInfoKHR.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().public static int nacquireCount(long struct)
acquireCount().@Nullable public static java.nio.LongBuffer npAcquireSyncs(long struct)
pAcquireSyncs.@Nullable public static java.nio.LongBuffer npAcquireKeys(long struct)
pAcquireKeys.@Nullable public static java.nio.IntBuffer npAcquireTimeouts(long struct)
pAcquireTimeouts.public static int nreleaseCount(long struct)
releaseCount().@Nullable public static java.nio.LongBuffer npReleaseSyncs(long struct)
pReleaseSyncs.@Nullable public static java.nio.LongBuffer npReleaseKeys(long struct)
pReleaseKeys.public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nacquireCount(long struct,
int value)
acquireCount field of the specified struct.public static void npAcquireSyncs(long struct,
@Nullable
java.nio.LongBuffer value)
pAcquireSyncs.public static void npAcquireKeys(long struct,
@Nullable
java.nio.LongBuffer value)
pAcquireKeys.public static void npAcquireTimeouts(long struct,
@Nullable
java.nio.IntBuffer value)
pAcquireTimeouts.public static void nreleaseCount(long struct,
int value)
releaseCount field of the specified struct.public static void npReleaseSyncs(long struct,
@Nullable
java.nio.LongBuffer value)
pReleaseSyncs.public static void npReleaseKeys(long struct,
@Nullable
java.nio.LongBuffer value)
pReleaseKeys.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.