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

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -