pandap / slimdx

Automatically exported from code.google.com/p/slimdx
MIT License
0 stars 0 forks source link

Exception thrown in EffectScalarVariable set/get bool array #850

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using the Set(bool[]) and GetBoolArray(int) methods in D3D10 
EffectScalarVariable yields the following exception:

"An unhandled exception of type 'System.ArrayTypeMismatchException' occurred in 
mscorlib.dll

Additional information: Source array type cannot be assigned to destination 
array type."

Looks like it has to do with the Array.Copy() method used to go from bool to 
BOOL and vice versa. Similar code is in the D3D11 version, presumably with the 
same results too.

Original issue reported on code.google.com by nicholas.woodfield on 28 Nov 2011 at 2:20

GoogleCodeExporter commented 9 years ago

Original comment by Mike.Popoloski on 30 Dec 2011 at 3:46

GoogleCodeExporter commented 9 years ago
Milestone.

Original comment by Mike.Popoloski on 30 Dec 2011 at 3:47

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r2159.

Original comment by Mike.Popoloski on 1 Jan 2012 at 5:54