export class TextureAttachment {
    /**
     * @template T
     * @param {function(T):Texture} read
     * @param {function(T, Texture)} write
     * @param {string} [name]
     * @param {number} [uv_index]
     */
    constructor({ read, write, name, uv_index = 0 }) {
        /**
         *
         * @type {string}
         */
        this.name = name;

        this.read = read;
        this.write = write;

        /**
         *
         * @type {number}
         */
        this.uv_index = uv_index;
    }
}
