D3D10渲染目标视图问题 [英] D3D10 Render Target View question

查看:69
本文介绍了D3D10渲染目标视图问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,有人可以告诉我为什么在msdn上的示例中,从文件加载的纹理只需要获取着色器视图,并且纹理是空的并且稍后会在app时填充正在运行,必须有渲染目标视图吗?



我的意思是我必须为绝对所有纹理制作渲染目标视图,或者仅适用于在应用程序运行时填充的空白?

解决方案

渲染到的纹理是渲染目标。您只从中采样的纹理不是。纹理也可用于两者,首先渲染到它然后在着色器中从中进行采样。


Ok can someone please tell me why on the example that is on msdn,a texture that is loaded from a file needs only to get a shader view,and a texture that is empty and will be filled later while app is running,has to have a render target view?

I mean do I have to make a render target view for absolutely all textures,or only for empty ones that will be filled while the app is running?

解决方案

A texture you render to is a render target. A texture you only sample from is not. A texture can also be used for both, first rendering to it then sampling from it in a shader.


这篇关于D3D10渲染目标视图问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