-
-
Notifications
You must be signed in to change notification settings - Fork 76
Don't emit redundant creation methods #807
Copy link
Copy link
Open
Labels
A-frameworkAffects the framework crates and the translator for themAffects the framework crates and the translator for themenhancementNew feature or requestNew feature or request
Milestone
Description
Metadata
Metadata
Assignees
Labels
A-frameworkAffects the framework crates and the translator for themAffects the framework crates and the translator for themenhancementNew feature or requestNew feature or request
Methods such as
MTLAccelerationStructurePassDescriptor::accelerationStructurePassDescriptor()are redundant and less efficient than the alternativeMTLAccelerationStructurePassDescriptor::new(). We should avoid emitting them (Swift seems to do this too).This probably requires a better understanding of method names (e.g. we have to figure out that
"MTLAccelerationStructurePassDescriptor"is equal to"accelerationStructurePassDescriptor"except for the prefix).