mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Initial support for writing to textures in compute shaders.
This commit is contained in:
@@ -279,6 +279,20 @@ int w_Texture_getFormat(lua_State *L)
|
||||
return 1;
|
||||
}
|
||||
|
||||
int w_Texture_isRenderTarget(lua_State *L)
|
||||
{
|
||||
Texture *t = luax_checktexture(L, 1);
|
||||
luax_pushboolean(L, t->isRenderTarget());
|
||||
return 1;
|
||||
}
|
||||
|
||||
int w_Texture_isComputeWritable(lua_State *L)
|
||||
{
|
||||
Texture *t = luax_checktexture(L, 1);
|
||||
luax_pushboolean(L, t->isComputeWritable());
|
||||
return 1;
|
||||
}
|
||||
|
||||
int w_Texture_isReadable(lua_State *L)
|
||||
{
|
||||
Texture *t = luax_checktexture(L, 1);
|
||||
@@ -479,6 +493,8 @@ const luaL_Reg w_Texture_functions[] =
|
||||
{ "setWrap", w_Texture_setWrap },
|
||||
{ "getWrap", w_Texture_getWrap },
|
||||
{ "getFormat", w_Texture_getFormat },
|
||||
{ "isRenderTarget", w_Texture_isRenderTarget },
|
||||
{ "isComputeWritable", w_Texture_isComputeWritable },
|
||||
{ "isReadable", w_Texture_isReadable },
|
||||
{ "getMipmapMode", w_Texture_getMipmapMode },
|
||||
{ "getDepthSampleMode", w_Texture_getDepthSampleMode },
|
||||
|
||||
Reference in New Issue
Block a user