files/en-us/web/api/webgl2renderingcontext/getinternalformatparameter/index.md
{{APIRef("WebGL")}}{{AvailableInWorkers}}
The WebGL2RenderingContext.getInternalformatParameter()
method of the WebGL 2 API returns
information about implementation-dependent support for internal formats.
getInternalformatParameter(target, internalformat, pname)
target
gl.RENDERBUFFER
internalformat
pname
gl.SAMPLES
internalformat in descending order.Depends on the requested information (as specified with pname). It is an
{{jsxref("Int32Array")}} if pname is gl.SAMPLES.
const samples = gl.getInternalformatParameter(
gl.RENDERBUFFER,
gl.RGBA8,
gl.SAMPLES,
);
{{Specifications}}
{{Compat}}