bitmap - Load Texture from File in HLSL -


i want blend (in postprocessing-shader) camera output texture. there method load texture? like

texture mytexture = "file.bmp"  sampler2d smp = sampler_state { texture = <mytexture>; ... } 

a shader micro-program, runs on gpu. therefore isn't capable of complex loading textures disk. right way this, load texture program via directx-api (e.g. d3dx11createtexturefromfile) , set resource @ rendercall in shader use there.


Comments

Popular posts from this blog

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -

python - How to create a legend for 3D bar in matplotlib? -