We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
opt_locations
Hi.
As of now there is no possible way to pass opt_locations from typescript for createProgramInfo and other similar functions.
createProgramInfo
At the moment of writing, createProgramInfo is defined as
export function createProgramInfo(gl: WebGLRenderingContext, shaderSources: string[], opt_attribs?: ProgramOptions | string[] | ErrorCallback, opt_errorCallback?: ErrorCallback): ProgramInfo;
Thus it has 4 parameters: gl, shaderSources, opt_attribs, opt_errorCallback
gl
shaderSources
opt_attribs
opt_errorCallback
While in reality, the js function takes 5 parameters: gl, shaderSources, opt_attribs, opt_locations, opt_errorCallback
js
function createProgramInfo(gl, shaderSources, opt_attribs, opt_locations, opt_errorCallback) {
The text was updated successfully, but these errors were encountered:
thanks for the bug report. Fixed in v5.5.4 I think
Sorry, something went wrong.
b489966
No branches or pull requests
Hi.
As of now there is no possible way to pass
opt_locations
from typescript forcreateProgramInfo
and other similar functions.At the moment of writing,
createProgramInfo
is defined asThus it has 4 parameters:
gl
,shaderSources
,opt_attribs
,opt_errorCallback
While in reality, the
js
function takes 5 parameters:gl
,shaderSources
,opt_attribs
,opt_locations
,opt_errorCallback
The text was updated successfully, but these errors were encountered: