ios - Swift glGetProgramInfoLog -


Does anyone know about implementing it fast? Full function call

  glGetProgramInfoLog (& lt; # Program: GLuint # & gt;, & lt; #bufsize: GLsizei # & gt;, & lt; #length: UnsafePoointer & lt; GLsizei >> & Gt; # & gt; & lt; #infolog: unsafepointter & lt; gLchar & gt; # & gt;)  

I'm not sure buffer size, near Android Also, these parameters are not

You can use the following code to look for any one answer :

Programs where program = glCreate program ()

WIFT 2

  var message = [CChar] (count: 256, (repetition): Caesar (0) var length = GLCC (0) glagprogram implicit (program, 256,    [Caesar] (Repetition: Caesar (0), Count: 256) Var Length = GLCC (0) Glagprograms Infolag (Program, 256, & amp; ; Length, & amp; Message) var s = String.init (utf8String: message)! If (S. Chetters coat> 0) {Print ("Shader Collection Log: \ (S)")} // Only print if the log is not empty  

Comments