MCPcopy Create free account
hub / github.com/cogentcore/core / ComputeCopyToGPU

Method ComputeCopyToGPU

vgpu/compute.go:122–124  ·  view source on GitHub ↗

ComputeCopyToGPU records command to copy given regions in the Storage buffer memory from CPU to GPU, in one call. Use SyncRegValueIndexFromCPU to get the regions.

(cmd vk.CommandBuffer, regs ...MemReg)

Source from the content-addressed store, hash-verified

120// in the Storage buffer memory from CPU to GPU, in one call.
121// Use SyncRegValueIndexFromCPU to get the regions.
122func (sy *System) ComputeCopyToGPU(cmd vk.CommandBuffer, regs ...MemReg) {
123 sy.Mem.CmdTransferStorageRegsToGPU(cmd, regs)
124}
125
126// ComputeCopyFromGPU records command to copy given regions
127// in the Storage buffer memory from GPU to CPU, in one call.

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected