2016-07-11 01:13:41 +00:00
|
|
|
// Copyright (c) 2014-2016 Khronos Group. This work is licensed under a
|
|
|
|
// Creative Commons Attribution 4.0 International License; see
|
|
|
|
// http://creativecommons.org/licenses/by/4.0/
|
|
|
|
|
2016-02-16 09:53:44 +00:00
|
|
|
vkCreateDevice(3)
|
2016-07-11 01:13:41 +00:00
|
|
|
=================
|
2016-02-16 09:53:44 +00:00
|
|
|
|
|
|
|
Name
|
|
|
|
----
|
|
|
|
vkCreateDevice - Create a new device instance.
|
|
|
|
|
|
|
|
C Specification
|
|
|
|
---------------
|
|
|
|
|
2016-07-11 01:13:41 +00:00
|
|
|
// refBegin vkCreateDevice Create a new device instance.
|
|
|
|
|
|
|
|
A logical device is created as a _connection_ to a physical device. To
|
|
|
|
create a logical device, call:
|
|
|
|
|
2016-02-16 09:53:44 +00:00
|
|
|
include::../protos/vkCreateDevice.txt[]
|
|
|
|
|
2016-07-11 01:13:41 +00:00
|
|
|
|
2016-02-16 09:53:44 +00:00
|
|
|
Parameters
|
|
|
|
----------
|
|
|
|
|
2016-07-11 01:13:41 +00:00
|
|
|
* pname:physicalDevice must: be one of the device handles returned from a
|
|
|
|
call to fname:vkEnumeratePhysicalDevices (see
|
|
|
|
<<devsandqueues-physical-device-enumeration, Physical Device
|
|
|
|
Enumeration>>).
|
|
|
|
* pname:pCreateInfo is a pointer to a slink:VkDeviceCreateInfo structure
|
|
|
|
containing information about how to create the device.
|
|
|
|
* pname:pAllocator controls host memory allocation as described in the
|
|
|
|
<<memory-allocation, Memory Allocation>> chapter.
|
|
|
|
* pname:pDevice points to a handle in which the created sname:VkDevice is
|
|
|
|
returned.
|
2016-02-16 09:53:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
Description
|
|
|
|
-----------
|
|
|
|
|
2016-07-11 01:13:41 +00:00
|
|
|
Multiple logical devices can: be created from the same physical device.
|
|
|
|
Logical device creation may: fail due to lack of device-specific resources
|
|
|
|
(in addition to the other errors). If that occurs, fname:vkCreateDevice will
|
|
|
|
return ename:VK_ERROR_TOO_MANY_OBJECTS.
|
2016-02-16 09:53:44 +00:00
|
|
|
|
|
|
|
include::../validity/protos/vkCreateDevice.txt[]
|
|
|
|
|
2016-06-17 22:39:39 +00:00
|
|
|
|
2016-02-16 09:53:44 +00:00
|
|
|
See Also
|
|
|
|
--------
|
|
|
|
|
2016-07-11 01:13:41 +00:00
|
|
|
slink:VkAllocationCallbacks, slink:VkDevice, slink:VkDeviceCreateInfo, slink:VkPhysicalDevice
|
|
|
|
|
|
|
|
|
|
|
|
Document Notes
|
|
|
|
--------------
|
|
|
|
|
|
|
|
For more information, see the Vulkan Specification at URL
|
|
|
|
|
|
|
|
https://www.khronos.org/registry/vulkan/specs/1.0/xhtml/vkspec.html#vkCreateDevice
|
|
|
|
|
|
|
|
This page is extracted from the Vulkan Specification.
|
|
|
|
Fixes and changes should be made to the Specification,not directly.
|
2016-02-16 09:53:44 +00:00
|
|
|
|
|
|
|
include::footer.txt[]
|
2016-07-11 01:13:41 +00:00
|
|
|
|