{"id":"compute.accelerator--acceleratorAdapterContract","name":"acceleratorAdapterContract","owner":"yeho","package":"compute.accelerator","kind":"thing","signature":"external thing acceleratorAdapterContract","description":"A accelerator adapter contract record carrying schema, backend, compileTarget, resourceAbi, submission, and related state.","context":"Describe accelerator capabilities and explicit placement boundaries.","parameters":[],"returns":"void","members":[{"name":"schema","kind":"field","type":"text","description":"Stores schema as text.","signature":"text schema","tags":["thing","field","compute.accelerator"],"updated":"2026-09-09"},{"name":"backend","kind":"field","type":"text","description":"Stores backend as text.","signature":"text backend","tags":["thing","field","compute.accelerator"],"updated":"2026-09-09"},{"name":"compileTarget","kind":"field","type":"text","description":"Stores compile target as text.","signature":"text compileTarget","tags":["thing","field","compute.accelerator"],"updated":"2026-09-09"},{"name":"resourceAbi","kind":"field","type":"text","description":"Stores resource abi as text.","signature":"text resourceAbi","tags":["thing","field","compute.accelerator"],"updated":"2026-09-09"},{"name":"submission","kind":"field","type":"text","description":"Stores submission as text.","signature":"text submission","tags":["thing","field","compute.accelerator"],"updated":"2026-09-09"},{"name":"timing","kind":"field","type":"text","description":"Stores timing as text.","signature":"text timing","tags":["thing","field","compute.accelerator"],"updated":"2026-09-09"},{"name":"diagnostics","kind":"field","type":"text","description":"Stores diagnostics as text.","signature":"text diagnostics","tags":["thing","field","compute.accelerator"],"updated":"2026-09-09"},{"name":"fallback","kind":"field","type":"text","description":"Stores fallback as text.","signature":"text fallback","tags":["thing","field","compute.accelerator"],"updated":"2026-09-09"},{"name":"acceleratorAdapterContract","kind":"constructor","parameters":[{"name":"schema","type":"text","description":"Schema."},{"name":"backend","type":"text","description":"Backend."},{"name":"compileTarget","type":"text","description":"Compile target."},{"name":"resourceAbi","type":"text","description":"Resource abi."},{"name":"submission","type":"text","description":"Submission."},{"name":"timing","type":"text","description":"Timing."},{"name":"diagnostics","type":"text","description":"Diagnostics."},{"name":"fallback","type":"text","description":"Fallback."}],"returns":"void","signature":"acceleratorAdapterContract(text schema, text backend, text compileTarget, text resourceAbi, text submission, text timing, text diagnostics, text fallback)","description":"Accelerator adapter contract.","tags":["thing","constructor","compute.accelerator"],"updated":"2026-09-09"},{"name":"IsReferenceVulkanV1","kind":"method","parameters":[],"returns":"bool","signature":"IsReferenceVulkanV1() returns bool","description":"Is reference vulkan v1.","tags":["thing","method","compute.accelerator"],"exampleId":"method-IsReferenceVulkanV1-9","updated":"2026-09-09"},{"name":"Describe","kind":"method","parameters":[],"returns":"text","signature":"Describe() returns text","description":"Describe.","tags":["thing","method","compute.accelerator"],"exampleId":"method-Describe-10","updated":"2026-09-09"}],"tags":["accelerator","compute","compute.accelerator","cpu","method","source-example","thing","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/compute/accelerator/accelerator.yh","line":1,"sha256":"4a5575b3e69481d90c2c7322dabea16851f23cdf654342127c36726c1475a86a"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use acceleratorAdapterContract","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using compute.accelerator\n\n// Describe accelerator capabilities and explicit placement boundaries.\nacceleratorAdapterContract sample = acceleratorAdapterContract(\"schema\", \"cpu-oracle\", \"compile Target\", \"resource Abi\", \"submission\", \"timing\", \"diagnostics\", \"fallback\")\nConsole.Log(Text.From(sample.schema))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_accelerator__acceleratoradaptercontract\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"compute.accelerator\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/accelerator\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"eeef1ff51251694fe8d0acff3deb86bbb2e01a45c71595288effa482d6376098","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-IsReferenceVulkanV1-9","title":"acceleratorAdapterContract.IsReferenceVulkanV1","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.accelerator\n\n// Is reference vulkan v1.\nacceleratorAdapterContract instance = acceleratorAdapterContract(\"schema\", \"cpu-oracle\", \"compile Target\", \"resource Abi\", \"submission\", \"timing\", \"diagnostics\", \"fallback\")\nbool result = instance.IsReferenceVulkanV1()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_accelerator__acceleratoradaptercontract\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"compute.accelerator\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/accelerator\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"4531b9916eb68eec1b29c6212b0984d026666c62dcd34e89e7f18f3d55e63a59","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-10","title":"acceleratorAdapterContract.Describe","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.accelerator\n\n// Describe.\nacceleratorAdapterContract instance = acceleratorAdapterContract(\"schema\", \"cpu-oracle\", \"compile Target\", \"resource Abi\", \"submission\", \"timing\", \"diagnostics\", \"fallback\")\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_accelerator__acceleratoradaptercontract\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"compute.accelerator\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/accelerator\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"bb0fd6606f076a2189bb0e90daf1d994c27b6d0e29758ab70f2af6b5b3648a87","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["schema","backend","compileTarget","resourceAbi","submission","timing","diagnostics","fallback","acceleratorAdapterContract","IsReferenceVulkanV1","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=compute.accelerator--acceleratorAdapterContract","json":"https://demonhunterlabs.com/reference/items/compute.accelerator--acceleratorAdapterContract.json","markdown":"https://demonhunterlabs.com/reference/text/compute.accelerator--acceleratorAdapterContract.md"}
