I'm trying to accomplish the same thing in SlimDX but I can't seem to figure out how. The logical way seems to be texture.Resource.Description.Width but the Direct3D11.Resource class doesn't have a Description property. Anyone know how to do this in SlimDX?
The descriptions are strongly typed. As such you will find them under the derived type from Resource... i.e. Texture2D.Description
In time the project grows, the ignorance of its devs it shows, with many a convoluted function, it plunges into deep compunction, the price of failure is high, Washu's mirth is nigh.
I don't think that will work (it might, but doubtful)...
var resource = new Texture2D.FromPointer(texture.Resource.ComPointer);
should work, just remember to dispose of it when done, probably. depending on if you hold a handle to the texture in the resource view or not. (If you do, don't dispose, if you don't, do dispose).
In time the project grows, the ignorance of its devs it shows, with many a convoluted function, it plunges into deep compunction, the price of failure is high, Washu's mirth is nigh.