love.graphics.dispatchThreadgroups;

This commit is contained in:
bjorn
2021-06-04 22:11:21 -06:00
committed by bjorn
parent 085ba2cb6e
commit 25fbf1d8ce
5 changed files with 42 additions and 0 deletions
+12
View File
@@ -3255,6 +3255,16 @@ int w_polygon(lua_State *L)
return 0;
}
int w_dispatchThreadgroups(lua_State* L)
{
Shader *shader = luax_checkshader(L, 1);
int x = (int) luaL_checkinteger(L, 2);
int y = (int) luaL_optinteger(L, 3, 1);
int z = (int) luaL_optinteger(L, 4, 1);
luax_catchexcept(L, [&](){ instance()->dispatchThreadgroups(shader, x, y, z); });
return 0;
}
int w_copyBuffer(lua_State *L)
{
Buffer *source = luax_checkbuffer(L, 1);
@@ -3472,6 +3482,8 @@ static const luaL_Reg functions[] =
{ "print", w_print },
{ "printf", w_printf },
{ "dispatchThreadgroups", w_dispatchThreadgroups },
{ "copyBuffer", w_copyBuffer },
{ "isCreated", w_isCreated },