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

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

相关推荐
witton12 小时前
xmake中将proto文件生成C/C++文件然后再编译链接进项目
c语言·c++·mingw·protobuf·xmake·protobuf-c·protoc-gen-c
牛油果子哥q12 小时前
C++异常处理万字详解:try-throw-catch机制、栈展开、标准异常体系、自定义异常、工程规范、内存泄漏避坑
开发语言·jvm·c++
智商偏低12 小时前
attribute 与 uniform 本质区别(WebGL)
webgl
艾莉丝努力练剑12 小时前
【AI大模型接入SDK】C++日志体系与spdlog封装的理论部分
开发语言·c++·ide·人工智能·学习·面试·trae
旖旎夜光13 小时前
LCR 173:在点名(二分查找) —— 题解
数据结构·c++·算法·leetcode·二分查找
ly768913 小时前
浏览器工作原理详解:从入门到工程实践
chrome·firefox·edge浏览器
Lazionr14 小时前
模板进阶:深入理解模板机制
c++·windows
豆沙沙包?21 小时前
C++~~~stack容器、queue容器、list容器(p45-P56)
c++·windows·list
Frank_refuel21 小时前
【C++八股】面向对象
开发语言·c++
h_a_o777oah1 天前
【图论】Tarjan 缩点:解决有向图中环的问题
c++·算法·图论·acm·强连通分量·缩点·tarjan