private string GetRGAShaderType(GLSLShaderType eShaderType) { string sType = ""; switch (eShaderType) { default: return(""); case GLSLShaderType.VERTEX: sType = "vert"; break; case GLSLShaderType.FRAGMENT: sType = "frag"; break; case GLSLShaderType.GEOMETRY: sType = "geom"; break; case GLSLShaderType.TESS_CONTROL: sType = "tesc"; break; case GLSLShaderType.TESS_EVALUATION: sType = "tese"; break; case GLSLShaderType.COMPUTE: sType = "comp"; break; } return(sType); }
public CodeShader(string sourceCode, GLSLShaderType shaderType) { this.SourceCode = sourceCode; this.ShaderType = shaderType; }