SlimDX C#: StateBlock contructor problem. ".ctor not supported by the language"

Started by
0 comments, last by Mike.Popoloski 13 years, 2 months ago
Hi,
I am trying to save and restore state by using the StateBlock class provided by SlimDX, but I am unable to construct the object.


StateBlockMask mask = new StateBlockMask(null) { RasterizerState = true };
sb = new StateBlock(device.Device, mask);


gives me the following compilation error (for the StateBlock line):
'.ctor' is not supported by the language

Looking at the source @ http://www.google.co...tateBlock10.cpp,
I see that the constructor StateBlock::StateBlock( SlimDX::Direct3D10::Device^ device, StateBlockMask mask) is indeed there. I am not very familiar with managed code, and the only thing I can see with this snippet is that the mask parameter does not have a ^.

Is there another preferred way of saving state to a StateBlock that I am unaware of?

I am using C#3.5 and DirectX10
Advertisement
[font=Arial,]This looks like a bug in SlimDX. You might want to use the issue tracker to make sure it gets dealt with properly.[/font]
Mike Popoloski | Journal | SlimDX

This topic is closed to new replies.

Advertisement