UNPKG

wggl

Version:

A friendly interface to shaders

28 lines (27 loc) 1.08 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var TexturePointer; (function (TexturePointer) { TexturePointer["TEXTURE"] = "TEXTURE"; TexturePointer["TEXTURE_2D"] = "TEXTURE_2D"; // TODO: Incomplete list // https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Constants#Textures })(TexturePointer = exports.TexturePointer || (exports.TexturePointer = {})); var BufferAttachment; (function (BufferAttachment) { BufferAttachment["COLOR_ATTACHMENT0"] = "COLOR_ATTACHMENT0"; // TODO: Incomplete list // https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Constants#Draw_buffers })(BufferAttachment = exports.BufferAttachment || (exports.BufferAttachment = {})); var Buffer = /** @class */ (function () { function Buffer(gl, texture, target, buffer, attachment, level) { this.gl = gl; this.texture = texture; this.target = target; this.buffer = buffer; this.attachment = attachment; this.level = level; } return Buffer; }()); exports.Buffer = Buffer;