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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -