Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/shader_canvas/core/webgl_buffers/buffer_data.ts>BufferDataTarget

A rendering engine where you can write WebGL 2.0 shaders using custom tags.
Latest
type alias BufferDataTarget
import { type BufferDataTarget } from "https://deno.land/x/shader_canvas@v1.1.1/core/webgl_buffers/buffer_data.ts";

This type is used to define the possible values that can go in the target attribute.

They follow the possible values for the gl.bufferData target argument.

definition:
| "ARRAY_BUFFER"
| "ELEMENT_ARRAY_BUFFER"
| "COPY_READ_BUFFER"
| "COPY_WRITE_BUFFER"
| "TRANSFORM_FEEDBACK_BUFFER"
| "UNIFORM_BUFFER"
| "PIXEL_PACK_BUFFER"
| "PIXEL_UNPACK_BUFFER"