Archived
prefill: key recordings by live split geometry
This commit is contained in:
1 parent
61e275e30f
commit
ded64c0bd3
16 files changed
+204
-16
No files matched your search
@@ -217,6 +217,8 @@ int Registry::commit_(Staged& s, int order) {
|
||||
p.arch_declare = dl_fn<int (*)(RadBuilder*, const RadModelMeta*, const RadBuildCtx*)>(
|
||||
s.handle, "rad_arch_declare");
|
||||
p.arch_step = dl_fn<void (*)(RadCtx*, const RadBatch*)>(s.handle, "rad_arch_step");
|
||||
p.arch_pass_key = dl_fn<uint64_t (*)(RadCtx*, const RadBatch*, const int32_t*)>(
|
||||
s.handle, "rad_arch_pass_key");
|
||||
if (!id_fn || !p.arch_declare || !p.arch_step) {
|
||||
err_("architecture plugin '%s' is missing rad_arch_id, rad_arch_declare or "
|
||||
"rad_arch_step", p.name.c_str());
|
||||
|
||||
@@ -82,6 +82,7 @@ struct Plugin {
|
||||
std::string arch_quant;
|
||||
int (*arch_declare)(RadBuilder*, const RadModelMeta*, const RadBuildCtx*) = nullptr;
|
||||
void (*arch_step)(RadCtx*, const RadBatch*) = nullptr;
|
||||
uint64_t (*arch_pass_key)(RadCtx*, const RadBatch*, const int32_t*) = nullptr;
|
||||
/* Optional (rad_builder.h); null means every question answers zero. Asked before declare, so
|
||||
* model facts that are inputs to declaration are still read by the plugin, not the core. */
|
||||
int (*arch_probe)(const RadModelMeta*, RadArchProbe*) = nullptr;
|
||||
|
||||
Reference in new issue
Block a user