All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.vulkan.VkWin32KeyedMutexAcquireReleaseInfoNV Maven / Gradle / Ivy

Go to download

A new generation graphics and compute API that provides high-efficiency, cross-platform access to modern GPUs used in a wide variety of devices from PCs and consoles to mobile phones and embedded platforms.

There is a newer version: 3.3.4
Show newest version
/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.vulkan;

import java.nio.*;

import org.lwjgl.*;
import org.lwjgl.system.*;

import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.MemoryUtil.*;
import static org.lwjgl.system.MemoryStack.*;

/**
 * use Windows keyex mutex mechanism to synchronize work.
 * 
 * 
Valid Usage (Implicit)
* *
    *
  • {@code sType} must be {@link NVWin32KeyedMutex#VK_STRUCTURE_TYPE_WIN32_KEYED_MUTEX_ACQUIRE_RELEASE_INFO_NV STRUCTURE_TYPE_WIN32_KEYED_MUTEX_ACQUIRE_RELEASE_INFO_NV}
  • *
  • If {@code acquireCount} is not 0, {@code pAcquireSyncs} must be a pointer to an array of {@code acquireCount} valid {@code VkDeviceMemory} handles
  • *
  • If {@code acquireCount} is not 0, {@code pAcquireKeys} must be a pointer to an array of {@code acquireCount} {@code uint64_t} values
  • *
  • If {@code acquireCount} is not 0, {@code pAcquireTimeoutMilliseconds} must be a pointer to an array of {@code acquireCount} {@code uint32_t} values
  • *
  • If {@code releaseCount} is not 0, {@code pReleaseSyncs} must be a pointer to an array of {@code releaseCount} valid {@code VkDeviceMemory} handles
  • *
  • If {@code releaseCount} is not 0, {@code pReleaseKeys} must be a pointer to an array of {@code releaseCount} {@code uint64_t} values
  • *
  • Both of the elements of {@code pAcquireSyncs}, and the elements of {@code pReleaseSyncs} that are valid handles must have been created, allocated, or retrieved from the same {@code VkDevice}
  • *
* *

Member documentation

* *
    *
  • {@code acquireCount} – the number of entries in the {@code pAcquireSyncs}, {@code pAcquireKeys}, and {@code pAcquireTimeoutMilliseconds} arrays.
  • *
  • {@code pAcquireSyncs} – a pointer to an array of {@code VkDeviceMemory} objects which were imported from Direct3D 11 resources.
  • *
  • {@code 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 {@code pAcquireSyncs}.
  • *
  • {@code pAcquireTimeoutMilliseconds} – an array of timeout values, in millisecond units, for each acquire specified in {@code pAcquireKeys}.
  • *
  • {@code releaseCount} – the number of entries in the {@code pReleaseSyncs} and {@code pReleaseKeys} arrays.
  • *
  • {@code pReleaseSyncs} – a pointer to an array of {@code VkDeviceMemory} objects which were imported from Direct3D 11 resources.
  • *
  • {@code 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 {@code pReleaseSyncs}.
  • *
* *

Layout

* *
 * struct VkWin32KeyedMutexAcquireReleaseInfoNV {
 *     VkStructureType sType;
 *     const void * pNext;
 *     uint32_t acquireCount;
 *     const VkDeviceMemory * pAcquireSyncs;
 *     const uint64_t * pAcquireKeys;
 *     const uint32_t * pAcquireTimeoutMilliseconds;
 *     uint32_t releaseCount;
 *     const VkDeviceMemory * pReleaseSyncs;
 *     const uint64_t * pReleaseKeys;
 * }
*/ public class VkWin32KeyedMutexAcquireReleaseInfoNV extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; public static final int ALIGNOF; /** The struct member offsets. */ public static final int STYPE, PNEXT, ACQUIRECOUNT, PACQUIRESYNCS, PACQUIREKEYS, PACQUIRETIMEOUTMILLISECONDS, RELEASECOUNT, PRELEASESYNCS, PRELEASEKEYS; static { Layout layout = __struct( __member(4), __member(POINTER_SIZE), __member(4), __member(POINTER_SIZE), __member(POINTER_SIZE), __member(POINTER_SIZE), __member(4), __member(POINTER_SIZE), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); STYPE = layout.offsetof(0); PNEXT = layout.offsetof(1); ACQUIRECOUNT = layout.offsetof(2); PACQUIRESYNCS = layout.offsetof(3); PACQUIREKEYS = layout.offsetof(4); PACQUIRETIMEOUTMILLISECONDS = layout.offsetof(5); RELEASECOUNT = layout.offsetof(6); PRELEASESYNCS = layout.offsetof(7); PRELEASEKEYS = layout.offsetof(8); } VkWin32KeyedMutexAcquireReleaseInfoNV(long address, ByteBuffer container) { super(address, container); } /** * Creates a {@link VkWin32KeyedMutexAcquireReleaseInfoNV} instance at the current position of the specified {@link 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 VkWin32KeyedMutexAcquireReleaseInfoNV(ByteBuffer container) { this(memAddress(container), checkContainer(container, SIZEOF)); } @Override public int sizeof() { return SIZEOF; } /** Returns the value of the {@code sType} field. */ @NativeType("VkStructureType") public int sType() { return nsType(address()); } /** Returns the value of the {@code pNext} field. */ @NativeType("const void *") public long pNext() { return npNext(address()); } /** Returns the value of the {@code acquireCount} field. */ @NativeType("uint32_t") public int acquireCount() { return nacquireCount(address()); } /** Returns a {@link LongBuffer} view of the data pointed to by the {@code pAcquireSyncs} field. */ @NativeType("const VkDeviceMemory *") public LongBuffer pAcquireSyncs() { return npAcquireSyncs(address()); } /** Returns a {@link LongBuffer} view of the data pointed to by the {@code pAcquireKeys} field. */ @NativeType("const uint64_t *") public LongBuffer pAcquireKeys() { return npAcquireKeys(address()); } /** Returns a {@link IntBuffer} view of the data pointed to by the {@code pAcquireTimeoutMilliseconds} field. */ @NativeType("const uint32_t *") public IntBuffer pAcquireTimeoutMilliseconds() { return npAcquireTimeoutMilliseconds(address()); } /** Returns the value of the {@code releaseCount} field. */ @NativeType("uint32_t") public int releaseCount() { return nreleaseCount(address()); } /** Returns a {@link LongBuffer} view of the data pointed to by the {@code pReleaseSyncs} field. */ @NativeType("const VkDeviceMemory *") public LongBuffer pReleaseSyncs() { return npReleaseSyncs(address()); } /** Returns a {@link LongBuffer} view of the data pointed to by the {@code pReleaseKeys} field. */ @NativeType("const uint64_t *") public LongBuffer pReleaseKeys() { return npReleaseKeys(address()); } /** Sets the specified value to the {@code sType} field. */ public VkWin32KeyedMutexAcquireReleaseInfoNV sType(@NativeType("VkStructureType") int value) { nsType(address(), value); return this; } /** Sets the specified value to the {@code pNext} field. */ public VkWin32KeyedMutexAcquireReleaseInfoNV pNext(@NativeType("const void *") long value) { npNext(address(), value); return this; } /** Sets the specified value to the {@code acquireCount} field. */ public VkWin32KeyedMutexAcquireReleaseInfoNV acquireCount(@NativeType("uint32_t") int value) { nacquireCount(address(), value); return this; } /** Sets the address of the specified {@link LongBuffer} to the {@code pAcquireSyncs} field. */ public VkWin32KeyedMutexAcquireReleaseInfoNV pAcquireSyncs(@NativeType("const VkDeviceMemory *") LongBuffer value) { npAcquireSyncs(address(), value); return this; } /** Sets the address of the specified {@link LongBuffer} to the {@code pAcquireKeys} field. */ public VkWin32KeyedMutexAcquireReleaseInfoNV pAcquireKeys(@NativeType("const uint64_t *") LongBuffer value) { npAcquireKeys(address(), value); return this; } /** Sets the address of the specified {@link IntBuffer} to the {@code pAcquireTimeoutMilliseconds} field. */ public VkWin32KeyedMutexAcquireReleaseInfoNV pAcquireTimeoutMilliseconds(@NativeType("const uint32_t *") IntBuffer value) { npAcquireTimeoutMilliseconds(address(), value); return this; } /** Sets the specified value to the {@code releaseCount} field. */ public VkWin32KeyedMutexAcquireReleaseInfoNV releaseCount(@NativeType("uint32_t") int value) { nreleaseCount(address(), value); return this; } /** Sets the address of the specified {@link LongBuffer} to the {@code pReleaseSyncs} field. */ public VkWin32KeyedMutexAcquireReleaseInfoNV pReleaseSyncs(@NativeType("const VkDeviceMemory *") LongBuffer value) { npReleaseSyncs(address(), value); return this; } /** Sets the address of the specified {@link LongBuffer} to the {@code pReleaseKeys} field. */ public VkWin32KeyedMutexAcquireReleaseInfoNV pReleaseKeys(@NativeType("const uint64_t *") LongBuffer value) { npReleaseKeys(address(), value); return this; } /** Initializes this struct with the specified values. */ public VkWin32KeyedMutexAcquireReleaseInfoNV set( int sType, long pNext, int acquireCount, LongBuffer pAcquireSyncs, LongBuffer pAcquireKeys, IntBuffer pAcquireTimeoutMilliseconds, int releaseCount, LongBuffer pReleaseSyncs, LongBuffer pReleaseKeys ) { sType(sType); pNext(pNext); acquireCount(acquireCount); pAcquireSyncs(pAcquireSyncs); pAcquireKeys(pAcquireKeys); pAcquireTimeoutMilliseconds(pAcquireTimeoutMilliseconds); releaseCount(releaseCount); pReleaseSyncs(pReleaseSyncs); pReleaseKeys(pReleaseKeys); return this; } /** * Copies the specified struct data to this struct. * * @param src the source struct * * @return this struct */ public VkWin32KeyedMutexAcquireReleaseInfoNV set(VkWin32KeyedMutexAcquireReleaseInfoNV src) { memCopy(src.address(), address(), SIZEOF); return this; } // ----------------------------------- /** Returns a new {@link VkWin32KeyedMutexAcquireReleaseInfoNV} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static VkWin32KeyedMutexAcquireReleaseInfoNV malloc() { return create(nmemAlloc(SIZEOF)); } /** Returns a new {@link VkWin32KeyedMutexAcquireReleaseInfoNV} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static VkWin32KeyedMutexAcquireReleaseInfoNV calloc() { return create(nmemCalloc(1, SIZEOF)); } /** Returns a new {@link VkWin32KeyedMutexAcquireReleaseInfoNV} instance allocated with {@link BufferUtils}. */ public static VkWin32KeyedMutexAcquireReleaseInfoNV create() { return new VkWin32KeyedMutexAcquireReleaseInfoNV(BufferUtils.createByteBuffer(SIZEOF)); } /** Returns a new {@link VkWin32KeyedMutexAcquireReleaseInfoNV} instance for the specified memory address or {@code null} if the address is {@code NULL}. */ public static VkWin32KeyedMutexAcquireReleaseInfoNV create(long address) { return address == NULL ? null : new VkWin32KeyedMutexAcquireReleaseInfoNV(address, null); } /** * Returns a new {@link VkWin32KeyedMutexAcquireReleaseInfoNV.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. * * @param capacity the buffer capacity */ public static Buffer malloc(int capacity) { return create(__malloc(capacity, SIZEOF), capacity); } /** * Returns a new {@link VkWin32KeyedMutexAcquireReleaseInfoNV.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. * * @param capacity the buffer capacity */ public static Buffer calloc(int capacity) { return create(nmemCalloc(capacity, SIZEOF), capacity); } /** * Returns a new {@link VkWin32KeyedMutexAcquireReleaseInfoNV.Buffer} instance allocated with {@link BufferUtils}. * * @param capacity the buffer capacity */ public static Buffer create(int capacity) { return new Buffer(__create(capacity, SIZEOF)); } /** * Create a {@link VkWin32KeyedMutexAcquireReleaseInfoNV.Buffer} instance at the specified memory. * * @param address the memory address * @param capacity the buffer capacity */ public static Buffer create(long address, int capacity) { return address == NULL ? null : new Buffer(address, null, -1, 0, capacity, capacity); } // ----------------------------------- /** Returns a new {@link VkWin32KeyedMutexAcquireReleaseInfoNV} instance allocated on the thread-local {@link MemoryStack}. */ public static VkWin32KeyedMutexAcquireReleaseInfoNV mallocStack() { return mallocStack(stackGet()); } /** Returns a new {@link VkWin32KeyedMutexAcquireReleaseInfoNV} instance allocated on the thread-local {@link MemoryStack} and initializes all its bits to zero. */ public static VkWin32KeyedMutexAcquireReleaseInfoNV callocStack() { return callocStack(stackGet()); } /** * Returns a new {@link VkWin32KeyedMutexAcquireReleaseInfoNV} instance allocated on the specified {@link MemoryStack}. * * @param stack the stack from which to allocate */ public static VkWin32KeyedMutexAcquireReleaseInfoNV mallocStack(MemoryStack stack) { return create(stack.nmalloc(ALIGNOF, SIZEOF)); } /** * Returns a new {@link VkWin32KeyedMutexAcquireReleaseInfoNV} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. * * @param stack the stack from which to allocate */ public static VkWin32KeyedMutexAcquireReleaseInfoNV callocStack(MemoryStack stack) { return create(stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** * Returns a new {@link VkWin32KeyedMutexAcquireReleaseInfoNV.Buffer} instance allocated on the thread-local {@link MemoryStack}. * * @param capacity the buffer capacity */ public static Buffer mallocStack(int capacity) { return mallocStack(capacity, stackGet()); } /** * Returns a new {@link VkWin32KeyedMutexAcquireReleaseInfoNV.Buffer} instance allocated on the thread-local {@link MemoryStack} and initializes all its bits to zero. * * @param capacity the buffer capacity */ public static Buffer callocStack(int capacity) { return callocStack(capacity, stackGet()); } /** * Returns a new {@link VkWin32KeyedMutexAcquireReleaseInfoNV.Buffer} instance allocated on the specified {@link MemoryStack}. * * @param stack the stack from which to allocate * @param capacity the buffer capacity */ public static Buffer mallocStack(int capacity, MemoryStack stack) { return create(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); } /** * Returns a new {@link VkWin32KeyedMutexAcquireReleaseInfoNV.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. * * @param stack the stack from which to allocate * @param capacity the buffer capacity */ public static Buffer callocStack(int capacity, MemoryStack stack) { return create(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); } // ----------------------------------- /** Unsafe version of {@link #sType}. */ public static int nsType(long struct) { return memGetInt(struct + VkWin32KeyedMutexAcquireReleaseInfoNV.STYPE); } /** Unsafe version of {@link #pNext}. */ public static long npNext(long struct) { return memGetAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoNV.PNEXT); } /** Unsafe version of {@link #acquireCount}. */ public static int nacquireCount(long struct) { return memGetInt(struct + VkWin32KeyedMutexAcquireReleaseInfoNV.ACQUIRECOUNT); } /** Unsafe version of {@link #pAcquireSyncs() pAcquireSyncs}. */ public static LongBuffer npAcquireSyncs(long struct) { return memLongBuffer(memGetAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoNV.PACQUIRESYNCS), nacquireCount(struct)); } /** Unsafe version of {@link #pAcquireKeys() pAcquireKeys}. */ public static LongBuffer npAcquireKeys(long struct) { return memLongBuffer(memGetAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoNV.PACQUIREKEYS), nacquireCount(struct)); } /** Unsafe version of {@link #pAcquireTimeoutMilliseconds() pAcquireTimeoutMilliseconds}. */ public static IntBuffer npAcquireTimeoutMilliseconds(long struct) { return memIntBuffer(memGetAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoNV.PACQUIRETIMEOUTMILLISECONDS), nacquireCount(struct)); } /** Unsafe version of {@link #releaseCount}. */ public static int nreleaseCount(long struct) { return memGetInt(struct + VkWin32KeyedMutexAcquireReleaseInfoNV.RELEASECOUNT); } /** Unsafe version of {@link #pReleaseSyncs() pReleaseSyncs}. */ public static LongBuffer npReleaseSyncs(long struct) { return memLongBuffer(memGetAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoNV.PRELEASESYNCS), nreleaseCount(struct)); } /** Unsafe version of {@link #pReleaseKeys() pReleaseKeys}. */ public static LongBuffer npReleaseKeys(long struct) { return memLongBuffer(memGetAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoNV.PRELEASEKEYS), nreleaseCount(struct)); } /** Unsafe version of {@link #sType(int) sType}. */ public static void nsType(long struct, int value) { memPutInt(struct + VkWin32KeyedMutexAcquireReleaseInfoNV.STYPE, value); } /** Unsafe version of {@link #pNext(long) pNext}. */ public static void npNext(long struct, long value) { memPutAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoNV.PNEXT, value); } /** Sets the specified value to the {@code acquireCount} field of the specified {@code struct}. */ public static void nacquireCount(long struct, int value) { memPutInt(struct + VkWin32KeyedMutexAcquireReleaseInfoNV.ACQUIRECOUNT, value); } /** Unsafe version of {@link #pAcquireSyncs(LongBuffer) pAcquireSyncs}. */ public static void npAcquireSyncs(long struct, LongBuffer value) { memPutAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoNV.PACQUIRESYNCS, memAddressSafe(value)); } /** Unsafe version of {@link #pAcquireKeys(LongBuffer) pAcquireKeys}. */ public static void npAcquireKeys(long struct, LongBuffer value) { memPutAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoNV.PACQUIREKEYS, memAddressSafe(value)); } /** Unsafe version of {@link #pAcquireTimeoutMilliseconds(IntBuffer) pAcquireTimeoutMilliseconds}. */ public static void npAcquireTimeoutMilliseconds(long struct, IntBuffer value) { memPutAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoNV.PACQUIRETIMEOUTMILLISECONDS, memAddressSafe(value)); } /** Sets the specified value to the {@code releaseCount} field of the specified {@code struct}. */ public static void nreleaseCount(long struct, int value) { memPutInt(struct + VkWin32KeyedMutexAcquireReleaseInfoNV.RELEASECOUNT, value); } /** Unsafe version of {@link #pReleaseSyncs(LongBuffer) pReleaseSyncs}. */ public static void npReleaseSyncs(long struct, LongBuffer value) { memPutAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoNV.PRELEASESYNCS, memAddressSafe(value)); } /** Unsafe version of {@link #pReleaseKeys(LongBuffer) pReleaseKeys}. */ public static void npReleaseKeys(long struct, LongBuffer value) { memPutAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoNV.PRELEASEKEYS, memAddressSafe(value)); } /** * Validates pointer members that should not be {@code NULL}. * * @param struct the struct to validate */ public static void validate(long struct) { if (nacquireCount(struct) != 0) { check(memGetAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoNV.PACQUIRESYNCS)); check(memGetAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoNV.PACQUIREKEYS)); check(memGetAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoNV.PACQUIRETIMEOUTMILLISECONDS)); } if (nreleaseCount(struct) != 0) { check(memGetAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoNV.PRELEASESYNCS)); check(memGetAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoNV.PRELEASEKEYS)); } } /** * Calls {@link #validate(long)} for each struct contained in the specified struct array. * * @param array the struct array to validate * @param count the number of structs in {@code array} */ public static void validate(long array, int count) { for (int i = 0; i < count; i++) { validate(array + i * SIZEOF); } } // ----------------------------------- /** An array of {@link VkWin32KeyedMutexAcquireReleaseInfoNV} structs. */ public static class Buffer extends StructBuffer implements NativeResource { /** * Creates a new {@link VkWin32KeyedMutexAcquireReleaseInfoNV.Buffer} instance backed by the specified container. * * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided * by {@link VkWin32KeyedMutexAcquireReleaseInfoNV#SIZEOF}, and its mark will be undefined. * *

