Tag Info

New answers tagged

0

It looks like you can use the MarshalAs attribute like so [StructLayout(LayoutKind.Sequential, Pack = 16)] public struct cb0_t { public Matrix mWorld; public Matrix mView; public Matrix mProj; [MarshalAs(UnmanagedType.ByValArray, SizeConst=2)] public Vector4[] vLightDir; [MarshalAs(UnmanagedType.ByValArray, SizeConst=2)] public ...



Top 50 recent answers are included