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));函数实现在

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

相关推荐
Tri_Function19 小时前
动态规划DP1(c++)
c++
清水迎朝阳1 天前
客户端软件 — 用户统计方案
服务器·c++·客户端·用户统计
再卷也是菜1 天前
C++17(下)
c++
alexwang2111 天前
HDU 4348 详细题解
c++·算法·题解·hdu·主席树·可持久化数据结构·可持久化线段树
程序员zgh1 天前
C++ 拷贝赋值运算符 详解
c语言·开发语言·c++
皓月斯语1 天前
B2132 素数对
c++·算法·题解
星轨初途1 天前
LeetCode 热题 100——day2 字母异位词分组
c++·算法·leetcode
笨鸟先飞的橘猫1 天前
c++面向对象编程
开发语言·c++
啦啦啦啦啦zzzz1 天前
设计模式:桥接模式和组合模式
c++·设计模式·组合模式·桥接模式
-森屿安年-1 天前
647. 回文子串
c++·算法·动态规划