import { TextureCompat } from "../textures/index.js";
export class WebGLRenderTargetCompat {
    width;
    height;
    samples;
    type = "WebGLRenderTarget";
    texture = new TextureCompat();
    depthTexture = new TextureCompat();
    constructor(width, height, samples = 0) {
        this.width = width;
        this.height = height;
        this.samples = samples;
    }
    setSize(width, height) {
        if (width <= 0 || height <= 0)
            throw new Error("Render target size must be positive.");
        this.width = width;
        this.height = height;
    }
}
export class WebGLMultipleRenderTargetsCompat extends WebGLRenderTargetCompat {
    type = "WebGLMultipleRenderTargets";
    textures;
    constructor(width, height, count) {
        super(width, height);
        this.textures = Array.from({ length: count }, () => new TextureCompat());
    }
}
//# sourceMappingURL=index.js.map