glsl-token-assignments

WebJar for glsl-token-assignments

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

glsl-token-assignments
Last Version

Last Version

2.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

glsl-token-assignments
WebJar for glsl-token-assignments
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/glslify/glsl-token-assignments

Download glsl-token-assignments

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/glsl-token-assignments/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>glsl-token-assignments</artifactId>
    <version>2.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/glsl-token-assignments/
implementation 'org.webjars.npm:glsl-token-assignments:2.0.2'
// https://jarcasting.com/artifacts/org.webjars.npm/glsl-token-assignments/
implementation ("org.webjars.npm:glsl-token-assignments:2.0.2")
'org.webjars.npm:glsl-token-assignments:jar:2.0.2'
<dependency org="org.webjars.npm" name="glsl-token-assignments" rev="2.0.2">
  <artifact name="glsl-token-assignments" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='glsl-token-assignments', version='2.0.2')
)
libraryDependencies += "org.webjars.npm" % "glsl-token-assignments" % "2.0.2"
[org.webjars.npm/glsl-token-assignments "2.0.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

glsl-token-assignments

experimental

Take an array of GLSL tokens and determine which tokens are either assignments or variable declarations.

Usage

NPM

assignments(tokens)

Takes an array of GLSL tokens from glsl-tokenizer and sets the following boolean values for each ident token, i.e. any variable names:

token.assignment

If the value of the variable is being changed here.

token.declaration

If a new variable is being defined here for this scope.

token.structMember

If this token is specifying a new struct member, e.g.:

struct X {
  float member1;
  float member2;
};

The tokens array will be modified in-place.

License

MIT. See LICENSE.md for details.

org.webjars.npm

Versions

Version
2.0.2