MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / eval

Method eval

modules/experimental/daScript/daScript/src/ctx.cpp:42–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42Register ContextImpl::eval(SimFunctionId func, Register* args, Sequence* generated) SKR_NOEXCEPT
43{
44 static_assert(sizeof(skr_float4_t) == sizeof(vec4f), "size not match");
45 static_assert(alignof(skr_float4_t) == alignof(vec4f), "align not match");
46
47 static_assert(sizeof(::das::Sequence) == sizeof(Sequence), "size not match");
48 static_assert(alignof(::das::Sequence) == alignof(Sequence), "align not match");
49
50 auto res = ctx.eval((const SimFunction*)func.ptr, (vec4f*)args, generated);
51 auto result = *(Register*)&res;
52 return result;
53}
54
55Register ContextImpl::eval_with_catch(SimFunctionId func, Register* args, Sequence* generated) SKR_NOEXCEPT
56{

Callers 5

compile_and_runFunction · 0.45
EvalNodeFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
compile_and_runFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected