Function Prototype
vkCreateBufferView
Create a new buffer view object
To create a buffer view, call:
VkResult vkCreateBufferView(
VkDevice device,
const VkBufferViewCreateInfo* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
VkBufferView* pView);
deviceis the logical device that creates the buffer view.pCreateInfois a pointer to a VkBufferViewCreateInfo structure containing parameters to be used to create the buffer view.pAllocatorcontrols host memory allocation as described in the Memory Allocation chapter.pViewis a pointer to a VkBufferView handle in which the resulting buffer view object is returned.
Valid Usage
VUID-vkCreateBufferView-device-09665
device must support at least one queue family with one of the
VK_QUEUE_COMPUTE_BIT or VK_QUEUE_GRAPHICS_BIT capabilities
Valid Usage (Implicit)
VUID-vkCreateBufferView-device-parameter
device must be a valid VkDevice handle
VUID-vkCreateBufferView-pCreateInfo-parameter
pCreateInfo must be a valid pointer to a valid VkBufferViewCreateInfo structure
VUID-vkCreateBufferView-pAllocator-parameter
If pAllocator is not NULL, pAllocator must be a valid pointer to a valid VkAllocationCallbacks structure
VUID-vkCreateBufferView-pView-parameter
pView must be a valid pointer to a VkBufferView handle