namespace Brutal.KtxApi;
public partial struct KtxAstcParams
{
///
/// Initialises the StructSize field to the correct value.
///
///
/// This constructor only runs when you call new KtxAstcParams() explicitly - it is
/// bypassed by default(KtxAstcParams), array elements (new KtxAstcParams[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 KtxAstcParams()
{
StructSize = (uint)sizeof(KtxAstcParams);
}
///
/// Creates a KtxAstcParams with StructSize correctly initialised. Preferred over
/// default(KtxAstcParams) or array/field initialization, which leave StructSize at 0.
///
public static KtxAstcParams Create() => new();
}