摘要:
1.首先是dx中 textureView , 用于告知shader我有一个texture资源A texture and sampler state are objects like the constant buffers。纹理资源和采样状态类似于先前的constantBuffer,所以在dra... 阅读全文
posted @ 2015-01-19 19:19
dust_fly
阅读(351)
评论(0)
推荐(0)
摘要:
需要明白constantBuffer传入数据到shader的正确使用::虽然vs和ps等shader在一个fx中,但需要各自setConstantBuffer进行 常量的读取设置如果没有使用到constantBuffer数据,可以不用设置记得set前需要update相应的buffer数据cb1.vO... 阅读全文
posted @ 2015-01-19 07:55
dust_fly
阅读(559)
评论(0)
推荐(0)

浙公网安备 33010602011771号