Function Prototype
vkCreateGpaSessionAMD
Create a new GPA session object
To create a GPA session object, call:
VkResult vkCreateGpaSessionAMD(
VkDevice device,
const VkGpaSessionCreateInfoAMD* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
VkGpaSessionAMD* pGpaSession);
pub fn create_gpa_session_amd(
device: vk::Device,
p_create_info: *const vk::GpaSessionCreateInfoAMD,
p_allocator: *const vk::AllocationCallbacks,
p_gpa_session: *mut vk::GpaSessionAMD,
) -> vk::Result;
deviceis the logical device that creates the GPA session object.pCreateInfois a pointer to a VkGpaSessionCreateInfoAMD structure containing information about how the GPA session object is to be created.pAllocatorcontrols host memory allocation as described in the Memory Allocation chapter.pGpaSessionis a pointer to a handle in which the resulting GPA session object is returned.
Valid Usage (Implicit)
VUID-vkCreateGpaSessionAMD-device-parameter
device must be a valid VkDevice handle
VUID-vkCreateGpaSessionAMD-pCreateInfo-parameter
pCreateInfo must be a valid pointer to a valid VkGpaSessionCreateInfoAMD structure
VUID-vkCreateGpaSessionAMD-pAllocator-parameter
If pAllocator is not NULL, pAllocator must be a valid pointer to a valid VkAllocationCallbacks structure
VUID-vkCreateGpaSessionAMD-pGpaSession-parameter
pGpaSession must be a valid pointer to a VkGpaSessionAMD handle
VUID-vkCreateGpaSessionAMD-device-queuecount
The device must have been created with at least 1 queue
Parent
VK_AMD_gpa_interfaceType
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