[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] getShaderInfoLog/getProgramInfoLog format specification



Suggesting to change the 6th paragraph in section 6.1 of the OpenGL ES specification:

"The info log is typically only useful during application development and an
application should not expect different GL implementations to produce identical
info logs."

With:

"The info log is typically only useful during application development an application can expect it to be formatted according to error info log grammar in appendix E"

Appendix E

Error info log grammar.

The error info logs retrieved from getShaderInfoLog(COMPILE_STATUS) and getProgramInfoLog(LINK_STATUS) have to conform to the following grammar:

<log>                  ::= <error-list>
<error-list>           ::= <error> { <error> }
<error>                ::= <source-related-error> | <general-error>
<source-related-error> ::= "SOURCE-" <error-type> ": File: " <file-number> " Line: " <line-number> ": "  <error-message> "\n"
<general-error>        ::= <error-type> ": " <error-message> "\n"
<error-type>           ::= "ERROR" | "WARNING"
<error-message>        ::= <string>
<file-number>          ::= <number>
<line-number>          ::= <number>
<string>               ::= <char> { <char> }
<char>                 ::= 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | x | y | z | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | ! | " | # | $ | % | & | ' | ( | ) | * | + | , | - | . | / | : | ; | < | = | > | ? | @ | [ | \ | ] | ^ | _ | ` | { | "|" | } | ~ | " " | \t
<number>               ::= <digit> { <digit> }
<digit>                ::= 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9