public static unsafe int TestSequentialStructWithPaddingAndVectorFieldPtr() { var vec = new float2(1, 2); var vecPtr = &vec; var value = new SequentialStructWithPaddingAndVectorField(); value.b = *vecPtr; return((int)value.b.x); }
private static void TestSequentialStructWithPaddingAndVectorFieldRefHelper(ref SequentialStructWithPaddingAndVectorField value) { value.b.yx = value.b; value.b = value.b.yx; }
public static int TestSequentialStructWithPaddingAndVectorFieldRef(ref SequentialStructWithPaddingAndVectorField value) { TestSequentialStructWithPaddingAndVectorFieldRefHelper(ref value); return((int)value.b.x); }
public static int TestSequentialStructWithPaddingAndVectorField(ref SequentialStructWithPaddingAndVectorField value) { return((int)value.b.x); }