Type alias IGLBufferUsage

IGLBufferUsage: "STATIC_DRAW" | "DYNAMIC_DRAW" | "STREAM_DRAW" | "STATIC_READ" | "DYNAMIC_READ" | "STREAM_READ" | "STATIC_COPY" | "DYNAMIC_COPY" | "STREAM_COPY"

A GLenum specifying the intended usage pattern of the data store for optimization purposes. Possible values:

  • gl.STATIC_DRAW: The contents are intended to be specified once by the application, and used many times as the source for WebGL drawing and image specification commands.
  • gl.DYNAMIC_DRAW: The contents are intended to be respecified repeatedly by the application, and used many times as the source for WebGL drawing and image specification commands.
  • gl.STREAM_DRAW: The contents are intended to be specified once by the application, and used at most a few times as the source for WebGL drawing and image specification commands.

When using a WebGL 2 context, the following values are available additionally:

  • gl.STATIC_READ The contents are intended to be specified once by reading data from WebGL, and queried many times by the application.
  • gl.DYNAMIC_READ The contents are intended to be respecified repeatedly by reading data from WebGL, and queried many times by the application.
  • gl.STREAM_READ The contents are intended to be specified once by reading data from WebGL, and queried at most a few times by the application
  • gl.STATIC_COPY The contents are intended to be specified once by reading data from WebGL, and used many times as the source for WebGL drawing and image specification commands.
  • gl.DYNAMIC_COPY The contents are intended to be respecified repeatedly by reading data from WebGL, and used many times as the source for WebGL drawing and image specification commands.
  • gl.STREAM_COPY The contents are intended to be specified once by reading data from WebGL, and used at most a few times as the source for WebGL drawing and image specification commands.

Generated using TypeDoc