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

org.lwjgl.vulkan.VkWin32KeyedMutexAcquireReleaseInfoKHR 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 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 the Windows keyed mutex mechanism to synchronize work.
 * 
 * 
Valid Usage
* *
    *
  • Each member of {@code pAcquireSyncs} and {@code pReleaseSyncs} must be a device memory object imported by setting {@link VkImportMemoryWin32HandleInfoKHR}{@code ::handleType} to {@link KHRExternalMemoryCapabilities#VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_BIT_KHR EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_BIT_KHR} or {@link KHRExternalMemoryCapabilities#VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_KMT_BIT_KHR EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_KMT_BIT_KHR}.
  • *
* *
Valid Usage (Implicit)
* *
    *
  • {@code sType} must be {@link KHRWin32KeyedMutex#VK_STRUCTURE_TYPE_WIN32_KEYED_MUTEX_ACQUIRE_RELEASE_INFO_KHR STRUCTURE_TYPE_WIN32_KEYED_MUTEX_ACQUIRE_RELEASE_INFO_KHR}
  • *
  • 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 pAcquireTimeouts} 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 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 VkWin32KeyedMutexAcquireReleaseInfoKHR {
 *     VkStructureType sType;
 *     const void * pNext;
 *     uint32_t acquireCount;
 *     const VkDeviceMemory * pAcquireSyncs;
 *     const uint64_t * pAcquireKeys;
 *     const uint32_t * pAcquireTimeouts;
 *     uint32_t releaseCount;
 *     const VkDeviceMemory * pReleaseSyncs;
 *     const uint64_t * pReleaseKeys;
 * }
*/ public class VkWin32KeyedMutexAcquireReleaseInfoKHR 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, PACQUIRETIMEOUTS, 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); PACQUIRETIMEOUTS = layout.offsetof(5); RELEASECOUNT = layout.offsetof(6); PRELEASESYNCS = layout.offsetof(7); PRELEASEKEYS = layout.offsetof(8); } VkWin32KeyedMutexAcquireReleaseInfoKHR(long address, @Nullable ByteBuffer container) { super(address, container); } /** * Creates a {@link VkWin32KeyedMutexAcquireReleaseInfoKHR} 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 VkWin32KeyedMutexAcquireReleaseInfoKHR(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 pAcquireTimeouts} field. */ @Nullable @NativeType("const uint32_t *") public IntBuffer pAcquireTimeouts() { return npAcquireTimeouts(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 VkWin32KeyedMutexAcquireReleaseInfoKHR sType(@NativeType("VkStructureType") int value) { nsType(address(), value); return this; } /** Sets the specified value to the {@code pNext} field. */ public VkWin32KeyedMutexAcquireReleaseInfoKHR pNext(@NativeType("const void *") long value) { npNext(address(), value); return this; } /** Sets the specified value to the {@code acquireCount} field. */ public VkWin32KeyedMutexAcquireReleaseInfoKHR 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 VkWin32KeyedMutexAcquireReleaseInfoKHR 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 VkWin32KeyedMutexAcquireReleaseInfoKHR pAcquireKeys(@Nullable @NativeType("const uint64_t *") LongBuffer value) { npAcquireKeys(address(), value); return this; } /** Sets the address of the specified {@link IntBuffer} to the {@code pAcquireTimeouts} field. */ public VkWin32KeyedMutexAcquireReleaseInfoKHR pAcquireTimeouts(@Nullable @NativeType("const uint32_t *") IntBuffer value) { npAcquireTimeouts(address(), value); return this; } /** Sets the specified value to the {@code releaseCount} field. */ public VkWin32KeyedMutexAcquireReleaseInfoKHR 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 VkWin32KeyedMutexAcquireReleaseInfoKHR 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 VkWin32KeyedMutexAcquireReleaseInfoKHR pReleaseKeys(@Nullable @NativeType("const uint64_t *") LongBuffer value) { npReleaseKeys(address(), value); return this; } /** Initializes this struct with the specified values. */ public VkWin32KeyedMutexAcquireReleaseInfoKHR set( int sType, long pNext, int acquireCount, LongBuffer pAcquireSyncs, LongBuffer pAcquireKeys, IntBuffer pAcquireTimeouts, int releaseCount, LongBuffer pReleaseSyncs, LongBuffer pReleaseKeys ) { sType(sType); pNext(pNext); acquireCount(acquireCount); pAcquireSyncs(pAcquireSyncs); pAcquireKeys(pAcquireKeys); pAcquireTimeouts(pAcquireTimeouts); 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 VkWin32KeyedMutexAcquireReleaseInfoKHR set(VkWin32KeyedMutexAcquireReleaseInfoKHR src) { memCopy(src.address(), address(), SIZEOF); return this; } // ----------------------------------- /** Returns a new {@link VkWin32KeyedMutexAcquireReleaseInfoKHR} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static VkWin32KeyedMutexAcquireReleaseInfoKHR malloc() { return create(nmemAllocChecked(SIZEOF)); } /** Returns a new {@link VkWin32KeyedMutexAcquireReleaseInfoKHR} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static VkWin32KeyedMutexAcquireReleaseInfoKHR calloc() { return create(nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@link VkWin32KeyedMutexAcquireReleaseInfoKHR} instance allocated with {@link BufferUtils}. */ public static VkWin32KeyedMutexAcquireReleaseInfoKHR create() { return new VkWin32KeyedMutexAcquireReleaseInfoKHR(BufferUtils.createByteBuffer(SIZEOF)); } /** Returns a new {@link VkWin32KeyedMutexAcquireReleaseInfoKHR} instance for the specified memory address. */ public static VkWin32KeyedMutexAcquireReleaseInfoKHR create(long address) { return new VkWin32KeyedMutexAcquireReleaseInfoKHR(address, null); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static VkWin32KeyedMutexAcquireReleaseInfoKHR createSafe(long address) { return address == NULL ? null : create(address); } /** * Returns a new {@link VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. * * @param capacity the buffer capacity */ public static VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer malloc(int capacity) { return create(__malloc(capacity, SIZEOF), capacity); } /** * Returns a new {@link VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. * * @param capacity the buffer capacity */ public static VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer calloc(int capacity) { return create(nmemCallocChecked(capacity, SIZEOF), capacity); } /** * Returns a new {@link VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer} instance allocated with {@link BufferUtils}. * * @param capacity the buffer capacity */ public static VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer create(int capacity) { return new Buffer(__create(capacity, SIZEOF)); } /** * Create a {@link VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer} instance at the specified memory. * * @param address the memory address * @param capacity the buffer capacity */ public static VkWin32KeyedMutexAcquireReleaseInfoKHR.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 VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer createSafe(long address, int capacity) { return address == NULL ? null : create(address, capacity); } // ----------------------------------- /** Returns a new {@link VkWin32KeyedMutexAcquireReleaseInfoKHR} instance allocated on the thread-local {@link MemoryStack}. */ public static VkWin32KeyedMutexAcquireReleaseInfoKHR mallocStack() { return mallocStack(stackGet()); } /** Returns a new {@link VkWin32KeyedMutexAcquireReleaseInfoKHR} instance allocated on the thread-local {@link MemoryStack} and initializes all its bits to zero. */ public static VkWin32KeyedMutexAcquireReleaseInfoKHR callocStack() { return callocStack(stackGet()); } /** * Returns a new {@link VkWin32KeyedMutexAcquireReleaseInfoKHR} instance allocated on the specified {@link MemoryStack}. * * @param stack the stack from which to allocate */ public static VkWin32KeyedMutexAcquireReleaseInfoKHR mallocStack(MemoryStack stack) { return create(stack.nmalloc(ALIGNOF, SIZEOF)); } /** * Returns a new {@link VkWin32KeyedMutexAcquireReleaseInfoKHR} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. * * @param stack the stack from which to allocate */ public static VkWin32KeyedMutexAcquireReleaseInfoKHR callocStack(MemoryStack stack) { return create(stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** * Returns a new {@link VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer} instance allocated on the thread-local {@link MemoryStack}. * * @param capacity the buffer capacity */ public static VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer mallocStack(int capacity) { return mallocStack(capacity, stackGet()); } /** * Returns a new {@link VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer} instance allocated on the thread-local {@link MemoryStack} and initializes all its bits to zero. * * @param capacity the buffer capacity */ public static VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer callocStack(int capacity) { return callocStack(capacity, stackGet()); } /** * Returns a new {@link VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer} instance allocated on the specified {@link MemoryStack}. * * @param stack the stack from which to allocate * @param capacity the buffer capacity */ public static VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer mallocStack(int capacity, MemoryStack stack) { return create(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); } /** * Returns a new {@link VkWin32KeyedMutexAcquireReleaseInfoKHR.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 VkWin32KeyedMutexAcquireReleaseInfoKHR.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 + VkWin32KeyedMutexAcquireReleaseInfoKHR.STYPE); } /** Unsafe version of {@link #pNext}. */ public static long npNext(long struct) { return memGetAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoKHR.PNEXT); } /** Unsafe version of {@link #acquireCount}. */ public static int nacquireCount(long struct) { return memGetInt(struct + VkWin32KeyedMutexAcquireReleaseInfoKHR.ACQUIRECOUNT); } /** Unsafe version of {@link #pAcquireSyncs() pAcquireSyncs}. */ @Nullable public static LongBuffer npAcquireSyncs(long struct) { return memLongBufferSafe(memGetAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoKHR.PACQUIRESYNCS), nacquireCount(struct)); } /** Unsafe version of {@link #pAcquireKeys() pAcquireKeys}. */ @Nullable public static LongBuffer npAcquireKeys(long struct) { return memLongBufferSafe(memGetAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoKHR.PACQUIREKEYS), nacquireCount(struct)); } /** Unsafe version of {@link #pAcquireTimeouts() pAcquireTimeouts}. */ @Nullable public static IntBuffer npAcquireTimeouts(long struct) { return memIntBufferSafe(memGetAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoKHR.PACQUIRETIMEOUTS), nacquireCount(struct)); } /** Unsafe version of {@link #releaseCount}. */ public static int nreleaseCount(long struct) { return memGetInt(struct + VkWin32KeyedMutexAcquireReleaseInfoKHR.RELEASECOUNT); } /** Unsafe version of {@link #pReleaseSyncs() pReleaseSyncs}. */ @Nullable public static LongBuffer npReleaseSyncs(long struct) { return memLongBufferSafe(memGetAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoKHR.PRELEASESYNCS), nreleaseCount(struct)); } /** Unsafe version of {@link #pReleaseKeys() pReleaseKeys}. */ @Nullable public static LongBuffer npReleaseKeys(long struct) { return memLongBufferSafe(memGetAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoKHR.PRELEASEKEYS), nreleaseCount(struct)); } /** Unsafe version of {@link #sType(int) sType}. */ public static void nsType(long struct, int value) { memPutInt(struct + VkWin32KeyedMutexAcquireReleaseInfoKHR.STYPE, value); } /** Unsafe version of {@link #pNext(long) pNext}. */ public static void npNext(long struct, long value) { memPutAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoKHR.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 + VkWin32KeyedMutexAcquireReleaseInfoKHR.ACQUIRECOUNT, value); } /** Unsafe version of {@link #pAcquireSyncs(LongBuffer) pAcquireSyncs}. */ public static void npAcquireSyncs(long struct, @Nullable LongBuffer value) { memPutAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoKHR.PACQUIRESYNCS, memAddressSafe(value)); } /** Unsafe version of {@link #pAcquireKeys(LongBuffer) pAcquireKeys}. */ public static void npAcquireKeys(long struct, @Nullable LongBuffer value) { memPutAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoKHR.PACQUIREKEYS, memAddressSafe(value)); } /** Unsafe version of {@link #pAcquireTimeouts(IntBuffer) pAcquireTimeouts}. */ public static void npAcquireTimeouts(long struct, @Nullable IntBuffer value) { memPutAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoKHR.PACQUIRETIMEOUTS, 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 + VkWin32KeyedMutexAcquireReleaseInfoKHR.RELEASECOUNT, value); } /** Unsafe version of {@link #pReleaseSyncs(LongBuffer) pReleaseSyncs}. */ public static void npReleaseSyncs(long struct, @Nullable LongBuffer value) { memPutAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoKHR.PRELEASESYNCS, memAddressSafe(value)); } /** Unsafe version of {@link #pReleaseKeys(LongBuffer) pReleaseKeys}. */ public static void npReleaseKeys(long struct, @Nullable LongBuffer value) { memPutAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoKHR.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 + VkWin32KeyedMutexAcquireReleaseInfoKHR.PACQUIRESYNCS)); check(memGetAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoKHR.PACQUIREKEYS)); check(memGetAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoKHR.PACQUIRETIMEOUTS)); } if (nreleaseCount(struct) != 0) { check(memGetAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoKHR.PRELEASESYNCS)); check(memGetAddress(struct + VkWin32KeyedMutexAcquireReleaseInfoKHR.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 VkWin32KeyedMutexAcquireReleaseInfoKHR} structs. */ public static class Buffer extends StructBuffer implements NativeResource { /** * Creates a new {@link VkWin32KeyedMutexAcquireReleaseInfoKHR.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 VkWin32KeyedMutexAcquireReleaseInfoKHR#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 VkWin32KeyedMutexAcquireReleaseInfoKHR newInstance(long address) { return new VkWin32KeyedMutexAcquireReleaseInfoKHR(address, container); } @Override public int sizeof() { return SIZEOF; } /** Returns the value of the {@code sType} field. */ @NativeType("VkStructureType") public int sType() { return VkWin32KeyedMutexAcquireReleaseInfoKHR.nsType(address()); } /** Returns the value of the {@code pNext} field. */ @NativeType("const void *") public long pNext() { return VkWin32KeyedMutexAcquireReleaseInfoKHR.npNext(address()); } /** Returns the value of the {@code acquireCount} field. */ @NativeType("uint32_t") public int acquireCount() { return VkWin32KeyedMutexAcquireReleaseInfoKHR.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 VkWin32KeyedMutexAcquireReleaseInfoKHR.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 VkWin32KeyedMutexAcquireReleaseInfoKHR.npAcquireKeys(address()); } /** Returns a {@link IntBuffer} view of the data pointed to by the {@code pAcquireTimeouts} field. */ @Nullable @NativeType("const uint32_t *") public IntBuffer pAcquireTimeouts() { return VkWin32KeyedMutexAcquireReleaseInfoKHR.npAcquireTimeouts(address()); } /** Returns the value of the {@code releaseCount} field. */ @NativeType("uint32_t") public int releaseCount() { return VkWin32KeyedMutexAcquireReleaseInfoKHR.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 VkWin32KeyedMutexAcquireReleaseInfoKHR.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 VkWin32KeyedMutexAcquireReleaseInfoKHR.npReleaseKeys(address()); } /** Sets the specified value to the {@code sType} field. */ public VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer sType(@NativeType("VkStructureType") int value) { VkWin32KeyedMutexAcquireReleaseInfoKHR.nsType(address(), value); return this; } /** Sets the specified value to the {@code pNext} field. */ public VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer pNext(@NativeType("const void *") long value) { VkWin32KeyedMutexAcquireReleaseInfoKHR.npNext(address(), value); return this; } /** Sets the specified value to the {@code acquireCount} field. */ public VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer acquireCount(@NativeType("uint32_t") int value) { VkWin32KeyedMutexAcquireReleaseInfoKHR.nacquireCount(address(), value); return this; } /** Sets the address of the specified {@link LongBuffer} to the {@code pAcquireSyncs} field. */ public VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer pAcquireSyncs(@Nullable @NativeType("const VkDeviceMemory *") LongBuffer value) { VkWin32KeyedMutexAcquireReleaseInfoKHR.npAcquireSyncs(address(), value); return this; } /** Sets the address of the specified {@link LongBuffer} to the {@code pAcquireKeys} field. */ public VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer pAcquireKeys(@Nullable @NativeType("const uint64_t *") LongBuffer value) { VkWin32KeyedMutexAcquireReleaseInfoKHR.npAcquireKeys(address(), value); return this; } /** Sets the address of the specified {@link IntBuffer} to the {@code pAcquireTimeouts} field. */ public VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer pAcquireTimeouts(@Nullable @NativeType("const uint32_t *") IntBuffer value) { VkWin32KeyedMutexAcquireReleaseInfoKHR.npAcquireTimeouts(address(), value); return this; } /** Sets the specified value to the {@code releaseCount} field. */ public VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer releaseCount(@NativeType("uint32_t") int value) { VkWin32KeyedMutexAcquireReleaseInfoKHR.nreleaseCount(address(), value); return this; } /** Sets the address of the specified {@link LongBuffer} to the {@code pReleaseSyncs} field. */ public VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer pReleaseSyncs(@Nullable @NativeType("const VkDeviceMemory *") LongBuffer value) { VkWin32KeyedMutexAcquireReleaseInfoKHR.npReleaseSyncs(address(), value); return this; } /** Sets the address of the specified {@link LongBuffer} to the {@code pReleaseKeys} field. */ public VkWin32KeyedMutexAcquireReleaseInfoKHR.Buffer pReleaseKeys(@Nullable @NativeType("const uint64_t *") LongBuffer value) { VkWin32KeyedMutexAcquireReleaseInfoKHR.npReleaseKeys(address(), value); return this; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy