Im going to make a raytracer, and I want to store my render data on a ID3D11Texture2D, so that I can display it or easily save to file using DX11, but I dont know how to initialize ID3D11Texture2D with the data I will have (probably an array of 32 bit RGB color)..
Share
You can either specify
pInitialDatain CreateTexture2D if you know the contents already at creation time, or callUpdateSubresource(MSDN) orMap(MSDN)/Unmap(MSDN) on the texture to fill it with your raw values.