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

Method ComputeCopyFromGPU

vgpu/compute.go:129–131  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

127// in the Storage buffer memory from GPU to CPU, in one call.
128// Use SyncRegValueIndexFromCPU to get the regions.
129func (sy *System) ComputeCopyFromGPU(cmd vk.CommandBuffer, regs ...MemReg) {
130 sy.Mem.CmdTransferStorageRegsFromGPU(cmd, regs)
131}
132
133// ComputeWaitMemWriteRead records pipeline barrier ensuring
134// global memory writes from the shader have completed and are ready to read

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected