GPUCommandEncoder: copyTextureToBuffer() method

Khả dụng hạn chế

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

Phương thức copyTextureToBuffer() của giao diện GPUCommandEncoder mã hóa một lệnh sao chép dữ liệu từ một GPUTexture sang một GPUBuffer.

Cú pháp

js
copyTextureToBuffer(source, destination, copySize)

Thông số kỹ thuật

Thông số kỹ thuật
WebGPU
# dom-gpucommandencoder-copytexturetobuffer

Tương thích trình duyệt