【发布时间】:2013-05-21 23:31:16
【问题描述】:
我想将相机输出与纹理混合(在 PostProcessing-Shader 中)。有没有加载纹理的方法?像
texture mytexture = "file.bmp"
sampler2D smp = sampler_state {
texture = <mytexture>;
...
}
【问题讨论】:
-
您使用哪个版本的 Direct3D? 11?也许 D3DX11CreateTextureFromFile (msdn.microsoft.com/en-us/library/windows/desktop/…) 对你有用。