i use this code to add image in my Material
material->setTextureImage(diffId, img);
but when i use
_textures = material->getTexture(diffId)
ID3D11Texture2D *texture = (ID3D11Texture2D*)_textures->getD3D11Texture();
then i found it's black in my d3d texture.
is anybody kown how to get my image in my d3d texture?
i want do render to texture to do some postprocess on my d3d texture?