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);
pub fn create_buffer_view(
device: vk::Device,
p_create_info: *const vk::BufferViewCreateInfo,
p_allocator: *const vk::AllocationCallbacks,
p_view: *mut vk::BufferView,
) -> vk::Result;
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
VUID-vkCreateBufferView-device-queuecount
The device must have been created with at least 1 queue
Parent
VK_VERSION_1_0Type
Function Prototype
Return Values
VK_SUCCESS
VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
VK_ERROR_UNKNOWN
VK_ERROR_VALIDATION_FAILED