Home
last modified time | relevance | path

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

123

/third_party/skia/tests/
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, inst); in DEF_GPUTEST()
[all …]
/third_party/flutter/skia/tests/
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, inst); in DEF_GPUTEST()
[all …]
/third_party/skia/third_party/externals/dawn/generator/templates/opengl/
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 min… 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 mi…
54 DAWN_TRY(LoadProc(getProc, &{{proc.ProcName()}}, "{{proc.glProcName()}}"));
63 DAWN_TRY(LoadProc(getProc, &{{proc.ProcName()}}, "{{proc.glProcName()}}"));
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/flutter/skia/tools/gpu/vk/
DVkTestUtils.cpp131 #define GET_PROC_LOCAL(F, inst, device) PFN_vk ## F F = (PFN_vk ## F) getProc("vk" #F, inst, device)
133 static bool init_instance_extensions_and_layers(GrVkGetProc getProc, in init_instance_extensions_and_layers() argument
137 if (getProc == nullptr) { in init_instance_extensions_and_layers()
218 static bool init_device_extensions_and_layers(GrVkGetProc getProc, uint32_t specVersion, in init_device_extensions_and_layers() argument
222 if (getProc == nullptr) { in init_device_extensions_and_layers()
306 PFN_vk##name grVk##name = reinterpret_cast<PFN_vk##name>(getProc("vk" #name, instance, device))
310 reinterpret_cast<PFN_vk##name>(getProc("vk" #name, instance, device)); \
315 destroy_instance(getProc, inst, debugCallback, hasDebugExtension); \
323 reinterpret_cast<PFN_vk##name>(getProc("vk" #name, instance, device)); \
331 static bool destroy_instance(GrVkGetProc getProc, VkInstance inst, in destroy_instance() argument
[all …]
/third_party/skia/tools/gpu/vk/
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, VkInstance inst, in destroy_instance() argument
[all …]
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()
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()
/third_party/flutter/skia/third_party/externals/dawn/generator/templates/opengl/
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 min… in LoadOpenGLESProcs() argument
33 DAWN_TRY(LoadProc(getProc, &{{proc.ProcName()}}, "{{proc.glProcName()}}")); in LoadOpenGLESProcs()
41 MaybeError OpenGLFunctionsBase::LoadDesktopGLProcs(GetProcAddress getProc, int majorVersion, int mi…
46 DAWN_TRY(LoadProc(getProc, &{{proc.ProcName()}}, "{{proc.glProcName()}}"));
DOpenGLFunctionsBase.h32 MaybeError LoadDesktopGLProcs(GetProcAddress getProc, int majorVersion, int minorVersion);
33 MaybeError LoadOpenGLESProcs(GetProcAddress getProc, int majorVersion, int minorVersion);
37 MaybeError LoadProc(GetProcAddress getProc, T* memberProc, const char* name);
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/opengl/
DOpenGLFunctions.cpp21 MaybeError OpenGLFunctions::Initialize(GetProcAddress getProc) { in Initialize() argument
22 PFNGLGETSTRINGPROC getString = reinterpret_cast<PFNGLGETSTRINGPROC>(getProc("glGetString")); in Initialize()
39 DAWN_TRY(LoadOpenGLESProcs(getProc, mMajorVersion, mMinorVersion)); in Initialize()
53 DAWN_TRY(LoadDesktopGLProcs(getProc, mMajorVersion, mMinorVersion)); in Initialize()
/third_party/skia/third_party/externals/dawn/src/utils/
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/
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()
DBackendGL.cpp126 MaybeError InitializeGLFunctions(void* (*getProc)(const char*)) { in InitializeGLFunctions()
128 return mFunctions.Initialize(getProc); in InitializeGLFunctions()
288 DAWN_INVALID_IF(options->getProc == nullptr, in DiscoverAdapters()
293 DAWN_TRY(adapter->InitializeGLFunctions(options->getProc)); in DiscoverAdapters()
/third_party/flutter/skia/third_party/externals/angle2/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()
139 getProc = reinterpret_cast<PFNGETPROCPROC>(dlsym(sLibHandle, "glXGetProcAddress")); in initialize()
140 if (!getProc) in initialize()
142 getProc = reinterpret_cast<PFNGETPROCPROC>(dlsym(sLibHandle, "glXGetProcAddressARB")); in initialize()
144 if (!getProc) in initialize()
150 getProc = reinterpret_cast<PFNGETPROCPROC>(glXGetProcAddress); in initialize()
156 if (!GetProc(getProc, MEMBER, #NAME)) \ in initialize()
/third_party/skia/third_party/externals/angle2/src/gpu_info_util/
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::VulkanLibrary
141 vkLibrary.getProc<PFN_vkEnumeratePhysicalDevices>("vkEnumeratePhysicalDevices"); in GetSystemInfoVulkanWithICD()
143 vkLibrary.getProc<PFN_vkGetPhysicalDeviceProperties>("vkGetPhysicalDeviceProperties"); in GetSystemInfoVulkanWithICD()
/third_party/flutter/skia/src/gpu/vk/
DGrVkExtensions.cpp35 void GrVkExtensions::init(GrVkGetProc getProc, in init() argument
60 this->getSpecVersions(getProc, instance, physDev); in init()
64 PFN_vk##F grVk##F = (PFN_vk ## F) getProc("vk" #F, inst, VK_NULL_HANDLE)
66 void GrVkExtensions::getSpecVersions(GrVkGetProc getProc, VkInstance instance, in getSpecVersions() argument
/third_party/skia/src/gpu/vk/
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
/third_party/skia/third_party/externals/angle2/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()
/third_party/flutter/skia/src/gpu/gl/win/
DGrGLMakeNativeInterface_win.cpp44 GrGLFuncPtr getProc(const char name[]) const { in getProc() function in GLProcGetter
63 return getter->getProc(name); in win_get_gl_proc()
81 GrGLGetStringFn* getString = (GrGLGetStringFn*)getter.getProc("glGetString"); in GrGLMakeNativeInterface()
/third_party/skia/tools/gpu/dawn/
DDawnTestContext.cpp58 return fInstance->getProc(name); in getProcAddress()
62 Proc getProc(const char* name) { in getProc() function in __anon408a7cac0111::ProcGetter
109 adapterOptions.getProc = reinterpret_cast<void*(*)(const char*)>( in Create()
/third_party/skia/third_party/externals/angle2/src/tests/perf_tests/
DEGLMakeCurrentPerf.cpp69 angle::LoadProc getProc = local
72 if (!getProc)
78 angle::LoadEGL(getProc);
/third_party/flutter/skia/third_party/externals/angle2/src/tests/perf_tests/
DEGLMakeCurrentPerf.cpp69 angle::LoadProc getProc = local
72 if (!getProc)
78 angle::LoadEGL(getProc);
/third_party/skia/third_party/externals/dawn/src/include/dawn_native/
DOpenGLBackend.h28 void* (*getProc)(const char*); member
34 void* (*getProc)(const char*); member
/third_party/flutter/skia/src/gpu/gl/iOS/
DGrGLMakeNativeInterface_iOS.cpp38 GrGLFuncPtr getProc(const char name[]) const { in getProc() function in GLProcGetter
49 return getter->getProc(name); in ios_get_gl_proc()

123