Readonly
lengthReadonly
lineThe line number in the shader code the
message corresponds to. Value is one-based, such that a lineNum of
1
indicates the first line of the shader code. Lines are
delimited by line breaks.
If the message corresponds to a substring this points to
the line on which the substring begins. Must be 0
if the message
does not correspond to any specific point in the shader code.
Readonly
lineThe offset, in UTF-16 code units, from the beginning of line lineNum
of the shader code to the point or beginning of the substring
that the message corresponds to. Value is one-based, such that a
linePos of 1
indicates the first code unit of the line.
If message corresponds to a substring this points to the
first UTF-16 code unit of the substring. Must be 0
if the message
does not correspond to any specific point in the shader code.
Readonly
messageThe human-readable, localizable text for this compilation message. Note: The message should follow the best practices for language and direction information. This includes making use of any future standards which may emerge regarding the reporting of string language and direction metadata.
Editorial note: At the time of this writing, no language/direction recommendation is available that provides compatibility and consistency with legacy APIs, but when there is, adopt it formally.
Readonly
offsetReadonly
typeThe severity level of the message. If the type is GPUCompilationMessageType#"error", it corresponds to a shader-creation error.
Generated using TypeDoc
The number of UTF-16 code units in the substring that message corresponds to. If the message does not correspond with a substring then length must be 0.