Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent Naming Conventions in Generated Code #273

Closed
code-with-parth opened this issue Jan 19, 2025 · 1 comment
Closed

Inconsistent Naming Conventions in Generated Code #273

code-with-parth opened this issue Jan 19, 2025 · 1 comment
Labels

Comments

@code-with-parth
Copy link

Description:
The translator occasionally produces output shaders with inconsistent or non-standard naming conventions for variables, functions, and other identifiers. This can lead to conflicts or reduce readability, especially when integrating the translated shaders into larger projects.

Steps to Reproduce:

  1. Write an HLSL shader with complex variable names or function declarations.

  2. Translate the shader using CrossGL.

  3. Review the generated output and observe inconsistencies in naming.

Expected Behavior:
The translator should adhere to a consistent and configurable naming convention that aligns with standard practices in shader development.

Actual Behavior:
The output contains inconsistent naming styles, such as mixed camelCase, snake_case, and PascalCase, or unnecessarily modified identifiers.

Environment Details:

OS: Windows 11

DirectX Version: 11

Python Version: 3.9

Additional Context:

This issue impacts maintainability and integration of the translated shaders.

A potential fix could include adding a configurable naming convention option in the translator settings.

@code-with-parth
Copy link
Author

@CrossGL-issue-bot assign me

@github-actions github-actions bot added the stale label Feb 3, 2025
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant