{"version":3,"file":"GlTexture.mjs","sources":["../../../../../src/rendering/renderers/gl/texture/GlTexture.ts"],"sourcesContent":["import { GL_FORMATS, GL_TARGETS, GL_TYPES } from './const';\n\n/**\n * Internal texture for WebGL context\n * @memberof rendering\n * @ignore\n */\nexport class GlTexture\n{\n    public target: GL_TARGETS = GL_TARGETS.TEXTURE_2D;\n\n    /** The WebGL texture. */\n    public texture: WebGLTexture;\n\n    /** Width of texture that was used in texImage2D. */\n    public width: number;\n\n    /** Height of texture that was used in texImage2D. */\n    public height: number;\n\n    /** Whether mip levels has to be generated. */\n    public mipmap: boolean;\n\n    /** Type copied from texture source. */\n    public type: number;\n\n    /** Type copied from texture source. */\n    public internalFormat: number;\n\n    /** Type of sampler corresponding to this texture. See {@link SAMPLER_TYPES} */\n    public samplerType: number;\n\n    public format: GL_FORMATS;\n\n    constructor(texture: WebGLTexture)\n    {\n        this.texture = texture;\n        this.width = -1;\n        this.height = -1;\n        this.type = GL_TYPES.UNSIGNED_BYTE;\n        this.internalFormat = GL_FORMATS.RGBA;\n        this.format = GL_FORMATS.RGBA;\n        this.samplerType = 0;\n    }\n}\n"],"names":[],"mappings":";;;AAOO,MAAM,SACb,CAAA;AAAA,EA0BI,YAAY,OACZ,EAAA;AA1BA,IAAA,IAAA,CAAO,SAAqB,UAAW,CAAA,UAAA,CAAA;AA2BnC,IAAA,IAAA,CAAK,OAAU,GAAA,OAAA,CAAA;AACf,IAAA,IAAA,CAAK,KAAQ,GAAA,CAAA,CAAA,CAAA;AACb,IAAA,IAAA,CAAK,MAAS,GAAA,CAAA,CAAA,CAAA;AACd,IAAA,IAAA,CAAK,OAAO,QAAS,CAAA,aAAA,CAAA;AACrB,IAAA,IAAA,CAAK,iBAAiB,UAAW,CAAA,IAAA,CAAA;AACjC,IAAA,IAAA,CAAK,SAAS,UAAW,CAAA,IAAA,CAAA;AACzB,IAAA,IAAA,CAAK,WAAc,GAAA,CAAA,CAAA;AAAA,GACvB;AACJ;;;;"}