mirror of
https://github.com/love2d/love.git
synced 2026-08-15 07:41:11 +02:00
Add Buffer:isBufferType and Buffer:isCPUReadable.
This commit is contained in:
@@ -337,6 +337,13 @@ const char *getConstant(BuiltinVertexAttribute attrib)
|
||||
return name;
|
||||
}
|
||||
|
||||
STRINGMAP_BEGIN(BufferType, BUFFERTYPE_MAX_ENUM, bufferTypeName)
|
||||
{
|
||||
{ "vertex", BUFFERTYPE_VERTEX },
|
||||
{ "index", BUFFERTYPE_INDEX },
|
||||
}
|
||||
STRINGMAP_END(BufferType, BUFFERTYPE_MAX_ENUM, bufferTypeName)
|
||||
|
||||
STRINGMAP_BEGIN(IndexDataType, INDEX_MAX_ENUM, indexType)
|
||||
{
|
||||
{ "uint16", INDEX_UINT16 },
|
||||
|
||||
Reference in New Issue
Block a user