Function Prototype
vkCreatePipelineLayout
Creates a new pipeline layout object
To create a pipeline layout, call:
VkResult vkCreatePipelineLayout(
VkDevice device,
const VkPipelineLayoutCreateInfo* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
VkPipelineLayout* pPipelineLayout);
pub fn create_pipeline_layout(
device: vk::Device,
p_create_info: *const vk::PipelineLayoutCreateInfo,
p_allocator: *const vk::AllocationCallbacks,
p_pipeline_layout: *mut vk::PipelineLayout,
) -> vk::Result;
deviceis the logical device that creates the pipeline layout.pCreateInfois a pointer to a VkPipelineLayoutCreateInfo structure specifying the state of the pipeline layout object.pAllocatorcontrols host memory allocation as described in the Memory Allocation chapter.pPipelineLayoutis a pointer to a VkPipelineLayout handle in which the resulting pipeline layout object is returned.
Valid Usage (Implicit)
VUID-vkCreatePipelineLayout-device-parameter
device must be a valid VkDevice handle
VUID-vkCreatePipelineLayout-pCreateInfo-parameter
pCreateInfo must be a valid pointer to a valid VkPipelineLayoutCreateInfo structure
VUID-vkCreatePipelineLayout-pAllocator-parameter
If pAllocator is not NULL, pAllocator must be a valid pointer to a valid VkAllocationCallbacks structure
VUID-vkCreatePipelineLayout-pPipelineLayout-parameter
pPipelineLayout must be a valid pointer to a VkPipelineLayout handle
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