namespace Brutal.KtxApi;
public partial struct KtxBasisParams
{
///
/// Initialises the StructSize field to the correct value.
///
///
/// This constructor only runs when you call new KtxBasisParams() explicitly - it is
/// bypassed by default(KtxBasisParams), array elements (new KtxBasisParams[n]),
/// and struct fields in other types, all of which leave StructSize at 0. Prefer
/// when you're not immediately assigning every field via an object
/// initializer.
///
public unsafe KtxBasisParams()
{
StructSize = (uint)sizeof(KtxBasisParams);
}
///
/// Creates a KtxBasisParams with StructSize correctly initialised. Preferred over
/// default(KtxBasisParams) or array/field initialization, which leave StructSize at 0.
///
public static KtxBasisParams Create() => new();
}