Skip to content

Don't emit redundant creation methods #807

@madsmtm

Description

@madsmtm

Methods such as MTLAccelerationStructurePassDescriptor::accelerationStructurePassDescriptor() are redundant and less efficient than the alternative MTLAccelerationStructurePassDescriptor::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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frameworkAffects the framework crates and the translator for themenhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions