Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
getBufferParameter
Collapse the table of content
Expand the table of content

getBufferParameter method

Returns the type of a parameter for a given buffer.

IE11

 

Syntax

var retVal = WebGLRenderingContext.getBufferParameter(target, pname);

Parameters

target [in]

Type: Number

One of the following:

gl.ARRAY_BUFFER
gl.ELEMENT_ARRAY_BUFFER
pname [in]

Type: Number

One of the following:

gl.BUFFER_SIZE
gl.BUFFER_USAGE

Return value

Type: any

gl.BUFFER_SIZEgl.BUFFER_USAGE

Remarks

WebGL errorDescription
gl.INVALID_ENUMtarget or value are not acceptable values
gl.INVALID_OPERATIONThe reserved buffer object name 0 is bound to target.

 

See also

WebGLRenderingContext
bindBuffer
bufferData

 

 

Show:
© 2015 Microsoft