org.lwjgl.vulkan.VkWin32KeyedMutexAcquireReleaseInfoNV Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lwjgl-vulkan Show documentation
Show all versions of lwjgl-vulkan Show documentation
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.
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.vulkan;
import javax.annotation.*;
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 valid pointer to an array of {@code acquireCount} valid {@code VkDeviceMemory} handles
* - If {@code acquireCount} is not 0, {@code pAcquireKeys} must be a valid pointer to an array of {@code acquireCount} {@code uint64_t} values
* - If {@code acquireCount} is not 0, {@code pAcquireTimeoutMilliseconds} must be a valid pointer to an array of {@code acquireCount} {@code uint32_t} values
* - If {@code releaseCount} is not 0, {@code pReleaseSyncs} must be a valid pointer to an array of {@code releaseCount} valid {@code VkDeviceMemory} handles
* - If {@code releaseCount} is not 0, {@code pReleaseKeys} must be a valid 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, @Nullable 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. */
@Nullable
@NativeType("const VkDeviceMemory *")
public LongBuffer pAcquireSyncs() { return npAcquireSyncs(address()); }
/** Returns a {@link LongBuffer} view of the data pointed to by the {@code pAcquireKeys} field. */
@Nullable
@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. */
@Nullable
@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. */
@Nullable
@NativeType("const VkDeviceMemory *")
public LongBuffer pReleaseSyncs() { return npReleaseSyncs(address()); }
/** Returns a {@link LongBuffer} view of the data pointed to by the {@code pReleaseKeys} field. */
@Nullable
@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(@Nullable @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(@Nullable @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(@Nullable @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(@Nullable @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(@Nullable @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(nmemAllocChecked(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(nmemCallocChecked(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. */
public static VkWin32KeyedMutexAcquireReleaseInfoNV create(long address) {
return new VkWin32KeyedMutexAcquireReleaseInfoNV(address, null);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static VkWin32KeyedMutexAcquireReleaseInfoNV createSafe(long address) {
return address == NULL ? null : create(address);
}
/**
* 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 VkWin32KeyedMutexAcquireReleaseInfoNV.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 VkWin32KeyedMutexAcquireReleaseInfoNV.Buffer calloc(int capacity) {
return create(nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
* Returns a new {@link VkWin32KeyedMutexAcquireReleaseInfoNV.Buffer} instance allocated with {@link BufferUtils}.
*
* @param capacity the buffer capacity
*/
public static VkWin32KeyedMutexAcquireReleaseInfoNV.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 VkWin32KeyedMutexAcquireReleaseInfoNV.Buffer create(long address, int capacity) {
return new Buffer(address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static VkWin32KeyedMutexAcquireReleaseInfoNV.Buffer createSafe(long address, int capacity) {
return address == NULL ? null : create(address, 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 VkWin32KeyedMutexAcquireReleaseInfoNV.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 VkWin32KeyedMutexAcquireReleaseInfoNV.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 VkWin32KeyedMutexAcquireReleaseInfoNV.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 VkWin32KeyedMutexAcquireReleaseInfoNV.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}. */
@Nullable public static LongBuffer npAcquireSyncs(long struct) { return memLongBufferSafe(memGetAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoNV.PACQUIRESYNCS), nacquireCount(struct)); }
/** Unsafe version of {@link #pAcquireKeys() pAcquireKeys}. */
@Nullable public static LongBuffer npAcquireKeys(long struct) { return memLongBufferSafe(memGetAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoNV.PACQUIREKEYS), nacquireCount(struct)); }
/** Unsafe version of {@link #pAcquireTimeoutMilliseconds() pAcquireTimeoutMilliseconds}. */
@Nullable public static IntBuffer npAcquireTimeoutMilliseconds(long struct) { return memIntBufferSafe(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}. */
@Nullable public static LongBuffer npReleaseSyncs(long struct) { return memLongBufferSafe(memGetAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoNV.PRELEASESYNCS), nreleaseCount(struct)); }
/** Unsafe version of {@link #pReleaseKeys() pReleaseKeys}. */
@Nullable public static LongBuffer npReleaseKeys(long struct) { return memLongBufferSafe(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, @Nullable LongBuffer value) { memPutAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoNV.PACQUIRESYNCS, memAddressSafe(value)); }
/** Unsafe version of {@link #pAcquireKeys(LongBuffer) pAcquireKeys}. */
public static void npAcquireKeys(long struct, @Nullable LongBuffer value) { memPutAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoNV.PACQUIREKEYS, memAddressSafe(value)); }
/** Unsafe version of {@link #pAcquireTimeoutMilliseconds(IntBuffer) pAcquireTimeoutMilliseconds}. */
public static void npAcquireTimeoutMilliseconds(long struct, @Nullable 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, @Nullable LongBuffer value) { memPutAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoNV.PRELEASESYNCS, memAddressSafe(value)); }
/** Unsafe version of {@link #pReleaseKeys(LongBuffer) pReleaseKeys}. */
public static void npReleaseKeys(long struct, @Nullable 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);
}
public Buffer(long address, int cap) {
super(address, null, -1, 0, cap, cap);
}
Buffer(long address, @Nullable 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, @Nullable 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. */
@Nullable
@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. */
@Nullable
@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. */
@Nullable
@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. */
@Nullable
@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. */
@Nullable
@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(@Nullable @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(@Nullable @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(@Nullable @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(@Nullable @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(@Nullable @NativeType("const uint64_t *") LongBuffer value) { VkWin32KeyedMutexAcquireReleaseInfoNV.npReleaseKeys(address(), value); return this; }
}
}