GPUCommandEncoder: copyBufferToTexture() 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 copyBufferToTexture() của giao diện GPUCommandEncoder mã hóa một lệnh sao chép dữ liệu từ một GPUBuffer sang một GPUTexture.
Cú pháp
js
copyBufferToTexture(source, destination, copySize)
Tham số
source-
Đối tượng mô tả buffer nguồn và bố cục dữ liệu của nó.
destination-
Đối tượng mô tả texture đích.
copySize-
Kích thước vùng được sao chép.
Thông số kỹ thuật
| Thông số kỹ thuật |
|---|
| WebGPU> # dom-gpucommandencoder-copybuffertotexture> |