renderdoc使用

renderdoc

launch启动后,ui左上显示capture参数

capture成功后使用f12,分析捕获的数据

pipline(主要分析窗口)

  • VTX: 查看输入的顶点数据
  • VS: 调试顶点着色器输出
  • TCS/TES: 分析曲面细分结果
  • GS: 检查几何着色器生成的新图元
  • RS: 查看光栅化后的片段
  • FS: 调试片段着色器计算
  • FB: 查看最终帧缓冲区输出(缓冲,s结尾的是shader)
  • CS: 分析计算着色器结果(独立管线,不在图形管线中)

可以修改查看shader

Texture、mesh

texture可以看到图像的绘制过程,每个函数的执行过程

mesh,可以查看输如何输出数据,右键调试可以定位到shader的代码位置

管线中的像素测试

裁剪测试(Scissor Test)→ 模板测试(Stencil Test)→ 深度测试(Depth Test)→ alpha测试(Alpha Test)→ 混合(Blending,非测试但影响最终像素)

vao 顶点属性,vbo顶点数据

exception

  • qtcore receiver->d_func()->threadData.loadRelaxed()->thread.loadAcquire()==mainthread() assert异常程序崩溃

鼠标移动在ui上导致的,先(alt+i)忽略,使用键盘快捷键代替

  • renderdoc context not created via createcontextattribs opengl capture fail

ui上提示,opengl使用的3.2+版本,osg程序默认的opengl版本是1.0

SET(DEFAULT_GL_CONTEXT_VERSION "1.0")改成3.3就好了

相关推荐
gis分享者3 天前
学习threejs,实现山谷奔跑效果
threejs·着色器·glsl·shadermaterial·unrealbloompass·山谷奔跑·simplex
千里马-horse9 天前
Building a Simple Engine -- Mobile Development -- Conclusion
pipeline·shader·rendering·vulkan
千里马-horse10 天前
Building a Simple Engine -- Mobile Development -- Performance optimizations
shader·内存优化·rendering·纹理优化·vulkan·压缩格式
weixin_4093831210 天前
cocosshader像素风沙消散
shader·cocos
千里马-horse12 天前
Building a Simple Engine -- Tooling -- Introduction
pipeline·shader·rendering·vulkan
千里马-horse1 个月前
Multithreading with Vulkan
shader·rendering·vulkan·vertex·multithreaded
weixin_409383121 个月前
cocos shader消失
shader·cocos
weixin_409383121 个月前
cocos魔法阵shader
shader·cocos
weixin_409383121 个月前
cocos 按钮光环shader
shader·cocos
两水先木示1 个月前
【Unity】对指定物体进行描边——模板测试法
unity·游戏引擎·shader·外描边