Skip to content

Commit

Permalink
feat(webgl): update/add array type UniformDecl's
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Apr 6, 2019
1 parent 19b66a8 commit 1f19196
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions packages/webgl/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,15 @@ export type UniformDecl =
| [GLSL.mat2, UniformDefault<GLMat2>]
| [GLSL.mat3, UniformDefault<GLMat3>]
| [GLSL.mat4, UniformDefault<GLMat4>]
| [GLSL.bool_array, number, UniformDefault<GLIntVec>]
| [GLSL.int_array, number, UniformDefault<GLIntVec>]
| [GLSL.uint_array, number, UniformDefault<GLUintVec>]
| [GLSL.float_array, number, UniformDefault<GLVec>]
| [GLSL.vec2_array, number, UniformDefault<GLVec>]
| [GLSL.vec3_array, number, UniformDefault<GLVec>]
| [GLSL.vec4_array, number, UniformDefault<GLVec>];
| [GLSL.bool_array, number, UniformDefault<GLIntVec>?]
| [GLSL.int_array, number, UniformDefault<GLIntVec>?]
| [GLSL.uint_array, number, UniformDefault<GLUintVec>?]
| [GLSL.float_array, number, UniformDefault<GLVec>?]
| [GLSL.vec2_array, number, UniformDefault<GLVec>?]
| [GLSL.vec3_array, number, UniformDefault<GLVec>?]
| [GLSL.vec4_array, number, UniformDefault<GLVec>?]
| [GLSL.sampler2D_array, number, UniformDefault<number>?]
| [GLSL.samplerCube_array, number, UniformDefault<number>?];

/**
* Object of attribute types w/ optional locations.
Expand Down

0 comments on commit 1f19196

Please sign in to comment.