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
Post a Comment