Skip to content

Commit

Permalink
Fix docs for UniformData, UniformBlockSpec, ProgramInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Sep 24, 2021
1 parent cfabc65 commit 38a6009
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/programs.js
Original file line number Diff line number Diff line change
Expand Up @@ -1014,6 +1014,7 @@ function createTransformFeedback(gl, programInfo, bufferInfo) {

/**
* @typedef {Object} UniformData
* @property {string} name The name of the uniform
* @property {number} type The WebGL type enum for this uniform
* @property {number} size The number of elements for this uniform
* @property {number} blockNdx The block index this uniform appears in
Expand All @@ -1040,7 +1041,7 @@ function createTransformFeedback(gl, programInfo, bufferInfo) {
* UniformBlockObjects for a given program
*
* @typedef {Object} UniformBlockSpec
* @property {Object.<string, module:twgl.BlockSpec> blockSpecs The BlockSpec for each block by block name
* @property {Object.<string, module:twgl.BlockSpec>} blockSpecs The BlockSpec for each block by block name
* @property {UniformData[]} uniformData An array of data for each uniform by uniform index.
* @memberOf module:twgl
*/
Expand Down Expand Up @@ -1643,7 +1644,7 @@ function setBuffersAndAttributes(gl, programInfo, buffers) {
* @property {WebGLProgram} program A shader program
* @property {Object<string, function>} uniformSetters object of setters as returned from createUniformSetters,
* @property {Object<string, function>} attribSetters object of setters as returned from createAttribSetters,
* @property {module:twgl.UniformBlockSpec} [uniformBlockSpace] a uniform block spec for making UniformBlockInfos with createUniformBlockInfo etc..
* @property {module:twgl.UniformBlockSpec} [uniformBlockSpec] a uniform block spec for making UniformBlockInfos with createUniformBlockInfo etc..
* @property {Object<string, module:twgl.TransformFeedbackInfo>} [transformFeedbackInfo] info for transform feedbacks
* @memberOf module:twgl
*/
Expand Down

0 comments on commit 38a6009

Please sign in to comment.