Versions in this module Expand all Collapse all v1 v1.0.2 Jul 5, 2025 v1.0.1 Jun 21, 2025 v1.0.0 Jun 20, 2025 Changes in this version + type JSONRPCRequest struct + ID int + JsonRPC string + Method string + Params TranslateRequestParams + type OutputFormat string + const OutputFormatESSL + const OutputFormatGLSL + const OutputFormatGLSL130 + const OutputFormatGLSL140 + const OutputFormatGLSL150 + const OutputFormatGLSL330 + const OutputFormatGLSL400 + const OutputFormatGLSL410 + const OutputFormatGLSL420 + const OutputFormatGLSL430 + const OutputFormatGLSL440 + const OutputFormatGLSL450 + type Shader struct + Code string + Variables map[string]ShaderVariable + type ShaderSpec string + const ShaderSpecGLES2 + const ShaderSpecGLES3 + const ShaderSpecGLES31 + const ShaderSpecGLES32 + const ShaderSpecWebGL + const ShaderSpecWebGL2 + const ShaderSpecWebGL3 + const ShaderSpecWebGLN + type ShaderTranslator struct + func NewShaderTranslator(ctx context.Context) (*ShaderTranslator, error) + func (st *ShaderTranslator) Close() error + func (st *ShaderTranslator) TranslateShader(shaderCode string, shaderType string, spec ShaderSpec, output OutputFormat) (*Shader, error) + type ShaderVariable struct + Active bool + Category string + IsRowMajor bool + MappedName string + Name string + Precision uint + StaticUse bool + Type uint + type TranslateRequestParams struct + CompileOptions map[string]bool + Output OutputFormat + PrintActiveVariables bool + ShaderCodeBase64 string + ShaderType string + Spec ShaderSpec