Skip to content

Commit 7134d9f

Browse files
authored
Committing luabindings for commit ffe6144 (#2897)
1 parent ffe6144 commit 7134d9f

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

extensions/scripting/lua-bindings/auto/axlua_rhi_auto.cpp

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3003,6 +3003,53 @@ int lua_ax_rhi_DriverBase_cleanPendingResources(lua_State* tolua_S)
30033003

30043004
return 0;
30053005
}
3006+
int lua_ax_rhi_DriverBase_waitForGPU(lua_State* tolua_S)
3007+
{
3008+
int argc = 0;
3009+
ax::rhi::DriverBase* obj = nullptr;
3010+
bool ok = true;
3011+
3012+
#if _AX_DEBUG >= 1
3013+
tolua_Error tolua_err;
3014+
#endif
3015+
3016+
3017+
#if _AX_DEBUG >= 1
3018+
if (!tolua_isusertype(tolua_S,1,"axrhi.DriverBase",0,&tolua_err)) goto tolua_lerror;
3019+
#endif
3020+
3021+
obj = (ax::rhi::DriverBase*)tolua_tousertype(tolua_S,1,0);
3022+
3023+
#if _AX_DEBUG >= 1
3024+
if (!obj)
3025+
{
3026+
tolua_error(tolua_S,"invalid 'obj' in function 'lua_ax_rhi_DriverBase_waitForGPU'", nullptr);
3027+
return 0;
3028+
}
3029+
#endif
3030+
3031+
argc = lua_gettop(tolua_S)-1;
3032+
if (argc == 0)
3033+
{
3034+
if(!ok)
3035+
{
3036+
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_rhi_DriverBase_waitForGPU'", nullptr);
3037+
return 0;
3038+
}
3039+
obj->waitForGPU();
3040+
lua_settop(tolua_S, 1);
3041+
return 1;
3042+
}
3043+
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axrhi.DriverBase:waitForGPU",argc, 0);
3044+
return 0;
3045+
3046+
#if _AX_DEBUG >= 1
3047+
tolua_lerror:
3048+
tolua_error(tolua_S,"#ferror in function 'lua_ax_rhi_DriverBase_waitForGPU'.",&tolua_err);
3049+
#endif
3050+
3051+
return 0;
3052+
}
30063053
int lua_ax_rhi_DriverBase_getInstance(lua_State* tolua_S)
30073054
{
30083055
int argc = 0;
@@ -3098,6 +3145,7 @@ int lua_register_ax_rhi_DriverBase(lua_State* tolua_S)
30983145
tolua_function(tolua_S,"getMaxTextureUnits",lua_ax_rhi_DriverBase_getMaxTextureUnits);
30993146
tolua_function(tolua_S,"getMaxSamplesAllowed",lua_ax_rhi_DriverBase_getMaxSamplesAllowed);
31003147
tolua_function(tolua_S,"cleanPendingResources",lua_ax_rhi_DriverBase_cleanPendingResources);
3148+
tolua_function(tolua_S,"waitForGPU",lua_ax_rhi_DriverBase_waitForGPU);
31013149
tolua_function(tolua_S,"getInstance", lua_ax_rhi_DriverBase_getInstance);
31023150
tolua_function(tolua_S,"destroyInstance", lua_ax_rhi_DriverBase_destroyInstance);
31033151
tolua_endmodule(tolua_S);

0 commit comments

Comments
 (0)