import { native_ } from './Constants';
import { GPUBindGroupLayout } from './GPUBindGroupLayout';
export class GPURenderPipeline {
    get label() {
        return this[native_]?.label ?? '';
    }
    getBindGroupLayout(index) {
        return GPUBindGroupLayout.fromNative(this[native_].getBindGroupLayout(index));
    }
    static fromNative(pipeline) {
        if (pipeline) {
            const ret = new GPURenderPipeline();
            ret[native_] = pipeline;
            return ret;
        }
        return null;
    }
}
//# sourceMappingURL=GPURenderPipeline.js.map