03 2017 档案
window coordinate
摘要:到ndc的转换是通过(x/w,y/w,z/w) 到了 window coordinates dx upper left gl lower left setviewport setscissor rt被裁了 不是viewport。。是scissor 调了好久 阅读全文
posted @ 2017-03-29 01:26 minggoddess 阅读(165) 评论(0) 推荐(0)
GPU hang
摘要:最近做新项目 初期一直遇到个gpu hang的问题 就是command 提交过去gpu 就一直在那里 直到time out 也没什么别的错误提示 gpu debugger还抓不了 解决方案是 缩小之后 gpu debugger caputure frame问题是由于 vbo没有和verte attr 阅读全文
posted @ 2017-03-14 20:42 minggoddess 阅读(742) 评论(0) 推荐(0)
the application was unable to start correctly 0xc000007b
摘要:应该是个64bit的问题 占坑 在装vs了 td教我用一个 ms的 depends.exe 能看依赖的dll 好强.. 和别人对比 明显是mscvr相关的 网上也是这么说 最后发现 是UCRTBASED.dll这个版本不对 因为是被vcruntime140d.dll引用的 所以没有直接报找不到dll 阅读全文
posted @ 2017-03-14 10:43 minggoddess 阅读(348) 评论(0) 推荐(0)
vertex buffer 数据结构 如何读vb的memory pool
摘要:vertex attribute (declaration) vertex stream (memory pool) 这两部分 通过attribute 里面对memory的描述把两部分 vbo 和attribute bind together slot attribute offset stream 阅读全文
posted @ 2017-03-13 15:27 minggoddess 阅读(341) 评论(0) 推荐(0)
map
摘要:gpu resource 以discard overwirte 方式map出来 是要得到一块可以供cpu使用的地址 在引擎里面有两层来实现这个dynamaic vertex功能 上层有个ring 如果一块写满了换下一块 下层对于 块内用overwrite map memory 对于 换块用disca 阅读全文
posted @ 2017-03-13 15:09 minggoddess 阅读(106) 评论(0) 推荐(0)
CPU Cache unCache
摘要:CPU uncache 写就可以了 CPU chace这种flag的话 还要flush过去 不然gpu那边拿到的这块buffer里面没有内容 都是空 阅读全文
posted @ 2017-03-13 14:42 minggoddess 阅读(420) 评论(0) 推荐(0)