The created buffer instance holds a strong reference to the container object.

*/ public Buffer(ByteBuffer container) { super(container, container.remaining() / SIZEOF); } Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) { super(address, container, mark, pos, lim, cap); } @Override protected Buffer self() { return this; } @Override protected Buffer newBufferInstance(long address, ByteBuffer container, int mark, int pos, int lim, int cap) { return new Buffer(address, container, mark, pos, lim, cap); } @Override protected VkWin32KeyedMutexAcquireReleaseInfoNV newInstance(long address) { return new VkWin32KeyedMutexAcquireReleaseInfoNV(address, container); } @Override public int sizeof() { return SIZEOF; } /** Returns the value of the {@code sType} field. */ @NativeType("VkStructureType") public int sType() { return VkWin32KeyedMutexAcquireReleaseInfoNV.nsType(address()); } /** Returns the value of the {@code pNext} field. */ @NativeType("const void *") public long pNext() { return VkWin32KeyedMutexAcquireReleaseInfoNV.npNext(address()); } /** Returns the value of the {@code acquireCount} field. */ @NativeType("uint32_t") public int acquireCount() { return VkWin32KeyedMutexAcquireReleaseInfoNV.nacquireCount(address()); } /** Returns a {@link LongBuffer} view of the data pointed to by the {@code pAcquireSyncs} field. */ @NativeType("const VkDeviceMemory *") public LongBuffer pAcquireSyncs() { return VkWin32KeyedMutexAcquireReleaseInfoNV.npAcquireSyncs(address()); } /** Returns a {@link LongBuffer} view of the data pointed to by the {@code pAcquireKeys} field. */ @NativeType("const uint64_t *") public LongBuffer pAcquireKeys() { return VkWin32KeyedMutexAcquireReleaseInfoNV.npAcquireKeys(address()); } /** Returns a {@link IntBuffer} view of the data pointed to by the {@code pAcquireTimeoutMilliseconds} field. */ @NativeType("const uint32_t *") public IntBuffer pAcquireTimeoutMilliseconds() { return VkWin32KeyedMutexAcquireReleaseInfoNV.npAcquireTimeoutMilliseconds(address()); } /** Returns the value of the {@code releaseCount} field. */ @NativeType("uint32_t") public int releaseCount() { return VkWin32KeyedMutexAcquireReleaseInfoNV.nreleaseCount(address()); } /** Returns a {@link LongBuffer} view of the data pointed to by the {@code pReleaseSyncs} field. */ @NativeType("const VkDeviceMemory *") public LongBuffer pReleaseSyncs() { return VkWin32KeyedMutexAcquireReleaseInfoNV.npReleaseSyncs(address()); } /** Returns a {@link LongBuffer} view of the data pointed to by the {@code pReleaseKeys} field. */ @NativeType("const uint64_t *") public LongBuffer pReleaseKeys() { return VkWin32KeyedMutexAcquireReleaseInfoNV.npReleaseKeys(address()); } /** Sets the specified value to the {@code sType} field. */ public VkWin32KeyedMutexAcquireReleaseInfoNV.Buffer sType(@NativeType("VkStructureType") int value) { VkWin32KeyedMutexAcquireReleaseInfoNV.nsType(address(), value); return this; } /** Sets the specified value to the {@code pNext} field. */ public VkWin32KeyedMutexAcquireReleaseInfoNV.Buffer pNext(@NativeType("const void *") long value) { VkWin32KeyedMutexAcquireReleaseInfoNV.npNext(address(), value); return this; } /** Sets the specified value to the {@code acquireCount} field. */ public VkWin32KeyedMutexAcquireReleaseInfoNV.Buffer acquireCount(@NativeType("uint32_t") int value) { VkWin32KeyedMutexAcquireReleaseInfoNV.nacquireCount(address(), value); return this; } /** Sets the address of the specified {@link LongBuffer} to the {@code pAcquireSyncs} field. */ public VkWin32KeyedMutexAcquireReleaseInfoNV.Buffer pAcquireSyncs(@NativeType("const VkDeviceMemory *") LongBuffer value) { VkWin32KeyedMutexAcquireReleaseInfoNV.npAcquireSyncs(address(), value); return this; } /** Sets the address of the specified {@link LongBuffer} to the {@code pAcquireKeys} field. */ public VkWin32KeyedMutexAcquireReleaseInfoNV.Buffer pAcquireKeys(@NativeType("const uint64_t *") LongBuffer value) { VkWin32KeyedMutexAcquireReleaseInfoNV.npAcquireKeys(address(), value); return this; } /** Sets the address of the specified {@link IntBuffer} to the {@code pAcquireTimeoutMilliseconds} field. */ public VkWin32KeyedMutexAcquireReleaseInfoNV.Buffer pAcquireTimeoutMilliseconds(@NativeType("const uint32_t *") IntBuffer value) { VkWin32KeyedMutexAcquireReleaseInfoNV.npAcquireTimeoutMilliseconds(address(), value); return this; } /** Sets the specified value to the {@code releaseCount} field. */ public VkWin32KeyedMutexAcquireReleaseInfoNV.Buffer releaseCount(@NativeType("uint32_t") int value) { VkWin32KeyedMutexAcquireReleaseInfoNV.nreleaseCount(address(), value); return this; } /** Sets the address of the specified {@link LongBuffer} to the {@code pReleaseSyncs} field. */ public VkWin32KeyedMutexAcquireReleaseInfoNV.Buffer pReleaseSyncs(@NativeType("const VkDeviceMemory *") LongBuffer value) { VkWin32KeyedMutexAcquireReleaseInfoNV.npReleaseSyncs(address(), value); return this; } /** Sets the address of the specified {@link LongBuffer} to the {@code pReleaseKeys} field. */ public VkWin32KeyedMutexAcquireReleaseInfoNV.Buffer pReleaseKeys(@NativeType("const uint64_t *") LongBuffer value) { VkWin32KeyedMutexAcquireReleaseInfoNV.npReleaseKeys(address(), value); return this; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy