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

org.lwjgl.vulkan.VkObjectTableCreateInfoNVX 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.*;

/**
 * Structure specifying the parameters of a newly created object table.
 * 
 * 
Valid Usage
* *
    *
  • If the {@link VkDeviceGeneratedCommandsFeaturesNVX}{@code ::computeBindingPointSupport} feature is not enabled, {@code pObjectEntryUsageFlags} must not contain {@link NVXDeviceGeneratedCommands#VK_OBJECT_ENTRY_USAGE_COMPUTE_BIT_NVX OBJECT_ENTRY_USAGE_COMPUTE_BIT_NVX}
  • *
  • Any value within {@code pObjectEntryCounts} must not exceed {@link VkDeviceGeneratedCommandsLimitsNVX}{@code ::maxObjectEntryCounts}
  • *
  • {@code maxUniformBuffersPerDescriptor} must be within the limits supported by the device.
  • *
  • {@code maxStorageBuffersPerDescriptor} must be within the limits supported by the device.
  • *
  • {@code maxStorageImagesPerDescriptor} must be within the limits supported by the device.
  • *
  • {@code maxSampledImagesPerDescriptor} must be within the limits supported by the device.
  • *
* *
Valid Usage (Implicit)
* *
    *
  • {@code sType} must be {@link NVXDeviceGeneratedCommands#VK_STRUCTURE_TYPE_OBJECT_TABLE_CREATE_INFO_NVX STRUCTURE_TYPE_OBJECT_TABLE_CREATE_INFO_NVX}
  • *
  • {@code pNext} must be {@code NULL}
  • *
  • {@code pObjectEntryTypes} must be a valid pointer to an array of {@code objectCount} valid {@code VkObjectEntryTypeNVX} values
  • *
  • {@code pObjectEntryCounts} must be a valid pointer to an array of {@code objectCount} {@code uint32_t} values
  • *
  • {@code pObjectEntryUsageFlags} must be a valid pointer to an array of {@code objectCount} valid combinations of {@code VkObjectEntryUsageFlagBitsNVX} values
  • *
  • Each element of {@code pObjectEntryUsageFlags} must not be 0
  • *
  • {@code objectCount} must be greater than 0
  • *
* *
See Also
* *

{@link NVXDeviceGeneratedCommands#vkCreateObjectTableNVX CreateObjectTableNVX}

* *

Member documentation

* *
    *
  • {@code sType} – the type of this structure.
  • *
  • {@code pNext} – {@code NULL} or a pointer to an extension-specific structure.
  • *
  • {@code objectCount} – the number of entry configurations that the object table supports.
  • *
  • {@code pObjectEntryTypes} – an array of {@code VkObjectEntryTypeNVX} values providing the entry type of a given configuration.
  • *
  • {@code pObjectEntryCounts} – an array of counts of how many objects can be registered in the table.
  • *
  • {@code pObjectEntryUsageFlags} – an array of bitmasks of {@code VkObjectEntryUsageFlagBitsNVX} specifying the binding usage of the entry.
  • *
  • {@code maxUniformBuffersPerDescriptor} – the maximum number of {@link VK10#VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER DESCRIPTOR_TYPE_UNIFORM_BUFFER} or {@link VK10#VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC} used by any single registered {@code VkDescriptorSet} in this table.
  • *
  • {@code maxStorageBuffersPerDescriptor} – the maximum number of {@link VK10#VK_DESCRIPTOR_TYPE_STORAGE_BUFFER DESCRIPTOR_TYPE_STORAGE_BUFFER} or {@link VK10#VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC} used by any single registered {@code VkDescriptorSet} in this table.
  • *
  • {@code maxStorageImagesPerDescriptor} – the maximum number of {@link VK10#VK_DESCRIPTOR_TYPE_STORAGE_IMAGE DESCRIPTOR_TYPE_STORAGE_IMAGE} or {@link VK10#VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER} used by any single registered {@code VkDescriptorSet} in this table.
  • *
  • {@code maxSampledImagesPerDescriptor} – the maximum number of {@link VK10#VK_DESCRIPTOR_TYPE_SAMPLER DESCRIPTOR_TYPE_SAMPLER}, {@link VK10#VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER}, {@link VK10#VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER} or {@link VK10#VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT DESCRIPTOR_TYPE_INPUT_ATTACHMENT} used by any single registered {@code VkDescriptorSet} in this table.
  • *
  • {@code maxPipelineLayouts} – the maximum number of unique {@code VkPipelineLayout} used by any registered {@code VkDescriptorSet} or {@code VkPipeline} in this table.
  • *
* *

Layout

* *
 * struct VkObjectTableCreateInfoNVX {
 *     VkStructureType sType;
 *     const void * pNext;
 *     uint32_t objectCount;
 *     const VkObjectEntryTypeNVX * pObjectEntryTypes;
 *     const uint32_t * pObjectEntryCounts;
 *     const VkObjectEntryUsageFlagsNVX * pObjectEntryUsageFlags;
 *     uint32_t maxUniformBuffersPerDescriptor;
 *     uint32_t maxStorageBuffersPerDescriptor;
 *     uint32_t maxStorageImagesPerDescriptor;
 *     uint32_t maxSampledImagesPerDescriptor;
 *     uint32_t maxPipelineLayouts;
 * }
*/ public class VkObjectTableCreateInfoNVX 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, OBJECTCOUNT, POBJECTENTRYTYPES, POBJECTENTRYCOUNTS, POBJECTENTRYUSAGEFLAGS, MAXUNIFORMBUFFERSPERDESCRIPTOR, MAXSTORAGEBUFFERSPERDESCRIPTOR, MAXSTORAGEIMAGESPERDESCRIPTOR, MAXSAMPLEDIMAGESPERDESCRIPTOR, MAXPIPELINELAYOUTS; static { Layout layout = __struct( __member(4), __member(POINTER_SIZE), __member(4), __member(POINTER_SIZE), __member(POINTER_SIZE), __member(POINTER_SIZE), __member(4), __member(4), __member(4), __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); STYPE = layout.offsetof(0); PNEXT = layout.offsetof(1); OBJECTCOUNT = layout.offsetof(2); POBJECTENTRYTYPES = layout.offsetof(3); POBJECTENTRYCOUNTS = layout.offsetof(4); POBJECTENTRYUSAGEFLAGS = layout.offsetof(5); MAXUNIFORMBUFFERSPERDESCRIPTOR = layout.offsetof(6); MAXSTORAGEBUFFERSPERDESCRIPTOR = layout.offsetof(7); MAXSTORAGEIMAGESPERDESCRIPTOR = layout.offsetof(8); MAXSAMPLEDIMAGESPERDESCRIPTOR = layout.offsetof(9); MAXPIPELINELAYOUTS = layout.offsetof(10); } VkObjectTableCreateInfoNVX(long address, @Nullable ByteBuffer container) { super(address, container); } /** * Creates a {@link VkObjectTableCreateInfoNVX} 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 VkObjectTableCreateInfoNVX(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 objectCount} field. */ @NativeType("uint32_t") public int objectCount() { return nobjectCount(address()); } /** Returns a {@link IntBuffer} view of the data pointed to by the {@code pObjectEntryTypes} field. */ @NativeType("const VkObjectEntryTypeNVX *") public IntBuffer pObjectEntryTypes() { return npObjectEntryTypes(address()); } /** Returns a {@link IntBuffer} view of the data pointed to by the {@code pObjectEntryCounts} field. */ @NativeType("const uint32_t *") public IntBuffer pObjectEntryCounts() { return npObjectEntryCounts(address()); } /** Returns a {@link IntBuffer} view of the data pointed to by the {@code pObjectEntryUsageFlags} field. */ @NativeType("const VkObjectEntryUsageFlagsNVX *") public IntBuffer pObjectEntryUsageFlags() { return npObjectEntryUsageFlags(address()); } /** Returns the value of the {@code maxUniformBuffersPerDescriptor} field. */ @NativeType("uint32_t") public int maxUniformBuffersPerDescriptor() { return nmaxUniformBuffersPerDescriptor(address()); } /** Returns the value of the {@code maxStorageBuffersPerDescriptor} field. */ @NativeType("uint32_t") public int maxStorageBuffersPerDescriptor() { return nmaxStorageBuffersPerDescriptor(address()); } /** Returns the value of the {@code maxStorageImagesPerDescriptor} field. */ @NativeType("uint32_t") public int maxStorageImagesPerDescriptor() { return nmaxStorageImagesPerDescriptor(address()); } /** Returns the value of the {@code maxSampledImagesPerDescriptor} field. */ @NativeType("uint32_t") public int maxSampledImagesPerDescriptor() { return nmaxSampledImagesPerDescriptor(address()); } /** Returns the value of the {@code maxPipelineLayouts} field. */ @NativeType("uint32_t") public int maxPipelineLayouts() { return nmaxPipelineLayouts(address()); } /** Sets the specified value to the {@code sType} field. */ public VkObjectTableCreateInfoNVX sType(@NativeType("VkStructureType") int value) { nsType(address(), value); return this; } /** Sets the specified value to the {@code pNext} field. */ public VkObjectTableCreateInfoNVX pNext(@NativeType("const void *") long value) { npNext(address(), value); return this; } /** Sets the specified value to the {@code objectCount} field. */ public VkObjectTableCreateInfoNVX objectCount(@NativeType("uint32_t") int value) { nobjectCount(address(), value); return this; } /** Sets the address of the specified {@link IntBuffer} to the {@code pObjectEntryTypes} field. */ public VkObjectTableCreateInfoNVX pObjectEntryTypes(@NativeType("const VkObjectEntryTypeNVX *") IntBuffer value) { npObjectEntryTypes(address(), value); return this; } /** Sets the address of the specified {@link IntBuffer} to the {@code pObjectEntryCounts} field. */ public VkObjectTableCreateInfoNVX pObjectEntryCounts(@NativeType("const uint32_t *") IntBuffer value) { npObjectEntryCounts(address(), value); return this; } /** Sets the address of the specified {@link IntBuffer} to the {@code pObjectEntryUsageFlags} field. */ public VkObjectTableCreateInfoNVX pObjectEntryUsageFlags(@NativeType("const VkObjectEntryUsageFlagsNVX *") IntBuffer value) { npObjectEntryUsageFlags(address(), value); return this; } /** Sets the specified value to the {@code maxUniformBuffersPerDescriptor} field. */ public VkObjectTableCreateInfoNVX maxUniformBuffersPerDescriptor(@NativeType("uint32_t") int value) { nmaxUniformBuffersPerDescriptor(address(), value); return this; } /** Sets the specified value to the {@code maxStorageBuffersPerDescriptor} field. */ public VkObjectTableCreateInfoNVX maxStorageBuffersPerDescriptor(@NativeType("uint32_t") int value) { nmaxStorageBuffersPerDescriptor(address(), value); return this; } /** Sets the specified value to the {@code maxStorageImagesPerDescriptor} field. */ public VkObjectTableCreateInfoNVX maxStorageImagesPerDescriptor(@NativeType("uint32_t") int value) { nmaxStorageImagesPerDescriptor(address(), value); return this; } /** Sets the specified value to the {@code maxSampledImagesPerDescriptor} field. */ public VkObjectTableCreateInfoNVX maxSampledImagesPerDescriptor(@NativeType("uint32_t") int value) { nmaxSampledImagesPerDescriptor(address(), value); return this; } /** Sets the specified value to the {@code maxPipelineLayouts} field. */ public VkObjectTableCreateInfoNVX maxPipelineLayouts(@NativeType("uint32_t") int value) { nmaxPipelineLayouts(address(), value); return this; } /** Initializes this struct with the specified values. */ public VkObjectTableCreateInfoNVX set( int sType, long pNext, int objectCount, IntBuffer pObjectEntryTypes, IntBuffer pObjectEntryCounts, IntBuffer pObjectEntryUsageFlags, int maxUniformBuffersPerDescriptor, int maxStorageBuffersPerDescriptor, int maxStorageImagesPerDescriptor, int maxSampledImagesPerDescriptor, int maxPipelineLayouts ) { sType(sType); pNext(pNext); objectCount(objectCount); pObjectEntryTypes(pObjectEntryTypes); pObjectEntryCounts(pObjectEntryCounts); pObjectEntryUsageFlags(pObjectEntryUsageFlags); maxUniformBuffersPerDescriptor(maxUniformBuffersPerDescriptor); maxStorageBuffersPerDescriptor(maxStorageBuffersPerDescriptor); maxStorageImagesPerDescriptor(maxStorageImagesPerDescriptor); maxSampledImagesPerDescriptor(maxSampledImagesPerDescriptor); maxPipelineLayouts(maxPipelineLayouts); return this; } /** * Copies the specified struct data to this struct. * * @param src the source struct * * @return this struct */ public VkObjectTableCreateInfoNVX set(VkObjectTableCreateInfoNVX src) { memCopy(src.address(), address(), SIZEOF); return this; } // ----------------------------------- /** Returns a new {@link VkObjectTableCreateInfoNVX} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static VkObjectTableCreateInfoNVX malloc() { return create(nmemAllocChecked(SIZEOF)); } /** Returns a new {@link VkObjectTableCreateInfoNVX} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static VkObjectTableCreateInfoNVX calloc() { return create(nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@link VkObjectTableCreateInfoNVX} instance allocated with {@link BufferUtils}. */ public static VkObjectTableCreateInfoNVX create() { return new VkObjectTableCreateInfoNVX(BufferUtils.createByteBuffer(SIZEOF)); } /** Returns a new {@link VkObjectTableCreateInfoNVX} instance for the specified memory address. */ public static VkObjectTableCreateInfoNVX create(long address) { return new VkObjectTableCreateInfoNVX(address, null); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static VkObjectTableCreateInfoNVX createSafe(long address) { return address == NULL ? null : create(address); } /** * Returns a new {@link VkObjectTableCreateInfoNVX.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. * * @param capacity the buffer capacity */ public static VkObjectTableCreateInfoNVX.Buffer malloc(int capacity) { return create(__malloc(capacity, SIZEOF), capacity); } /** * Returns a new {@link VkObjectTableCreateInfoNVX.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. * * @param capacity the buffer capacity */ public static VkObjectTableCreateInfoNVX.Buffer calloc(int capacity) { return create(nmemCallocChecked(capacity, SIZEOF), capacity); } /** * Returns a new {@link VkObjectTableCreateInfoNVX.Buffer} instance allocated with {@link BufferUtils}. * * @param capacity the buffer capacity */ public static VkObjectTableCreateInfoNVX.Buffer create(int capacity) { return new Buffer(__create(capacity, SIZEOF)); } /** * Create a {@link VkObjectTableCreateInfoNVX.Buffer} instance at the specified memory. * * @param address the memory address * @param capacity the buffer capacity */ public static VkObjectTableCreateInfoNVX.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 VkObjectTableCreateInfoNVX.Buffer createSafe(long address, int capacity) { return address == NULL ? null : create(address, capacity); } // ----------------------------------- /** Returns a new {@link VkObjectTableCreateInfoNVX} instance allocated on the thread-local {@link MemoryStack}. */ public static VkObjectTableCreateInfoNVX mallocStack() { return mallocStack(stackGet()); } /** Returns a new {@link VkObjectTableCreateInfoNVX} instance allocated on the thread-local {@link MemoryStack} and initializes all its bits to zero. */ public static VkObjectTableCreateInfoNVX callocStack() { return callocStack(stackGet()); } /** * Returns a new {@link VkObjectTableCreateInfoNVX} instance allocated on the specified {@link MemoryStack}. * * @param stack the stack from which to allocate */ public static VkObjectTableCreateInfoNVX mallocStack(MemoryStack stack) { return create(stack.nmalloc(ALIGNOF, SIZEOF)); } /** * Returns a new {@link VkObjectTableCreateInfoNVX} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. * * @param stack the stack from which to allocate */ public static VkObjectTableCreateInfoNVX callocStack(MemoryStack stack) { return create(stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** * Returns a new {@link VkObjectTableCreateInfoNVX.Buffer} instance allocated on the thread-local {@link MemoryStack}. * * @param capacity the buffer capacity */ public static VkObjectTableCreateInfoNVX.Buffer mallocStack(int capacity) { return mallocStack(capacity, stackGet()); } /** * Returns a new {@link VkObjectTableCreateInfoNVX.Buffer} instance allocated on the thread-local {@link MemoryStack} and initializes all its bits to zero. * * @param capacity the buffer capacity */ public static VkObjectTableCreateInfoNVX.Buffer callocStack(int capacity) { return callocStack(capacity, stackGet()); } /** * Returns a new {@link VkObjectTableCreateInfoNVX.Buffer} instance allocated on the specified {@link MemoryStack}. * * @param stack the stack from which to allocate * @param capacity the buffer capacity */ public static VkObjectTableCreateInfoNVX.Buffer mallocStack(int capacity, MemoryStack stack) { return create(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); } /** * Returns a new {@link VkObjectTableCreateInfoNVX.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 VkObjectTableCreateInfoNVX.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 + VkObjectTableCreateInfoNVX.STYPE); } /** Unsafe version of {@link #pNext}. */ public static long npNext(long struct) { return memGetAddress(struct + VkObjectTableCreateInfoNVX.PNEXT); } /** Unsafe version of {@link #objectCount}. */ public static int nobjectCount(long struct) { return memGetInt(struct + VkObjectTableCreateInfoNVX.OBJECTCOUNT); } /** Unsafe version of {@link #pObjectEntryTypes() pObjectEntryTypes}. */ public static IntBuffer npObjectEntryTypes(long struct) { return memIntBuffer(memGetAddress(struct + VkObjectTableCreateInfoNVX.POBJECTENTRYTYPES), nobjectCount(struct)); } /** Unsafe version of {@link #pObjectEntryCounts() pObjectEntryCounts}. */ public static IntBuffer npObjectEntryCounts(long struct) { return memIntBuffer(memGetAddress(struct + VkObjectTableCreateInfoNVX.POBJECTENTRYCOUNTS), nobjectCount(struct)); } /** Unsafe version of {@link #pObjectEntryUsageFlags() pObjectEntryUsageFlags}. */ public static IntBuffer npObjectEntryUsageFlags(long struct) { return memIntBuffer(memGetAddress(struct + VkObjectTableCreateInfoNVX.POBJECTENTRYUSAGEFLAGS), nobjectCount(struct)); } /** Unsafe version of {@link #maxUniformBuffersPerDescriptor}. */ public static int nmaxUniformBuffersPerDescriptor(long struct) { return memGetInt(struct + VkObjectTableCreateInfoNVX.MAXUNIFORMBUFFERSPERDESCRIPTOR); } /** Unsafe version of {@link #maxStorageBuffersPerDescriptor}. */ public static int nmaxStorageBuffersPerDescriptor(long struct) { return memGetInt(struct + VkObjectTableCreateInfoNVX.MAXSTORAGEBUFFERSPERDESCRIPTOR); } /** Unsafe version of {@link #maxStorageImagesPerDescriptor}. */ public static int nmaxStorageImagesPerDescriptor(long struct) { return memGetInt(struct + VkObjectTableCreateInfoNVX.MAXSTORAGEIMAGESPERDESCRIPTOR); } /** Unsafe version of {@link #maxSampledImagesPerDescriptor}. */ public static int nmaxSampledImagesPerDescriptor(long struct) { return memGetInt(struct + VkObjectTableCreateInfoNVX.MAXSAMPLEDIMAGESPERDESCRIPTOR); } /** Unsafe version of {@link #maxPipelineLayouts}. */ public static int nmaxPipelineLayouts(long struct) { return memGetInt(struct + VkObjectTableCreateInfoNVX.MAXPIPELINELAYOUTS); } /** Unsafe version of {@link #sType(int) sType}. */ public static void nsType(long struct, int value) { memPutInt(struct + VkObjectTableCreateInfoNVX.STYPE, value); } /** Unsafe version of {@link #pNext(long) pNext}. */ public static void npNext(long struct, long value) { memPutAddress(struct + VkObjectTableCreateInfoNVX.PNEXT, value); } /** Sets the specified value to the {@code objectCount} field of the specified {@code struct}. */ public static void nobjectCount(long struct, int value) { memPutInt(struct + VkObjectTableCreateInfoNVX.OBJECTCOUNT, value); } /** Unsafe version of {@link #pObjectEntryTypes(IntBuffer) pObjectEntryTypes}. */ public static void npObjectEntryTypes(long struct, IntBuffer value) { memPutAddress(struct + VkObjectTableCreateInfoNVX.POBJECTENTRYTYPES, memAddress(value)); } /** Unsafe version of {@link #pObjectEntryCounts(IntBuffer) pObjectEntryCounts}. */ public static void npObjectEntryCounts(long struct, IntBuffer value) { memPutAddress(struct + VkObjectTableCreateInfoNVX.POBJECTENTRYCOUNTS, memAddress(value)); } /** Unsafe version of {@link #pObjectEntryUsageFlags(IntBuffer) pObjectEntryUsageFlags}. */ public static void npObjectEntryUsageFlags(long struct, IntBuffer value) { memPutAddress(struct + VkObjectTableCreateInfoNVX.POBJECTENTRYUSAGEFLAGS, memAddress(value)); } /** Unsafe version of {@link #maxUniformBuffersPerDescriptor(int) maxUniformBuffersPerDescriptor}. */ public static void nmaxUniformBuffersPerDescriptor(long struct, int value) { memPutInt(struct + VkObjectTableCreateInfoNVX.MAXUNIFORMBUFFERSPERDESCRIPTOR, value); } /** Unsafe version of {@link #maxStorageBuffersPerDescriptor(int) maxStorageBuffersPerDescriptor}. */ public static void nmaxStorageBuffersPerDescriptor(long struct, int value) { memPutInt(struct + VkObjectTableCreateInfoNVX.MAXSTORAGEBUFFERSPERDESCRIPTOR, value); } /** Unsafe version of {@link #maxStorageImagesPerDescriptor(int) maxStorageImagesPerDescriptor}. */ public static void nmaxStorageImagesPerDescriptor(long struct, int value) { memPutInt(struct + VkObjectTableCreateInfoNVX.MAXSTORAGEIMAGESPERDESCRIPTOR, value); } /** Unsafe version of {@link #maxSampledImagesPerDescriptor(int) maxSampledImagesPerDescriptor}. */ public static void nmaxSampledImagesPerDescriptor(long struct, int value) { memPutInt(struct + VkObjectTableCreateInfoNVX.MAXSAMPLEDIMAGESPERDESCRIPTOR, value); } /** Unsafe version of {@link #maxPipelineLayouts(int) maxPipelineLayouts}. */ public static void nmaxPipelineLayouts(long struct, int value) { memPutInt(struct + VkObjectTableCreateInfoNVX.MAXPIPELINELAYOUTS, value); } /** * Validates pointer members that should not be {@code NULL}. * * @param struct the struct to validate */ public static void validate(long struct) { check(memGetAddress(struct + VkObjectTableCreateInfoNVX.POBJECTENTRYTYPES)); check(memGetAddress(struct + VkObjectTableCreateInfoNVX.POBJECTENTRYCOUNTS)); check(memGetAddress(struct + VkObjectTableCreateInfoNVX.POBJECTENTRYUSAGEFLAGS)); } /** * 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 VkObjectTableCreateInfoNVX} structs. */ public static class Buffer extends StructBuffer implements NativeResource { /** * Creates a new {@link VkObjectTableCreateInfoNVX.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 VkObjectTableCreateInfoNVX#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 VkObjectTableCreateInfoNVX newInstance(long address) { return new VkObjectTableCreateInfoNVX(address, container); } @Override public int sizeof() { return SIZEOF; } /** Returns the value of the {@code sType} field. */ @NativeType("VkStructureType") public int sType() { return VkObjectTableCreateInfoNVX.nsType(address()); } /** Returns the value of the {@code pNext} field. */ @NativeType("const void *") public long pNext() { return VkObjectTableCreateInfoNVX.npNext(address()); } /** Returns the value of the {@code objectCount} field. */ @NativeType("uint32_t") public int objectCount() { return VkObjectTableCreateInfoNVX.nobjectCount(address()); } /** Returns a {@link IntBuffer} view of the data pointed to by the {@code pObjectEntryTypes} field. */ @NativeType("const VkObjectEntryTypeNVX *") public IntBuffer pObjectEntryTypes() { return VkObjectTableCreateInfoNVX.npObjectEntryTypes(address()); } /** Returns a {@link IntBuffer} view of the data pointed to by the {@code pObjectEntryCounts} field. */ @NativeType("const uint32_t *") public IntBuffer pObjectEntryCounts() { return VkObjectTableCreateInfoNVX.npObjectEntryCounts(address()); } /** Returns a {@link IntBuffer} view of the data pointed to by the {@code pObjectEntryUsageFlags} field. */ @NativeType("const VkObjectEntryUsageFlagsNVX *") public IntBuffer pObjectEntryUsageFlags() { return VkObjectTableCreateInfoNVX.npObjectEntryUsageFlags(address()); } /** Returns the value of the {@code maxUniformBuffersPerDescriptor} field. */ @NativeType("uint32_t") public int maxUniformBuffersPerDescriptor() { return VkObjectTableCreateInfoNVX.nmaxUniformBuffersPerDescriptor(address()); } /** Returns the value of the {@code maxStorageBuffersPerDescriptor} field. */ @NativeType("uint32_t") public int maxStorageBuffersPerDescriptor() { return VkObjectTableCreateInfoNVX.nmaxStorageBuffersPerDescriptor(address()); } /** Returns the value of the {@code maxStorageImagesPerDescriptor} field. */ @NativeType("uint32_t") public int maxStorageImagesPerDescriptor() { return VkObjectTableCreateInfoNVX.nmaxStorageImagesPerDescriptor(address()); } /** Returns the value of the {@code maxSampledImagesPerDescriptor} field. */ @NativeType("uint32_t") public int maxSampledImagesPerDescriptor() { return VkObjectTableCreateInfoNVX.nmaxSampledImagesPerDescriptor(address()); } /** Returns the value of the {@code maxPipelineLayouts} field. */ @NativeType("uint32_t") public int maxPipelineLayouts() { return VkObjectTableCreateInfoNVX.nmaxPipelineLayouts(address()); } /** Sets the specified value to the {@code sType} field. */ public VkObjectTableCreateInfoNVX.Buffer sType(@NativeType("VkStructureType") int value) { VkObjectTableCreateInfoNVX.nsType(address(), value); return this; } /** Sets the specified value to the {@code pNext} field. */ public VkObjectTableCreateInfoNVX.Buffer pNext(@NativeType("const void *") long value) { VkObjectTableCreateInfoNVX.npNext(address(), value); return this; } /** Sets the specified value to the {@code objectCount} field. */ public VkObjectTableCreateInfoNVX.Buffer objectCount(@NativeType("uint32_t") int value) { VkObjectTableCreateInfoNVX.nobjectCount(address(), value); return this; } /** Sets the address of the specified {@link IntBuffer} to the {@code pObjectEntryTypes} field. */ public VkObjectTableCreateInfoNVX.Buffer pObjectEntryTypes(@NativeType("const VkObjectEntryTypeNVX *") IntBuffer value) { VkObjectTableCreateInfoNVX.npObjectEntryTypes(address(), value); return this; } /** Sets the address of the specified {@link IntBuffer} to the {@code pObjectEntryCounts} field. */ public VkObjectTableCreateInfoNVX.Buffer pObjectEntryCounts(@NativeType("const uint32_t *") IntBuffer value) { VkObjectTableCreateInfoNVX.npObjectEntryCounts(address(), value); return this; } /** Sets the address of the specified {@link IntBuffer} to the {@code pObjectEntryUsageFlags} field. */ public VkObjectTableCreateInfoNVX.Buffer pObjectEntryUsageFlags(@NativeType("const VkObjectEntryUsageFlagsNVX *") IntBuffer value) { VkObjectTableCreateInfoNVX.npObjectEntryUsageFlags(address(), value); return this; } /** Sets the specified value to the {@code maxUniformBuffersPerDescriptor} field. */ public VkObjectTableCreateInfoNVX.Buffer maxUniformBuffersPerDescriptor(@NativeType("uint32_t") int value) { VkObjectTableCreateInfoNVX.nmaxUniformBuffersPerDescriptor(address(), value); return this; } /** Sets the specified value to the {@code maxStorageBuffersPerDescriptor} field. */ public VkObjectTableCreateInfoNVX.Buffer maxStorageBuffersPerDescriptor(@NativeType("uint32_t") int value) { VkObjectTableCreateInfoNVX.nmaxStorageBuffersPerDescriptor(address(), value); return this; } /** Sets the specified value to the {@code maxStorageImagesPerDescriptor} field. */ public VkObjectTableCreateInfoNVX.Buffer maxStorageImagesPerDescriptor(@NativeType("uint32_t") int value) { VkObjectTableCreateInfoNVX.nmaxStorageImagesPerDescriptor(address(), value); return this; } /** Sets the specified value to the {@code maxSampledImagesPerDescriptor} field. */ public VkObjectTableCreateInfoNVX.Buffer maxSampledImagesPerDescriptor(@NativeType("uint32_t") int value) { VkObjectTableCreateInfoNVX.nmaxSampledImagesPerDescriptor(address(), value); return this; } /** Sets the specified value to the {@code maxPipelineLayouts} field. */ public VkObjectTableCreateInfoNVX.Buffer maxPipelineLayouts(@NativeType("uint32_t") int value) { VkObjectTableCreateInfoNVX.nmaxPipelineLayouts(address(), value); return this; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy