Home
last modified time | relevance | path

Searched refs:getProc (Results 1 - 25 of 30) sorted by relevance

12

/third_party/skia/tests/
H A DVkPriorityExtensionTest.cpp18 PFN_vk##name grVk##name = reinterpret_cast<PFN_vk##name>(getProc("vk" #name, instance, device))
22 reinterpret_cast<PFN_vk##name>(getProc("vk" #name, instance, device)); \
26 destroy_instance(getProc, inst); \
34 reinterpret_cast<PFN_vk##name>(getProc("vk" #name, instance, device)); \
41 #define GET_PROC_LOCAL(F, inst, device) PFN_vk ## F F = (PFN_vk ## F) getProc("vk" #F, inst, device)
43 static void destroy_instance(GrVkGetProc getProc, VkInstance inst) { in destroy_instance() argument
57 auto getProc = [instProc, devProc](const char* proc_name, in DEF_GPUTEST() local
135 destroy_instance(getProc, inst); in DEF_GPUTEST()
140 destroy_instance(getProc, inst); in DEF_GPUTEST()
150 destroy_instance(getProc, ins in DEF_GPUTEST()
[all...]
/third_party/skia/third_party/externals/dawn/generator/templates/opengl/
H A DOpenGLFunctionsBase.cpp20 MaybeError OpenGLFunctionsBase::LoadProc(GetProcAddress getProc, T* memberProc, const char* name) { in LoadProc() argument
21 *memberProc = reinterpret_cast<T>(getProc(name)); in LoadProc()
28 MaybeError OpenGLFunctionsBase::LoadOpenGLESProcs(GetProcAddress getProc, int majorVersion, int minorVersion) { in LoadOpenGLESProcs() argument
33 DAWN_TRY(LoadProc(getProc, &{{proc.ProcName()}}, "{{proc.glProcName()}}")); in LoadOpenGLESProcs()
42 DAWN_TRY(LoadProc(getProc, &{{proc.ProcName()}}, "{{proc.glProcName()}}")); in LoadOpenGLESProcs()
49 MaybeError OpenGLFunctionsBase::LoadDesktopGLProcs(GetProcAddress getProc, int majorVersion, int minorVersion) { in LoadDesktopGLProcs() argument
54 DAWN_TRY(LoadProc(getProc, &{{proc.ProcName()}}, "{{proc.glProcName()}}")); in LoadDesktopGLProcs()
63 DAWN_TRY(LoadProc(getProc, &{{proc.ProcName()}}, "{{proc.glProcName()}}")); in LoadDesktopGLProcs()
H A DOpenGLFunctionsBase.h35 MaybeError LoadDesktopGLProcs(GetProcAddress getProc, int majorVersion, int minorVersion);
36 MaybeError LoadOpenGLESProcs(GetProcAddress getProc, int majorVersion, int minorVersion);
40 MaybeError LoadProc(GetProcAddress getProc, T* memberProc, const char* name);
/third_party/skia/tools/gpu/vk/
H A DVkTestUtils.cpp142 #define GET_PROC_LOCAL(F, inst, device) PFN_vk ## F F = (PFN_vk ## F) getProc("vk" #F, inst, device)
144 static bool init_instance_extensions_and_layers(GrVkGetProc getProc, in init_instance_extensions_and_layers() argument
148 if (getProc == nullptr) { in init_instance_extensions_and_layers()
231 static bool init_device_extensions_and_layers(GrVkGetProc getProc, uint32_t specVersion, in init_device_extensions_and_layers() argument
235 if (getProc == nullptr) { in init_device_extensions_and_layers()
321 PFN_vk##name grVk##name = reinterpret_cast<PFN_vk##name>(getProc("vk" #name, instance, device))
325 reinterpret_cast<PFN_vk##name>(getProc("vk" #name, instance, device)); \
330 destroy_instance(getProc, inst, debugCallback, hasDebugExtension); \
338 reinterpret_cast<PFN_vk##name>(getProc("vk" #name, instance, device)); \
346 static bool destroy_instance(GrVkGetProc getProc, VkInstanc argument
359 setup_features(GrVkGetProc getProc, VkInstance inst, VkPhysicalDevice physDev, uint32_t physDeviceVersion, GrVkExtensions* extensions, VkPhysicalDeviceFeatures2* features, bool isProtected) setup_features() argument
423 CreateVkBackendContext(GrVkGetProc getProc, GrVkBackendContext* ctx, GrVkExtensions* extensions, VkPhysicalDeviceFeatures2* features, VkDebugReportCallbackEXT* debugCallback, uint32_t* presentQueueIndexPtr, CanPresentFn canPresent, bool isProtected) CreateVkBackendContext() argument
[all...]
H A DVkTestHelper.cpp17 fVk##name = reinterpret_cast<PFN_vk##name>(getProc("vk" #name, fBackendContext.fInstance,\
25 fVk##name = reinterpret_cast<PFN_vk##name>(getProc("vk" #name, VK_NULL_HANDLE, fDevice)); \
37 auto getProc = [&instProc, &devProc](const char* proc_name, in init() local
51 if (!sk_gpu_test::CreateVkBackendContext(getProc, &fBackendContext, &fExtensions, in init()
H A DVkTestContext.cpp19 f##name = reinterpret_cast<PFN_vk##name>(getProc("vk" #name, nullptr, device)); \
44 auto getProc = [instProc, devProc](const char* proc_name, in Create() local
54 if (!sk_gpu_test::CreateVkBackendContext(getProc, &backendContext, extensions, in Create()
H A DVkTestUtils.h29 bool SK_API CreateVkBackendContext(GrVkGetProc getProc,
/third_party/skia/third_party/externals/dawn/src/utils/
H A DBackendBinding.cpp56 auto getProc = reinterpret_cast<void* (*)(const char*)>(glfwGetProcAddress); in DiscoverAdapter() local
59 adapterOptions.getProc = getProc; in DiscoverAdapter()
63 adapterOptions.getProc = getProc; in DiscoverAdapter()
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
H A DOpenGLFunctions.cpp21 MaybeError OpenGLFunctions::Initialize(GetProcAddress getProc) { in Initialize() argument
22 DAWN_TRY(mVersion.Initialize(getProc)); in Initialize()
24 DAWN_TRY(LoadOpenGLESProcs(getProc, mVersion.GetMajor(), mVersion.GetMinor())); in Initialize()
26 DAWN_TRY(LoadDesktopGLProcs(getProc, mVersion.GetMajor(), mVersion.GetMinor())); in Initialize()
H A DBackendGL.cpp126 MaybeError InitializeGLFunctions(void* (*getProc)(const char*)) { in InitializeGLFunctions()
127 // Use getProc to populate the dispatch table in InitializeGLFunctions()
128 return mFunctions.Initialize(getProc); in InitializeGLFunctions()
288 DAWN_INVALID_IF(options->getProc == nullptr, in DiscoverAdapters()
289 "AdapterDiscoveryOptions::getProc must be set"); in DiscoverAdapters()
293 DAWN_TRY(adapter->InitializeGLFunctions(options->getProc)); in DiscoverAdapters()
H A DOpenGLVersion.cpp22 MaybeError OpenGLVersion::Initialize(GetProcAddress getProc) { in Initialize() argument
23 PFNGLGETSTRINGPROC getString = reinterpret_cast<PFNGLGETSTRINGPROC>(getProc("glGetString")); in Initialize()
H A DOpenGLVersion.h24 MaybeError Initialize(GetProcAddress getProc);
H A DOpenGLFunctions.h27 MaybeError Initialize(GetProcAddress getProc);
/third_party/skia/third_party/externals/angle2/src/gpu_info_util/
H A DSystemInfo_vulkan.cpp34 auto pfnDestroyInstance = getProc<PFN_vkDestroyInstance>("vkDestroyInstance"); in ~VulkanLibrary()
55 getProc<PFN_vkEnumerateInstanceVersion>("vkEnumerateInstanceVersion"); in getVulkanInstance()
83 auto pfnCreateInstance = getProc<PFN_vkCreateInstance>("vkCreateInstance"); in getVulkanInstance()
94 Func getProc(const char *fn) const in getProc() function in angle::final
141 vkLibrary.getProc<PFN_vkEnumeratePhysicalDevices>("vkEnumeratePhysicalDevices"); in GetSystemInfoVulkanWithICD()
143 vkLibrary.getProc<PFN_vkGetPhysicalDeviceProperties>("vkGetPhysicalDeviceProperties"); in GetSystemInfoVulkanWithICD()
/third_party/skia/src/gpu/vk/
H A DGrVkExtensions.cpp35 void GrVkExtensions::init(GrVkGetProc getProc, in init() argument
58 this->getSpecVersions(getProc, instance, physDev); in init()
62 PFN_vk##F grVk##F = (PFN_vk ## F) getProc("vk" #F, inst, VK_NULL_HANDLE)
64 void GrVkExtensions::getSpecVersions(GrVkGetProc getProc, VkInstance instance, in getSpecVersions() argument
H A DGrVkInterface.cpp14 fFunctions.f##name = reinterpret_cast<PFN_vk##name>(getProc("vk" #name, instance, device))
18 reinterpret_cast<PFN_vk##name##suffix>(getProc("vk" #name #suffix, instance, device))
20 GrVkInterface::GrVkInterface(GrVkGetProc getProc, in GrVkInterface() argument
26 if (getProc == nullptr) { in GrVkInterface()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/glx/
H A 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()
H A DFunctionsGLX.h37 PFNGETPROCPROC getProc; member in rx::FunctionsGLX
/third_party/skia/third_party/externals/dawn/src/include/dawn_native/
H A DOpenGLBackend.h28 void* (*getProc)(const char*); member
34 void* (*getProc)(const char*); member
/third_party/skia/third_party/externals/angle2/src/tests/perf_tests/
H A DEGLMakeCurrentPerf.cpp69 angle::LoadProc getProc = local
72 if (!getProc)
78 angle::LoadEGL(getProc);
/third_party/skia/tools/gpu/dawn/
H A DDawnTestContext.cpp58 return fInstance->getProc(name); in getProcAddress()
62 Proc getProc(const char* name) { in getProc() function in __anon26495::ProcGetter
109 adapterOptions.getProc = reinterpret_cast<void*(*)(const char*)>( in Create()
/third_party/skia/src/gpu/
H A DGrProcessorUnitTest.cpp109 GrXPFactoryTestFactory::GrXPFactoryTestFactory(GetFn* getProc) : fGetProc(getProc) { in GrXPFactoryTestFactory() argument
H A DGrProcessorUnitTest.h114 GrXPFactoryTestFactory(GetFn* getProc);
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
H A DAdapterDiscoveryTests.cpp172 options.getProc = reinterpret_cast<void* (*)(const char*)>(glfwGetProcAddress); in TEST()
213 options.getProc = reinterpret_cast<void* (*)(const char*)>(glfwGetProcAddress); in TEST()
/third_party/skia/include/gpu/vk/
H A DGrVkExtensions.h58 void getSpecVersions(GrVkGetProc getProc, VkInstance, VkPhysicalDevice);

Completed in 11 milliseconds

12