compute.buffer · function ·
CreateComputeBufferTransferPolicy
Create compute buffer transfer policy from the supplied values.
Describe compute buffer layouts, ownership, transfers, and validation.
external CreateComputeBufferTransferPolicy(text name, text source, text destination, text synchronization, bool cpuOracleRequired, text notes) returns computeBufferTransferPolicyStatus: source-declared
Parameters
text name- Supply name as text.
text source- Supply source as text.
text destination- Supply destination as text.
text synchronization- Supply synchronization as text.
bool cpuOracleRequired- Supply cpu oracle required as bool.
text notes- Supply notes as text.
Use CreateComputeBufferTransferPolicy
A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.
cpu · source-example · type checked
using compute.buffer
// Describe compute buffer layouts, ownership, transfers, and validation.
text name = "Nova"
text source = "example"
text destination = "destination"
text synchronization = "synchronization"
bool cpuOracleRequired = true
text notes = "notes"
computeBufferTransferPolicy result = CreateComputeBufferTransferPolicy(name, source, destination, synchronization, cpuOracleRequired, notes)
Console.Log("Inspect result in your debugger")
project.mech
manifestVersion = "2"
package = "api.example.compute_buffer__createcomputebuffertransferpolicy"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"
[app]
kind = "headless"
[[dependencies]]
package = "compute.buffer"
version = "0.1.0"
path = "../../../yeho/packages/compute/buffer"
Notes and source
Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.
yeho/packages/compute/buffer/buffer.yh:69