feat(meshopt): add typed enums and improve naming logic
Introduce SimplifyOptions and SimplifyVertexOptions enums for mesh simplification, replacing magic numbers with type-safe flags. Update MeshOptApi with strongly-typed wrapper methods. Refactor MeshletUtility to use new enums and nullable delegates, and fix stride calculation for pointer arithmetic. Rename NamingConventions.GetMethodName to GetName, update name removal logic to use "$TBare", and add ALL_CAPS style for constants. Update config files to match new naming conventions and add ALL_CAPS constant rule for meshopt. Refactor BindingParser and related classes to support constant member kind. Apply minor bug fixes and code style improvements throughout.
This commit is contained in:
@@ -276,7 +276,7 @@ public sealed class WrapperGeneratorEmitter
|
||||
{
|
||||
var func = routed.Function;
|
||||
var nameOpts = routed.Apply.Opts?.name;
|
||||
var methodName = naming.GetMethodName(func.Name, nameOpts, routed.TargetStructName);
|
||||
var methodName = naming.GetName(func.Name, nameOpts, routed.TargetStructName);
|
||||
|
||||
// Build the parameter plan: for each native parameter, determine the public type
|
||||
// and how to pass it to the Api call (applying remaps).
|
||||
|
||||
Reference in New Issue
Block a user