You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a TSL code is translated into GLSL or WGSL some identifiers may break the code, because they collide with keywords or reserved words. For example, a TSL function named fn triggers the following error message:
Error while parsing WGSL: :17:4 error: expected identifier for function declaration
fn fn ( ) -> f32 {
^^
Description
When a TSL code is translated into GLSL or WGSL some identifiers may break the code, because they collide with keywords or reserved words. For example, a TSL function named
fn
triggers the following error message:because
fn
is a keyword in WGSL.Possible solutions:
fn
may becomefn_tsl
Reproduction steps
Example with WGSL:
WGSL
Example with GLSL:
GLSL
main
Code
See "Reproduction steps"
Live example
See "Reproduction steps"
Screenshots
Version
r165
Device
Desktop
Browser
Chrome
OS
Windows
The text was updated successfully, but these errors were encountered: