bindSampler method

void bindSampler(
  1. GLuint unit,
  2. WebGLSampler? sampler
)

The WebGL2RenderingContext.bindSampler() method of the WebGL 2 API binds a passed WebGLSampler object to the texture unit at the passed index.

Implementation

external void bindSampler(
  GLuint unit,
  WebGLSampler? sampler,
);