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

New options for XShaderCompiler #39

Open
LukasBanana opened this issue Aug 30, 2018 · 0 comments
Open

New options for XShaderCompiler #39

LukasBanana opened this issue Aug 30, 2018 · 0 comments

Comments

@LukasBanana
Copy link

The XShaderCompiler (Xsc) provides lots of translation options. Formatting options are not really necessary for this online service, but here are some options that would be great to see on the shader-playground webservice:

  • InputFormat: Xsc makes several differences between HLSL3, HLSL4+, and Cg. The command line option for this is -Vin (e.g. xsc -Vin HLSL3). Some input formats are only in an experimental state (like the GLSL parser) so I would recommand to only provide HLSL3, HLSL4, HLSL5, and Cg as Input options.
  • More options in OutputFormat: Xsc supports separation of textures and samplers for VKSL (GLSL for Vulkan). Maybe the options VKSL and ESSL (GLSL for OpenGL ES) could be added to the OutputFormat drop-down menu. Otherwise, maybe only the GLSL Version menu could be extended to the following values: VKSL, VKSL450, ESSL, ESSL100, ESSL300, ESSL310, ESSL320.
  • Warnings: I'm a big fan of error and warning reports by the compiler that helps you to improve your code and also helps you understand how the compiler interprets the input code. A check-box that enables or disables all warnings would be great. The command line option for this is xsc -Wall.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant