public class VkDeviceCreateInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
queueFamilyIndex member of each element of pQueueCreateInfos must be unique within pQueueCreateInfos, except that two members can share the same queueFamilyIndex if one is a protected-capable queue and one is not a protected-capable queue.pNext chain includes a VkPhysicalDeviceFeatures2 structure, then pEnabledFeatures must be NULLppEnabledExtensionNames must not contain VK_AMD_negative_viewport_heightppEnabledExtensionNames must not contain both VK_KHR_buffer_device_address and VK_EXT_buffer_device_addresssType must be STRUCTURE_TYPE_DEVICE_CREATE_INFOpNext member of any structure (including this one) in the pNext chain must be either NULL or a pointer to a valid instance of VkDeviceGroupDeviceCreateInfo, VkDeviceMemoryOverallocationCreateInfoAMD, VkPhysicalDevice16BitStorageFeatures, VkPhysicalDevice8BitStorageFeaturesKHR, VkPhysicalDeviceASTCDecodeFeaturesEXT, VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT, VkPhysicalDeviceBufferDeviceAddressFeaturesEXT, VkPhysicalDeviceBufferDeviceAddressFeaturesKHR, VkPhysicalDeviceCoherentMemoryFeaturesAMD, VkPhysicalDeviceComputeShaderDerivativesFeaturesNV, VkPhysicalDeviceConditionalRenderingFeaturesEXT, VkPhysicalDeviceCooperativeMatrixFeaturesNV, VkPhysicalDeviceCornerSampledImageFeaturesNV, VkPhysicalDeviceCoverageReductionModeFeaturesNV, VkPhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV, VkPhysicalDeviceDepthClipEnableFeaturesEXT, VkPhysicalDeviceDescriptorIndexingFeaturesEXT, VkPhysicalDeviceExclusiveScissorFeaturesNV, VkPhysicalDeviceFeatures2, VkPhysicalDeviceFragmentDensityMapFeaturesEXT, VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV, VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT, VkPhysicalDeviceHostQueryResetFeaturesEXT, VkPhysicalDeviceImagelessFramebufferFeaturesKHR, VkPhysicalDeviceIndexTypeUint8FeaturesEXT, VkPhysicalDeviceInlineUniformBlockFeaturesEXT, VkPhysicalDeviceLineRasterizationFeaturesEXT, VkPhysicalDeviceMemoryPriorityFeaturesEXT, VkPhysicalDeviceMeshShaderFeaturesNV, VkPhysicalDeviceMultiviewFeatures, VkPhysicalDevicePerformanceQueryFeaturesKHR, VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR, VkPhysicalDeviceProtectedMemoryFeatures, VkPhysicalDeviceRepresentativeFragmentTestFeaturesNV, VkPhysicalDeviceSamplerYcbcrConversionFeatures, VkPhysicalDeviceScalarBlockLayoutFeaturesEXT, VkPhysicalDeviceSeparateDepthStencilLayoutsFeaturesKHR, VkPhysicalDeviceShaderAtomicInt64FeaturesKHR, VkPhysicalDeviceShaderClockFeaturesKHR, VkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesEXT, VkPhysicalDeviceShaderDrawParametersFeatures, VkPhysicalDeviceShaderFloat16Int8FeaturesKHR, VkPhysicalDeviceShaderImageFootprintFeaturesNV, VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL, VkPhysicalDeviceShaderSMBuiltinsFeaturesNV, VkPhysicalDeviceShaderSubgroupExtendedTypesFeaturesKHR, VkPhysicalDeviceShadingRateImageFeaturesNV, VkPhysicalDeviceSubgroupSizeControlFeaturesEXT, VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT, VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT, VkPhysicalDeviceTimelineSemaphoreFeaturesKHR, VkPhysicalDeviceTransformFeedbackFeaturesEXT, VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR, VkPhysicalDeviceVariablePointersFeatures, VkPhysicalDeviceVertexAttributeDivisorFeaturesEXT, VkPhysicalDeviceVulkanMemoryModelFeaturesKHR, or VkPhysicalDeviceYcbcrImageArraysFeaturesEXTsType member in the pNext chain must be uniqueflags must be 0pQueueCreateInfos must be a valid pointer to an array of queueCreateInfoCount valid VkDeviceQueueCreateInfo structuresenabledLayerCount is not 0, ppEnabledLayerNames must be a valid pointer to an array of enabledLayerCount null-terminated UTF-8 stringsenabledExtensionCount is not 0, ppEnabledExtensionNames must be a valid pointer to an array of enabledExtensionCount null-terminated UTF-8 stringspEnabledFeatures is not NULL, pEnabledFeatures must be a valid pointer to a valid VkPhysicalDeviceFeatures structurequeueCreateInfoCount must be greater than 0VkDeviceQueueCreateInfo, VkPhysicalDeviceFeatures, CreateDevice
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.flags – reserved for future use.queueCreateInfoCount – the unsigned integer size of the pQueueCreateInfos array. Refer to the Queue Creation section below for further details.pQueueCreateInfos – a pointer to an array of 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.enabledLayerCount – deprecated and ignored.ppEnabledLayerNames – deprecated and ignored. See Device Layer Deprecation.enabledExtensionCount – the number of device extensions to enable.ppEnabledExtensionNames – a pointer to an array of enabledExtensionCount null-terminated UTF-8 strings containing the names of extensions to enable for the created device. See the Extensions section for further details.pEnabledFeatures – NULL or a pointer to a VkPhysicalDeviceFeatures structure containing boolean indicators of all the features to be enabled. Refer to the Features section for further details.
struct VkDeviceCreateInfo {
VkStructureType sType;
void const * pNext;
VkDeviceCreateFlags flags;
uint32_t queueCreateInfoCount;
VkDeviceQueueCreateInfo const * pQueueCreateInfos;
uint32_t enabledLayerCount;
char const * const * ppEnabledLayerNames;
uint32_t enabledExtensionCount;
char const * const * ppEnabledExtensionNames;
VkPhysicalDeviceFeatures const * pEnabledFeatures;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkDeviceCreateInfo.Buffer
An array of
VkDeviceCreateInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
ENABLEDEXTENSIONCOUNT
The struct member offsets.
|
static int |
ENABLEDLAYERCOUNT
The struct member offsets.
|
static int |
FLAGS
The struct member offsets.
|
static int |
PENABLEDFEATURES
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
PPENABLEDEXTENSIONNAMES
The struct member offsets.
|
static int |
PPENABLEDLAYERNAMES
The struct member offsets.
|
static int |
PQUEUECREATEINFOS
The struct member offsets.
|
static int |
QUEUECREATEINFOCOUNT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkDeviceCreateInfo(java.nio.ByteBuffer container)
Creates a
VkDeviceCreateInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkDeviceCreateInfo |
calloc()
Returns a new
VkDeviceCreateInfo instance allocated with memCalloc. |
static VkDeviceCreateInfo.Buffer |
calloc(int capacity)
Returns a new
VkDeviceCreateInfo.Buffer instance allocated with memCalloc. |
static VkDeviceCreateInfo |
callocStack()
Returns a new
VkDeviceCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDeviceCreateInfo.Buffer |
callocStack(int capacity)
Returns a new
VkDeviceCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDeviceCreateInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDeviceCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDeviceCreateInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDeviceCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDeviceCreateInfo |
create()
Returns a new
VkDeviceCreateInfo instance allocated with BufferUtils. |
static VkDeviceCreateInfo.Buffer |
create(int capacity)
Returns a new
VkDeviceCreateInfo.Buffer instance allocated with BufferUtils. |
static VkDeviceCreateInfo |
create(long address)
Returns a new
VkDeviceCreateInfo instance for the specified memory address. |
static VkDeviceCreateInfo.Buffer |
create(long address,
int capacity)
Create a
VkDeviceCreateInfo.Buffer instance at the specified memory. |
static VkDeviceCreateInfo |
createSafe(long address)
|
static VkDeviceCreateInfo.Buffer |
createSafe(long address,
int capacity)
|
int |
enabledExtensionCount()
Returns the value of the
enabledExtensionCount field. |
int |
enabledLayerCount()
Returns the value of the
enabledLayerCount field. |
int |
flags()
Returns the value of the
flags field. |
VkDeviceCreateInfo |
flags(int value)
Sets the specified value to the
flags field. |
static VkDeviceCreateInfo |
malloc()
Returns a new
VkDeviceCreateInfo instance allocated with memAlloc. |
static VkDeviceCreateInfo.Buffer |
malloc(int capacity)
Returns a new
VkDeviceCreateInfo.Buffer instance allocated with memAlloc. |
static VkDeviceCreateInfo |
mallocStack()
Returns a new
VkDeviceCreateInfo instance allocated on the thread-local MemoryStack. |
static VkDeviceCreateInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkDeviceCreateInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkDeviceCreateInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDeviceCreateInfo.Buffer instance allocated on the specified MemoryStack. |
static VkDeviceCreateInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDeviceCreateInfo instance allocated on the specified MemoryStack. |
static int |
nenabledExtensionCount(long struct)
Unsafe version of
enabledExtensionCount(). |
static void |
nenabledExtensionCount(long struct,
int value)
Sets the specified value to the
enabledExtensionCount field of the specified struct. |
static int |
nenabledLayerCount(long struct)
Unsafe version of
enabledLayerCount(). |
static void |
nenabledLayerCount(long struct,
int value)
Sets the specified value to the
enabledLayerCount field of the specified struct. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static VkPhysicalDeviceFeatures |
npEnabledFeatures(long struct)
Unsafe version of
pEnabledFeatures(). |
static void |
npEnabledFeatures(long struct,
VkPhysicalDeviceFeatures value)
Unsafe version of
pEnabledFeatures. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static org.lwjgl.PointerBuffer |
nppEnabledExtensionNames(long struct)
Unsafe version of
ppEnabledExtensionNames. |
static void |
nppEnabledExtensionNames(long struct,
org.lwjgl.PointerBuffer value)
Unsafe version of
ppEnabledExtensionNames. |
static org.lwjgl.PointerBuffer |
nppEnabledLayerNames(long struct)
Unsafe version of
ppEnabledLayerNames. |
static void |
nppEnabledLayerNames(long struct,
org.lwjgl.PointerBuffer value)
Unsafe version of
ppEnabledLayerNames. |
static VkDeviceQueueCreateInfo.Buffer |
npQueueCreateInfos(long struct)
Unsafe version of
pQueueCreateInfos(). |
static void |
npQueueCreateInfos(long struct,
VkDeviceQueueCreateInfo.Buffer value)
Unsafe version of
pQueueCreateInfos. |
static int |
nqueueCreateInfoCount(long struct)
Unsafe version of
queueCreateInfoCount(). |
static void |
nqueueCreateInfoCount(long struct,
int value)
Sets the specified value to the
queueCreateInfoCount field of the specified struct. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
VkPhysicalDeviceFeatures |
pEnabledFeatures()
Returns a
VkPhysicalDeviceFeatures view of the struct pointed to by the pEnabledFeatures field. |
VkDeviceCreateInfo |
pEnabledFeatures(VkPhysicalDeviceFeatures value)
Sets the address of the specified
VkPhysicalDeviceFeatures to the pEnabledFeatures field. |
long |
pNext()
Returns the value of the
pNext field. |
VkDeviceCreateInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
org.lwjgl.PointerBuffer |
ppEnabledExtensionNames()
Returns a
PointerBuffer view of the data pointed to by the ppEnabledExtensionNames field. |
VkDeviceCreateInfo |
ppEnabledExtensionNames(org.lwjgl.PointerBuffer value)
Sets the address of the specified
PointerBuffer to the ppEnabledExtensionNames field. |
org.lwjgl.PointerBuffer |
ppEnabledLayerNames()
Returns a
PointerBuffer view of the data pointed to by the ppEnabledLayerNames field. |
VkDeviceCreateInfo |
ppEnabledLayerNames(org.lwjgl.PointerBuffer value)
Sets the address of the specified
PointerBuffer to the ppEnabledLayerNames field. |
VkDeviceQueueCreateInfo.Buffer |
pQueueCreateInfos()
Returns a
VkDeviceQueueCreateInfo.Buffer view of the struct array pointed to by the pQueueCreateInfos field. |
VkDeviceCreateInfo |
pQueueCreateInfos(VkDeviceQueueCreateInfo.Buffer value)
Sets the address of the specified
VkDeviceQueueCreateInfo.Buffer to the pQueueCreateInfos field. |
int |
queueCreateInfoCount()
Returns the value of the
queueCreateInfoCount field. |
VkDeviceCreateInfo |
set(int sType,
long pNext,
int flags,
VkDeviceQueueCreateInfo.Buffer pQueueCreateInfos,
org.lwjgl.PointerBuffer ppEnabledLayerNames,
org.lwjgl.PointerBuffer ppEnabledExtensionNames,
VkPhysicalDeviceFeatures pEnabledFeatures)
Initializes this struct with the specified values.
|
VkDeviceCreateInfo |
set(VkDeviceCreateInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkDeviceCreateInfo |
sType(int value)
Sets the specified value to the
sType field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int FLAGS
public static final int QUEUECREATEINFOCOUNT
public static final int PQUEUECREATEINFOS
public static final int ENABLEDLAYERCOUNT
public static final int PPENABLEDLAYERNAMES
public static final int ENABLEDEXTENSIONCOUNT
public static final int PPENABLEDEXTENSIONNAMES
public static final int PENABLEDFEATURES
public VkDeviceCreateInfo(java.nio.ByteBuffer container)
VkDeviceCreateInfo instance at the current position of the specified 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 int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public int flags()
flags field.public int queueCreateInfoCount()
queueCreateInfoCount field.public VkDeviceQueueCreateInfo.Buffer pQueueCreateInfos()
VkDeviceQueueCreateInfo.Buffer view of the struct array pointed to by the pQueueCreateInfos field.public int enabledLayerCount()
enabledLayerCount field.@Nullable public org.lwjgl.PointerBuffer ppEnabledLayerNames()
PointerBuffer view of the data pointed to by the ppEnabledLayerNames field.public int enabledExtensionCount()
enabledExtensionCount field.@Nullable public org.lwjgl.PointerBuffer ppEnabledExtensionNames()
PointerBuffer view of the data pointed to by the ppEnabledExtensionNames field.@Nullable public VkPhysicalDeviceFeatures pEnabledFeatures()
VkPhysicalDeviceFeatures view of the struct pointed to by the pEnabledFeatures field.public VkDeviceCreateInfo sType(int value)
sType field.public VkDeviceCreateInfo pNext(long value)
pNext field.public VkDeviceCreateInfo flags(int value)
flags field.public VkDeviceCreateInfo pQueueCreateInfos(VkDeviceQueueCreateInfo.Buffer value)
VkDeviceQueueCreateInfo.Buffer to the pQueueCreateInfos field.public VkDeviceCreateInfo ppEnabledLayerNames(@Nullable org.lwjgl.PointerBuffer value)
PointerBuffer to the ppEnabledLayerNames field.public VkDeviceCreateInfo ppEnabledExtensionNames(@Nullable org.lwjgl.PointerBuffer value)
PointerBuffer to the ppEnabledExtensionNames field.public VkDeviceCreateInfo pEnabledFeatures(@Nullable VkPhysicalDeviceFeatures value)
VkPhysicalDeviceFeatures to the pEnabledFeatures field.public VkDeviceCreateInfo set(int sType, long pNext, int flags, VkDeviceQueueCreateInfo.Buffer pQueueCreateInfos, @Nullable org.lwjgl.PointerBuffer ppEnabledLayerNames, @Nullable org.lwjgl.PointerBuffer ppEnabledExtensionNames, @Nullable VkPhysicalDeviceFeatures pEnabledFeatures)
public VkDeviceCreateInfo set(VkDeviceCreateInfo src)
src - the source structpublic static VkDeviceCreateInfo malloc()
VkDeviceCreateInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkDeviceCreateInfo calloc()
VkDeviceCreateInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkDeviceCreateInfo create()
VkDeviceCreateInfo instance allocated with BufferUtils.public static VkDeviceCreateInfo create(long address)
VkDeviceCreateInfo instance for the specified memory address.@Nullable public static VkDeviceCreateInfo createSafe(long address)
public static VkDeviceCreateInfo.Buffer malloc(int capacity)
VkDeviceCreateInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDeviceCreateInfo.Buffer calloc(int capacity)
VkDeviceCreateInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDeviceCreateInfo.Buffer create(int capacity)
VkDeviceCreateInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkDeviceCreateInfo.Buffer create(long address, int capacity)
VkDeviceCreateInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkDeviceCreateInfo.Buffer createSafe(long address, int capacity)
public static VkDeviceCreateInfo mallocStack()
VkDeviceCreateInfo instance allocated on the thread-local MemoryStack.public static VkDeviceCreateInfo callocStack()
VkDeviceCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkDeviceCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkDeviceCreateInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkDeviceCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkDeviceCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkDeviceCreateInfo.Buffer mallocStack(int capacity)
VkDeviceCreateInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkDeviceCreateInfo.Buffer callocStack(int capacity)
VkDeviceCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkDeviceCreateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDeviceCreateInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkDeviceCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDeviceCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int nflags(long struct)
flags().public static int nqueueCreateInfoCount(long struct)
queueCreateInfoCount().public static VkDeviceQueueCreateInfo.Buffer npQueueCreateInfos(long struct)
pQueueCreateInfos().public static int nenabledLayerCount(long struct)
enabledLayerCount().@Nullable public static org.lwjgl.PointerBuffer nppEnabledLayerNames(long struct)
ppEnabledLayerNames.public static int nenabledExtensionCount(long struct)
enabledExtensionCount().@Nullable public static org.lwjgl.PointerBuffer nppEnabledExtensionNames(long struct)
ppEnabledExtensionNames.@Nullable public static VkPhysicalDeviceFeatures npEnabledFeatures(long struct)
pEnabledFeatures().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nflags(long struct,
int value)
flags.public static void nqueueCreateInfoCount(long struct,
int value)
queueCreateInfoCount field of the specified struct.public static void npQueueCreateInfos(long struct,
VkDeviceQueueCreateInfo.Buffer value)
pQueueCreateInfos.public static void nenabledLayerCount(long struct,
int value)
enabledLayerCount field of the specified struct.public static void nppEnabledLayerNames(long struct,
@Nullable
org.lwjgl.PointerBuffer value)
ppEnabledLayerNames.public static void nenabledExtensionCount(long struct,
int value)
enabledExtensionCount field of the specified struct.public static void nppEnabledExtensionNames(long struct,
@Nullable
org.lwjgl.PointerBuffer value)
ppEnabledExtensionNames.public static void npEnabledFeatures(long struct,
@Nullable
VkPhysicalDeviceFeatures value)
pEnabledFeatures.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.