public static bool glGetShaderCompiledStatus(GFX.GfxShader shader) { var isCompiled = 0; glGetShaderiv(shader.Id, Def.ShaderParameter.CompileStatus, ref isCompiled); return(isCompiled == 1); }
public static string glGetShaderCompiledInformation(GFX.GfxShader shader) { var len = 0; glGetShaderiv(shader.Id, Def.ShaderParameter.InfoLogLength, ref len); if (len > 1) { var bs = new byte[len]; glGetShaderInfoLog(shader.Id, len, null, bs); return(System.Text.Encoding.ASCII.GetString(bs)); } return(string.Empty); }