You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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:
-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 provideHLSL3
,HLSL4
,HLSL5
, andCg
as Input options.VKSL
andESSL
(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
.xsc -Wall
.The text was updated successfully, but these errors were encountered: