vkCreateBufferView(3)
C Specification
To create a buffer view, call:
// Provided by VK_VERSION_1_0VkResult vkCreateBufferView( VkDevice device, const VkBufferViewCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkBufferView* pView);Parameters
deviceis the logical device that creates the buffer view.pCreateInfois a pointer to aVkBufferViewCreateInfostructure containing parameters to be used to create the buffer view.pAllocatorcontrols host memory allocation as described in theMemory Allocation chapter.pViewis a pointer to aVkBufferView handle in which theresulting buffer view object is returned.
Description
VUID-vkCreateBufferView-device-09665
devicemust support at least one queue family with one of theVK_QUEUE_COMPUTE_BIT orVK_QUEUE_GRAPHICS_BIT capabilities
VUID-vkCreateBufferView-device-parameter
devicemust be a validVkDevice handleVUID-vkCreateBufferView-pCreateInfo-parameter
pCreateInfomust be a valid pointer to a validVkBufferViewCreateInfo structureVUID-vkCreateBufferView-pAllocator-parameter
IfpAllocatoris notNULL,pAllocatormust be a valid pointer to a validVkAllocationCallbacks structureVUID-vkCreateBufferView-pView-parameter
pViewmust be a valid pointer to aVkBufferView handleVUID-vkCreateBufferView-device-queuecount
The devicemust have been created with at least1queue
Document Notes
For more information, see theVulkan Specification.
This page is extracted from the Vulkan Specification.Fixes and changes should be made to the Specification, not directly.