WebGL vendor [显卡]指纹

一、WebGL vendor:(厂商)

Google Inc. (NVIDIA)

c++定义在

third_party\angle\src\libANGLE\Display.cpp

格式化Google Inc.字符在Display::initVendorString()函数里面,可以在此修改值。

cpp 复制代码
void Display::initVendorString()
{
    mVendorString                = "Google Inc.";
    std::string vendorStringImpl = mImplementation->getVendorString();
    if (!vendorStringImpl.empty())
    {
        mVendorString += " (" + vendorStringImpl + ")";
    }
}
cpp 复制代码
const std::string &Display::getVendorString() const
{
    return mVendorString;
}

二、WebGL renderer:(渲染)

ANGLE (NVIDIA, NVIDIA GeForce RTX 3060 (0x00002504) Direct3D11 vs_5_0 ps_5_0, D3D11)

src\ui\gl\gl_implementation.cc里面

const char* renderer_str =

reinterpret_cast<const char*>(api->glGetStringFn(GL_RENDERER));定义了获取

ANGLE (NVIDIA, NVIDIA GeForce RTX 3060 (0x00002504) Direct3D11 vs_5_0 ps_5_0, D3D11)

cpp 复制代码
bool WillUseGLGetStringForExtensions(GLApi* api) {
  const char* version_str =
      reinterpret_cast<const char*>(api->glGetStringFn(GL_VERSION));
  const char* renderer_str =
      reinterpret_cast<const char*>(api->glGetStringFn(GL_RENDERER));
  gfx::ExtensionSet extensions;
  GLVersionInfo version_info(version_str, renderer_str, extensions);
  return version_info.is_es || version_info.major_version < 3;
}

可以在此处修改。

const char* renderer_str =

reinterpret_cast<const char*>(api->glGetStringFn(GL_RENDERER));函数实现在

主要修改指纹点介绍完毕,仅供学习参考。

相关推荐
我想走路带风1 小时前
各自缓冲及实现
c++
阿米亚波2 小时前
【C/C++包管理器】vcpkg(by microsoft)
c语言·c++·git·vscode·microsoft·github·vcpkg
SNAKEpc121383 小时前
OpenGL(十一)- 变换管线
c语言·c++·算法·矩阵·图形渲染
牢姐与蒯3 小时前
c++高级数据结构之图(基本概念,存储结构,BFS,DFS,最小生成树)
数据结构·c++·
c238564 小时前
MySQL 基础用法(下):查询进阶与核心特性
android·c语言·c++·mysql
码匠许师傅4 小时前
【C++ 面试真题】 C++ 中的 static 有什么作用?
c++·面试
郭涤生4 小时前
C++ 零拷贝(Zero-Copy)
linux·开发语言·c++
乐观勇敢坚强的老彭4 小时前
计算机内存中的堆和栈
c++
间歇性努力持续性发呆的野生快乐选手5 小时前
dfs回溯,bfs枚举,完全背包
c++·算法·深度优先·宽度优先
码工许师傅6 小时前
一文读懂《Effective C++ 第三版》的55条黄金法则
c++