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

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

相关推荐
Yana.nice5 小时前
Bash函数详解
开发语言·chrome·bash
m0_535064606 小时前
C++模版编程:类模版与继承
java·jvm·c++
Tanecious.7 小时前
C++--红黑树封装实现set和map
网络·c++
愚润求学10 小时前
【动态规划】01背包问题
c++·算法·leetcode·动态规划
源代码•宸11 小时前
C++高频知识点(十三)
开发语言·c++·经验分享·面经
lhxcc_fly11 小时前
mmap映射文件
c++·地址映射文件·!fd
有冠希没关系13 小时前
Ffmpeg滤镜
c++
闻缺陷则喜何志丹14 小时前
【并集查找 虚拟节点】P1783 海滩防御|省选-
数据结构·c++·洛谷·并集查找·虚拟节点
用户68530007547515 小时前
双指针法解决力扣922题:按奇偶排序数组II的完整指南
c++
CodeWithMe15 小时前
【读书笔记】《C++ Software Design》第十章与第十一章 The Singleton Pattern & The Last Guideline
开发语言·c++·设计模式