// luma.gl // SPDX-License-Identifier: MIT // SPDX-FileCopyrightText: Copyright (c) vis.gl contributors import type {ShaderPass} from '@luma.gl/shadertools'; export const copyPass = { name: 'advancedCopy', source: /* wgsl */ `\ fn advancedCopy_sampleColor( sourceTexture: texture_2d, sourceTextureSampler: sampler, texSize: vec2f, texCoord: vec2f ) -> vec4f { return textureSample(sourceTexture, sourceTextureSampler, texCoord); }`, passes: [{sampler: true}] } as const satisfies ShaderPass;