| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1077 人关注过本帖
标题:OpenGL中获取硬件能接受的顶点数据上限
只看楼主 加入收藏
OpenGLNewer
Rank: 1
等 级:新手上路
帖 子:3
专家分:5
注 册:2021-1-7
收藏
 问题点数:0 回复次数:0 
OpenGL中获取硬件能接受的顶点数据上限
运行到glGetIntegerv就会访问冲突
0x00000000 处(位于 着色器学习.exe 中)引发的异常: 0xC0000005: 执行位置 0x00000000 时发生访问冲突。
程序代码:
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <iostream>

int main() {
     int nrAttributes;
     glGetIntegerv(GL_MAX_VERTEX_ATTRIBS, &nrAttributes);
    int max;
    glGetIntegerv(GL_MAX_TEXTURE_SIZE, &max);
    std::cout << "Maximum nr of vertex attributes supported: " << nrAttributes << std::endl;
        std::cout << "Maximum nr of vertex attributes supported: " << max << std::endl;
    getchar();
    return 0;
}
搜索更多相关主题的帖子: include 点数 max std int 
2021-01-10 22:05
快速回复:OpenGL中获取硬件能接受的顶点数据上限
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.016771 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved