import '../../../../globals.js';
// Copyright 2023-2024, University of Colorado Boulder
/**
 * TODO: doc
 *
 * @author Jonathan Olson <jonathan.olson@colorado.edu>
 */
import { alpenglow, Resource } from '../../imports.js';
export default class TextureViewResource extends Resource {
    constructor(textureView) {
        super(textureView);
        this.textureView = textureView;
    }
    getBindGroupEntry(binding) {
        return {
            binding: binding.location.bindingIndex,
            resource: this.textureView
        };
    }
    toDebugString() {
        return `TextureViewResource[#${this.id}${this.textureView.label ? ` label:${this.textureView.label}` : ''}]`;
    }
}
alpenglow.register('TextureViewResource', TextureViewResource);
//# sourceMappingURL=TextureViewResource.js.map