Home
last modified time | relevance | path

Searched refs:getProc (Results 1 – 15 of 15) sorted by relevance

/external/skia/tests/
DVkPriorityExtensionTest.cpp30 reinterpret_cast<PFN_vk##name>(getProc("vk" #name, instance, VK_NULL_HANDLE))
34 reinterpret_cast<PFN_vk##name>(getProc("vk" #name, instance, VK_NULL_HANDLE)); \
38 destroy_instance(getProc, instance); \
46 reinterpret_cast<PFN_vk##name>(getProc("vk" #name, instance, VK_NULL_HANDLE)); \
53 #define GET_PROC_LOCAL(F, inst) PFN_vk ## F F = (PFN_vk ## F) getProc("vk" #F, inst, VK_NULL_HANDLE)
55 static void destroy_instance(const skgpu::VulkanGetProc& getProc, VkInstance inst) { in destroy_instance() argument
72 auto getProc = [instProc](const char* proc_name, VkInstance instance, VkDevice) { in DEF_GANESH_TEST_FOR_VULKAN_CONTEXT() local
146 destroy_instance(getProc, inst); in DEF_GANESH_TEST_FOR_VULKAN_CONTEXT()
152 destroy_instance(getProc, inst); in DEF_GANESH_TEST_FOR_VULKAN_CONTEXT()
162 destroy_instance(getProc, inst); in DEF_GANESH_TEST_FOR_VULKAN_CONTEXT()
[all …]
DVkHardwareBufferTest.cpp388 fVk##name = reinterpret_cast<PFN_vk##name>(getProc("vk" #name, fBackendContext.fInstance,\
398 fVk##name = reinterpret_cast<PFN_vk##name>(getProc("vk" #name, VK_NULL_HANDLE, fDevice)); \
554 auto getProc = fBackendContext.fGetProc; in init() local
/external/angle/src/gpu_info_util/
DSystemInfo_vulkan.cpp155 auto pfnDestroyInstance = getProc<PFN_vkDestroyInstance>("vkDestroyInstance"); in ~VulkanLibrary()
170 getProc<PFN_vkEnumerateInstanceExtensionProperties>( in GetInstanceExtensionNames()
220 getProc<PFN_vkEnumerateInstanceVersion>("vkEnumerateInstanceVersion"); in getVulkanInstance()
270 auto pfnCreateInstance = getProc<PFN_vkCreateInstance>("vkCreateInstance"); in getVulkanInstance()
281 Func getProc(const char *fn) const in getProc() function in angle::VulkanLibrary
330 vkLibrary.getProc<PFN_vkEnumeratePhysicalDevices>("vkEnumeratePhysicalDevices"); in GetSystemInfoVulkanWithICD()
332 vkLibrary.getProc<PFN_vkGetPhysicalDeviceProperties>("vkGetPhysicalDeviceProperties"); in GetSystemInfoVulkanWithICD()
334 vkLibrary.getProc<PFN_vkGetPhysicalDeviceProperties2>("vkGetPhysicalDeviceProperties2"); in GetSystemInfoVulkanWithICD()
/external/skia/src/gpu/vk/
DVulkanExtensions.cpp39 void VulkanExtensions::init(VulkanGetProc getProc, in init() argument
62 this->getSpecVersions(std::move(getProc), instance, physDev); in init()
66 PFN_vk##F grVk##F = (PFN_vk ## F) getProc("vk" #F, inst, VK_NULL_HANDLE)
68 void VulkanExtensions::getSpecVersions(const VulkanGetProc& getProc, in getSpecVersions() argument
DVulkanInterface.cpp18 fFunctions.f##name = reinterpret_cast<PFN_vk##name>(getProc("vk" #name, instance, device))
22 reinterpret_cast<PFN_vk##name##suffix>(getProc("vk" #name #suffix, instance, device))
24 VulkanInterface::VulkanInterface(VulkanGetProc getProc, in VulkanInterface() argument
30 if (getProc == nullptr) { in VulkanInterface()
DVulkanInterface.h44 VulkanInterface(VulkanGetProc getProc,
/external/angle/src/tests/perf_tests/
DEGLMakeCurrentPerf.cpp69 LoadProc getProc = reinterpret_cast<LoadProc>(mEGLLibrary->getSymbol("eglGetProcAddress")); local
71 if (!getProc)
77 LoadUtilEGL(getProc);
79 LoadUtilGLES(getProc);
/external/skia/tools/gpu/vk/
DVkTestUtils.cpp299 #define GET_PROC_LOCAL(F, inst, device) PFN_vk ## F F = (PFN_vk ## F) getProc("vk" #F, inst, device)
301 static bool init_device_extensions_and_layers(const skgpu::VulkanGetProc& getProc, in init_device_extensions_and_layers() argument
306 if (getProc == nullptr) { in init_device_extensions_and_layers()
412 PFN_vk##name grVk##name = reinterpret_cast<PFN_vk##name>(getProc("vk" #name, instance, device))
416 reinterpret_cast<PFN_vk##name>(getProc("vk" #name, instance, device)); \
429 reinterpret_cast<PFN_vk##name>(getProc("vk" #name, instance, device)); \
450 static bool setup_features(const skgpu::VulkanGetProc& getProc, VkInstance inst, in setup_features() argument
606 auto getProc = [getInstProc, grVkGetDeviceProcAddr](const char* proc_name, in CreateVkBackendContext() local
737 if (!init_device_extensions_and_layers(getProc, physDeviceVersion, in CreateVkBackendContext()
755 extensions->init(getProc, inst, physDev, in CreateVkBackendContext()
[all …]
/external/angle/src/libANGLE/renderer/gl/glx/
DFunctionsGLX.cpp29 static bool GetProc(PFNGETPROCPROC getProc, T *member, const char *name) in GetProc() argument
31 *member = reinterpret_cast<T>(getProc(name)); in GetProc()
155 getProc = reinterpret_cast<PFNGETPROCPROC>(dlsym(sLibHandle, "glXGetProcAddress")); in initialize()
156 if (!getProc) in initialize()
158 getProc = reinterpret_cast<PFNGETPROCPROC>(dlsym(sLibHandle, "glXGetProcAddressARB")); in initialize()
160 if (!getProc) in initialize()
166 getProc = reinterpret_cast<PFNGETPROCPROC>(glXGetProcAddress); in initialize()
172 if (!GetProc(getProc, MEMBER, #NAME)) \ in initialize()
DFunctionsGLX.h37 PFNGETPROCPROC getProc; variable
DDisplayGLX.cpp55 FunctionsGLGLX(PFNGETPROCPROC getProc) : mGetProc(getProc) {} in FunctionsGLGLX() argument
293 std::unique_ptr<FunctionsGL> functionsGL(new FunctionsGLGLX(mGLX.getProc)); in initialize()
/external/skia/example/
DVulkanBasic.cpp36 fVk##name = reinterpret_cast<PFN_vk##name>(getProc("vk" #name, backendContext.fInstance, \
78 auto getProc = backendContext.fGetProc; in main() local
/external/skia/src/gpu/ganesh/
DGrProcessorUnitTest.cpp115 GrXPFactoryTestFactory::GrXPFactoryTestFactory(GetFn* getProc) : fGetProc(getProc) { in GrXPFactoryTestFactory() argument
DGrProcessorUnitTest.h116 GrXPFactoryTestFactory(GetFn* getProc);
/external/skia/include/gpu/vk/
DVulkanExtensions.h66 void getSpecVersions(const VulkanGetProc& getProc, VkInstance, VkPhysicalDevice);