The latest problem is very similar to this one I posted recently (http://stackoverflow...-from-the-usage), whereby text enclosed in '<' and '>' in the listing I am porting code is missing.
The latest offending line is:
[source lang="csharp"] using (var resource = SlimDX.Direct3D11.Resource.FromSwapChain(swapChain, 0)) renderTarget = new SlimDX.Direct3D11.RenderTargetView(graphics, resource);[/source]
I get the following error from the compiler:
The type arguments for method 'SlimDX.Direct3D10.Device.OpenSharedResource(System.IntPtr)' cannot be inferred from the usage. Try specifying the type arguments explicitly.
I tried to fix this myself by changing my code to:
using (var resource = SlimDX.Direct3D11.Resource.FromSwapChain<SlimDX.Direct3D11.Resource>(swapChain, 0))
renderTarget = new SlimDX.Direct3D11.RenderTargetView(graphics, resource);
... but now I get an even stranger run-time error:
"Error: Method 'SlimDX.Direct3D11.Resource.FromPointerReflectionThunk' not found."
Initial research indicates I might have stumbled into something which is way above my head: http://www.gamedev.n...interop-expert/
All I am trying to do is port this code into my framework: http://www.aaronblog.us/?p=36 ... which is all about drawing text in SlimDX with DX11.
At some point I hope to have figured out how to genericise this code into my framework. It is heavy going though.
I'm using SlimDX SDK (January 2012).
Edited by CdrTomalak, 08 September 2012 - 09:48 AM.






