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

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

/**
 * Structure specifying parameters of a newly created device.
 * 
 * 
Valid Usage
* *
    *
  • The {@code queueFamilyIndex} member of any given element of {@code pQueueCreateInfos} must be unique within {@code pQueueCreateInfos}
  • *
  • If the {@code pNext} chain includes a {@link VkPhysicalDeviceFeatures2KHR} structure, then {@code pEnabledFeatures} must be {@code NULL}
  • *
  • {@code ppEnabledExtensionNames} must not contain both {@link #KHR_maintenance1} and {@link #AMD_negative_viewport_height}
  • *
* *
Valid Usage (Implicit)
* *
    *
  • {@code sType} must be {@link VK10#VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO STRUCTURE_TYPE_DEVICE_CREATE_INFO}
  • *
  • Each {@code pNext} member of any structure (including this one) in the {@code pNext} chain must be either {@code NULL} or a pointer to a valid instance of {@link VkDeviceGroupDeviceCreateInfoKHX}, {@link VkPhysicalDevice16BitStorageFeaturesKHR}, {@link VkPhysicalDeviceFeatures2KHR}, {@link VkPhysicalDeviceMultiviewFeaturesKHX}, {@link VkPhysicalDeviceSamplerYcbcrConversionFeaturesKHR}, or {@link VkPhysicalDeviceVariablePointerFeaturesKHR}
  • *
  • Each {@code sType} member in the {@code pNext} chain must be unique
  • *
  • {@code flags} must be 0
  • *
  • {@code pQueueCreateInfos} must be a pointer to an array of {@code queueCreateInfoCount} valid {@link VkDeviceQueueCreateInfo} structures
  • *
  • If {@code enabledLayerCount} is not 0, {@code ppEnabledLayerNames} must be a pointer to an array of {@code enabledLayerCount} null-terminated UTF-8 strings
  • *
  • If {@code enabledExtensionCount} is not 0, {@code ppEnabledExtensionNames} must be a pointer to an array of {@code enabledExtensionCount} null-terminated UTF-8 strings
  • *
  • If {@code pEnabledFeatures} is not {@code NULL}, {@code pEnabledFeatures} must be a pointer to a valid {@link VkPhysicalDeviceFeatures} structure
  • *
  • {@code queueCreateInfoCount} must be greater than 0
  • *
* *
See Also
* *

{@link VkDeviceQueueCreateInfo}, {@link VkPhysicalDeviceFeatures}, {@link VK10#vkCreateDevice CreateDevice}

* *

Member documentation

* *
    *
  • {@code sType} – the type of this structure.
  • *
  • {@code pNext} – {@code NULL} or a pointer to an extension-specific structure.
  • *
  • {@code flags} – reserved for future use.
  • *
  • {@code queueCreateInfoCount} – the unsigned integer size of the {@code pQueueCreateInfos} array. Refer to the Queue Creation section below for further details.
  • *
  • {@code pQueueCreateInfos} – a pointer to an array of {@link VkDeviceQueueCreateInfo} structures describing the queues that are requested to be created along with the logical device. Refer to the Queue Creation section below for further details.
  • *
  • {@code enabledLayerCount} – deprecated and ignored.
  • *
  • {@code ppEnabledLayerNames} – deprecated and ignored. See Device Layer Deprecation.
  • *
  • {@code enabledExtensionCount} – the number of device extensions to enable.
  • *
  • {@code ppEnabledExtensionNames} – a pointer to an array of {@code enabledExtensionCount} null-terminated UTF-8 strings containing the names of extensions to enable for the created device. See the Extensions section for further details.
  • *
  • {@code pEnabledFeatures} – {@code NULL} or a pointer to a {@link VkPhysicalDeviceFeatures} structure that contains boolean indicators of all the features to be enabled. Refer to the Features section for further details.
  • *
* *

Layout

* *
 * struct VkDeviceCreateInfo {
 *     VkStructureType sType;
 *     const void * pNext;
 *     VkDeviceCreateFlags flags;
 *     uint32_t queueCreateInfoCount;
 *     const {@link VkDeviceQueueCreateInfo VkDeviceQueueCreateInfo} * pQueueCreateInfos;
 *     uint32_t enabledLayerCount;
 *     const char * const * ppEnabledLayerNames;
 *     uint32_t enabledExtensionCount;
 *     const char * const * ppEnabledExtensionNames;
 *     const {@link VkPhysicalDeviceFeatures VkPhysicalDeviceFeatures} * pEnabledFeatures;
 * }
*/ public class VkDeviceCreateInfo 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, FLAGS, QUEUECREATEINFOCOUNT, PQUEUECREATEINFOS, ENABLEDLAYERCOUNT, PPENABLEDLAYERNAMES, ENABLEDEXTENSIONCOUNT, PPENABLEDEXTENSIONNAMES, PENABLEDFEATURES; static { Layout layout = __struct( __member(4), __member(POINTER_SIZE), __member(4), __member(4), __member(POINTER_SIZE), __member(4), __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); FLAGS = layout.offsetof(2); QUEUECREATEINFOCOUNT = layout.offsetof(3); PQUEUECREATEINFOS = layout.offsetof(4); ENABLEDLAYERCOUNT = layout.offsetof(5); PPENABLEDLAYERNAMES = layout.offsetof(6); ENABLEDEXTENSIONCOUNT = layout.offsetof(7); PPENABLEDEXTENSIONNAMES = layout.offsetof(8); PENABLEDFEATURES = layout.offsetof(9); } VkDeviceCreateInfo(long address, ByteBuffer container) { super(address, container); } /** * Creates a {@link VkDeviceCreateInfo} 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 VkDeviceCreateInfo(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 flags} field. */ @NativeType("VkDeviceCreateFlags") public int flags() { return nflags(address()); } /** Returns the value of the {@code queueCreateInfoCount} field. */ @NativeType("uint32_t") public int queueCreateInfoCount() { return nqueueCreateInfoCount(address()); } /** Returns a {@link VkDeviceQueueCreateInfo.Buffer} view of the struct array pointed to by the {@code pQueueCreateInfos} field. */ @NativeType("const VkDeviceQueueCreateInfo *") public VkDeviceQueueCreateInfo.Buffer pQueueCreateInfos() { return npQueueCreateInfos(address()); } /** Returns the value of the {@code enabledLayerCount} field. */ @NativeType("uint32_t") public int enabledLayerCount() { return nenabledLayerCount(address()); } /** Returns a {@link PointerBuffer} view of the data pointed to by the {@code ppEnabledLayerNames} field. */ @NativeType("const char * const *") public PointerBuffer ppEnabledLayerNames() { return nppEnabledLayerNames(address()); } /** Returns the value of the {@code enabledExtensionCount} field. */ @NativeType("uint32_t") public int enabledExtensionCount() { return nenabledExtensionCount(address()); } /** Returns a {@link PointerBuffer} view of the data pointed to by the {@code ppEnabledExtensionNames} field. */ @NativeType("const char * const *") public PointerBuffer ppEnabledExtensionNames() { return nppEnabledExtensionNames(address()); } /** Returns a {@link VkPhysicalDeviceFeatures} view of the struct pointed to by the {@code pEnabledFeatures} field. */ @NativeType("const VkPhysicalDeviceFeatures *") public VkPhysicalDeviceFeatures pEnabledFeatures() { return npEnabledFeatures(address()); } /** Sets the specified value to the {@code sType} field. */ public VkDeviceCreateInfo sType(@NativeType("VkStructureType") int value) { nsType(address(), value); return this; } /** Sets the specified value to the {@code pNext} field. */ public VkDeviceCreateInfo pNext(@NativeType("const void *") long value) { npNext(address(), value); return this; } /** Sets the specified value to the {@code flags} field. */ public VkDeviceCreateInfo flags(@NativeType("VkDeviceCreateFlags") int value) { nflags(address(), value); return this; } /** Sets the address of the specified {@link VkDeviceQueueCreateInfo.Buffer} to the {@code pQueueCreateInfos} field. */ public VkDeviceCreateInfo pQueueCreateInfos(@NativeType("const VkDeviceQueueCreateInfo *") VkDeviceQueueCreateInfo.Buffer value) { npQueueCreateInfos(address(), value); return this; } /** Sets the address of the specified {@link PointerBuffer} to the {@code ppEnabledLayerNames} field. */ public VkDeviceCreateInfo ppEnabledLayerNames(@NativeType("const char * const *") PointerBuffer value) { nppEnabledLayerNames(address(), value); return this; } /** Sets the address of the specified {@link PointerBuffer} to the {@code ppEnabledExtensionNames} field. */ public VkDeviceCreateInfo ppEnabledExtensionNames(@NativeType("const char * const *") PointerBuffer value) { nppEnabledExtensionNames(address(), value); return this; } /** Sets the address of the specified {@link VkPhysicalDeviceFeatures} to the {@code pEnabledFeatures} field. */ public VkDeviceCreateInfo pEnabledFeatures(@NativeType("const VkPhysicalDeviceFeatures *") VkPhysicalDeviceFeatures value) { npEnabledFeatures(address(), value); return this; } /** Initializes this struct with the specified values. */ public VkDeviceCreateInfo set( int sType, long pNext, int flags, VkDeviceQueueCreateInfo.Buffer pQueueCreateInfos, PointerBuffer ppEnabledLayerNames, PointerBuffer ppEnabledExtensionNames, VkPhysicalDeviceFeatures pEnabledFeatures ) { sType(sType); pNext(pNext); flags(flags); pQueueCreateInfos(pQueueCreateInfos); ppEnabledLayerNames(ppEnabledLayerNames); ppEnabledExtensionNames(ppEnabledExtensionNames); pEnabledFeatures(pEnabledFeatures); return this; } /** * Copies the specified struct data to this struct. * * @param src the source struct * * @return this struct */ public VkDeviceCreateInfo set(VkDeviceCreateInfo src) { memCopy(src.address(), address(), SIZEOF); return this; } // ----------------------------------- /** Returns a new {@link VkDeviceCreateInfo} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static VkDeviceCreateInfo malloc() { return create(nmemAlloc(SIZEOF)); } /** Returns a new {@link VkDeviceCreateInfo} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static VkDeviceCreateInfo calloc() { return create(nmemCalloc(1, SIZEOF)); } /** Returns a new {@link VkDeviceCreateInfo} instance allocated with {@link BufferUtils}. */ public static VkDeviceCreateInfo create() { return new VkDeviceCreateInfo(BufferUtils.createByteBuffer(SIZEOF)); } /** Returns a new {@link VkDeviceCreateInfo} instance for the specified memory address or {@code null} if the address is {@code NULL}. */ public static VkDeviceCreateInfo create(long address) { return address == NULL ? null : new VkDeviceCreateInfo(address, null); } /** * Returns a new {@link VkDeviceCreateInfo.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 VkDeviceCreateInfo.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 VkDeviceCreateInfo.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 VkDeviceCreateInfo.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 VkDeviceCreateInfo} instance allocated on the thread-local {@link MemoryStack}. */ public static VkDeviceCreateInfo mallocStack() { return mallocStack(stackGet()); } /** Returns a new {@link VkDeviceCreateInfo} instance allocated on the thread-local {@link MemoryStack} and initializes all its bits to zero. */ public static VkDeviceCreateInfo callocStack() { return callocStack(stackGet()); } /** * Returns a new {@link VkDeviceCreateInfo} instance allocated on the specified {@link MemoryStack}. * * @param stack the stack from which to allocate */ public static VkDeviceCreateInfo mallocStack(MemoryStack stack) { return create(stack.nmalloc(ALIGNOF, SIZEOF)); } /** * Returns a new {@link VkDeviceCreateInfo} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. * * @param stack the stack from which to allocate */ public static VkDeviceCreateInfo callocStack(MemoryStack stack) { return create(stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** * Returns a new {@link VkDeviceCreateInfo.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 VkDeviceCreateInfo.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 VkDeviceCreateInfo.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 VkDeviceCreateInfo.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 + VkDeviceCreateInfo.STYPE); } /** Unsafe version of {@link #pNext}. */ public static long npNext(long struct) { return memGetAddress(struct + VkDeviceCreateInfo.PNEXT); } /** Unsafe version of {@link #flags}. */ public static int nflags(long struct) { return memGetInt(struct + VkDeviceCreateInfo.FLAGS); } /** Unsafe version of {@link #queueCreateInfoCount}. */ public static int nqueueCreateInfoCount(long struct) { return memGetInt(struct + VkDeviceCreateInfo.QUEUECREATEINFOCOUNT); } /** Unsafe version of {@link #pQueueCreateInfos}. */ public static VkDeviceQueueCreateInfo.Buffer npQueueCreateInfos(long struct) { return VkDeviceQueueCreateInfo.create(memGetAddress(struct + VkDeviceCreateInfo.PQUEUECREATEINFOS), nqueueCreateInfoCount(struct)); } /** Unsafe version of {@link #enabledLayerCount}. */ public static int nenabledLayerCount(long struct) { return memGetInt(struct + VkDeviceCreateInfo.ENABLEDLAYERCOUNT); } /** Unsafe version of {@link #ppEnabledLayerNames() ppEnabledLayerNames}. */ public static PointerBuffer nppEnabledLayerNames(long struct) { return memPointerBuffer(memGetAddress(struct + VkDeviceCreateInfo.PPENABLEDLAYERNAMES), nenabledLayerCount(struct)); } /** Unsafe version of {@link #enabledExtensionCount}. */ public static int nenabledExtensionCount(long struct) { return memGetInt(struct + VkDeviceCreateInfo.ENABLEDEXTENSIONCOUNT); } /** Unsafe version of {@link #ppEnabledExtensionNames() ppEnabledExtensionNames}. */ public static PointerBuffer nppEnabledExtensionNames(long struct) { return memPointerBuffer(memGetAddress(struct + VkDeviceCreateInfo.PPENABLEDEXTENSIONNAMES), nenabledExtensionCount(struct)); } /** Unsafe version of {@link #pEnabledFeatures}. */ public static VkPhysicalDeviceFeatures npEnabledFeatures(long struct) { return VkPhysicalDeviceFeatures.create(memGetAddress(struct + VkDeviceCreateInfo.PENABLEDFEATURES)); } /** Unsafe version of {@link #sType(int) sType}. */ public static void nsType(long struct, int value) { memPutInt(struct + VkDeviceCreateInfo.STYPE, value); } /** Unsafe version of {@link #pNext(long) pNext}. */ public static void npNext(long struct, long value) { memPutAddress(struct + VkDeviceCreateInfo.PNEXT, value); } /** Unsafe version of {@link #flags(int) flags}. */ public static void nflags(long struct, int value) { memPutInt(struct + VkDeviceCreateInfo.FLAGS, value); } /** Sets the specified value to the {@code queueCreateInfoCount} field of the specified {@code struct}. */ public static void nqueueCreateInfoCount(long struct, int value) { memPutInt(struct + VkDeviceCreateInfo.QUEUECREATEINFOCOUNT, value); } /** Unsafe version of {@link #pQueueCreateInfos(VkDeviceQueueCreateInfo.Buffer) pQueueCreateInfos}. */ public static void npQueueCreateInfos(long struct, VkDeviceQueueCreateInfo.Buffer value) { memPutAddress(struct + VkDeviceCreateInfo.PQUEUECREATEINFOS, value.address()); nqueueCreateInfoCount(struct, value.remaining()); } /** Sets the specified value to the {@code enabledLayerCount} field of the specified {@code struct}. */ public static void nenabledLayerCount(long struct, int value) { memPutInt(struct + VkDeviceCreateInfo.ENABLEDLAYERCOUNT, value); } /** Unsafe version of {@link #ppEnabledLayerNames(PointerBuffer) ppEnabledLayerNames}. */ public static void nppEnabledLayerNames(long struct, PointerBuffer value) { memPutAddress(struct + VkDeviceCreateInfo.PPENABLEDLAYERNAMES, memAddressSafe(value)); nenabledLayerCount(struct, value == null ? 0 : value.remaining()); } /** Sets the specified value to the {@code enabledExtensionCount} field of the specified {@code struct}. */ public static void nenabledExtensionCount(long struct, int value) { memPutInt(struct + VkDeviceCreateInfo.ENABLEDEXTENSIONCOUNT, value); } /** Unsafe version of {@link #ppEnabledExtensionNames(PointerBuffer) ppEnabledExtensionNames}. */ public static void nppEnabledExtensionNames(long struct, PointerBuffer value) { memPutAddress(struct + VkDeviceCreateInfo.PPENABLEDEXTENSIONNAMES, memAddressSafe(value)); nenabledExtensionCount(struct, value == null ? 0 : value.remaining()); } /** Unsafe version of {@link #pEnabledFeatures(VkPhysicalDeviceFeatures) pEnabledFeatures}. */ public static void npEnabledFeatures(long struct, VkPhysicalDeviceFeatures value) { memPutAddress(struct + VkDeviceCreateInfo.PENABLEDFEATURES, memAddressSafe(value)); } /** * Validates pointer members that should not be {@code NULL}. * * @param struct the struct to validate */ public static void validate(long struct) { int queueCreateInfoCount = nqueueCreateInfoCount(struct); long pQueueCreateInfos = memGetAddress(struct + VkDeviceCreateInfo.PQUEUECREATEINFOS); check(pQueueCreateInfos); VkDeviceQueueCreateInfo.validate(pQueueCreateInfos, queueCreateInfoCount); if (nenabledLayerCount(struct) != 0) { check(memGetAddress(struct + VkDeviceCreateInfo.PPENABLEDLAYERNAMES)); } if (nenabledExtensionCount(struct) != 0) { check(memGetAddress(struct + VkDeviceCreateInfo.PPENABLEDEXTENSIONNAMES)); } } /** * 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 VkDeviceCreateInfo} structs. */ public static class Buffer extends StructBuffer implements NativeResource { /** * Creates a new {@link VkDeviceCreateInfo.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 VkDeviceCreateInfo#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 VkDeviceCreateInfo newInstance(long address) { return new VkDeviceCreateInfo(address, container); } @Override public int sizeof() { return SIZEOF; } /** Returns the value of the {@code sType} field. */ @NativeType("VkStructureType") public int sType() { return VkDeviceCreateInfo.nsType(address()); } /** Returns the value of the {@code pNext} field. */ @NativeType("const void *") public long pNext() { return VkDeviceCreateInfo.npNext(address()); } /** Returns the value of the {@code flags} field. */ @NativeType("VkDeviceCreateFlags") public int flags() { return VkDeviceCreateInfo.nflags(address()); } /** Returns the value of the {@code queueCreateInfoCount} field. */ @NativeType("uint32_t") public int queueCreateInfoCount() { return VkDeviceCreateInfo.nqueueCreateInfoCount(address()); } /** Returns a {@link VkDeviceQueueCreateInfo.Buffer} view of the struct array pointed to by the {@code pQueueCreateInfos} field. */ @NativeType("const VkDeviceQueueCreateInfo *") public VkDeviceQueueCreateInfo.Buffer pQueueCreateInfos() { return VkDeviceCreateInfo.npQueueCreateInfos(address()); } /** Returns the value of the {@code enabledLayerCount} field. */ @NativeType("uint32_t") public int enabledLayerCount() { return VkDeviceCreateInfo.nenabledLayerCount(address()); } /** Returns a {@link PointerBuffer} view of the data pointed to by the {@code ppEnabledLayerNames} field. */ @NativeType("const char * const *") public PointerBuffer ppEnabledLayerNames() { return VkDeviceCreateInfo.nppEnabledLayerNames(address()); } /** Returns the value of the {@code enabledExtensionCount} field. */ @NativeType("uint32_t") public int enabledExtensionCount() { return VkDeviceCreateInfo.nenabledExtensionCount(address()); } /** Returns a {@link PointerBuffer} view of the data pointed to by the {@code ppEnabledExtensionNames} field. */ @NativeType("const char * const *") public PointerBuffer ppEnabledExtensionNames() { return VkDeviceCreateInfo.nppEnabledExtensionNames(address()); } /** Returns a {@link VkPhysicalDeviceFeatures} view of the struct pointed to by the {@code pEnabledFeatures} field. */ @NativeType("const VkPhysicalDeviceFeatures *") public VkPhysicalDeviceFeatures pEnabledFeatures() { return VkDeviceCreateInfo.npEnabledFeatures(address()); } /** Sets the specified value to the {@code sType} field. */ public VkDeviceCreateInfo.Buffer sType(@NativeType("VkStructureType") int value) { VkDeviceCreateInfo.nsType(address(), value); return this; } /** Sets the specified value to the {@code pNext} field. */ public VkDeviceCreateInfo.Buffer pNext(@NativeType("const void *") long value) { VkDeviceCreateInfo.npNext(address(), value); return this; } /** Sets the specified value to the {@code flags} field. */ public VkDeviceCreateInfo.Buffer flags(@NativeType("VkDeviceCreateFlags") int value) { VkDeviceCreateInfo.nflags(address(), value); return this; } /** Sets the address of the specified {@link VkDeviceQueueCreateInfo.Buffer} to the {@code pQueueCreateInfos} field. */ public VkDeviceCreateInfo.Buffer pQueueCreateInfos(@NativeType("const VkDeviceQueueCreateInfo *") VkDeviceQueueCreateInfo.Buffer value) { VkDeviceCreateInfo.npQueueCreateInfos(address(), value); return this; } /** Sets the address of the specified {@link PointerBuffer} to the {@code ppEnabledLayerNames} field. */ public VkDeviceCreateInfo.Buffer ppEnabledLayerNames(@NativeType("const char * const *") PointerBuffer value) { VkDeviceCreateInfo.nppEnabledLayerNames(address(), value); return this; } /** Sets the address of the specified {@link PointerBuffer} to the {@code ppEnabledExtensionNames} field. */ public VkDeviceCreateInfo.Buffer ppEnabledExtensionNames(@NativeType("const char * const *") PointerBuffer value) { VkDeviceCreateInfo.nppEnabledExtensionNames(address(), value); return this; } /** Sets the address of the specified {@link VkPhysicalDeviceFeatures} to the {@code pEnabledFeatures} field. */ public VkDeviceCreateInfo.Buffer pEnabledFeatures(@NativeType("const VkPhysicalDeviceFeatures *") VkPhysicalDeviceFeatures value) { VkDeviceCreateInfo.npEnabledFeatures(address(), value); return this; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy