Added bgfx::isFrameBufferValid API.

This commit is contained in:
Бранимир Караџић
2021-04-16 22:13:26 -07:00
parent 41df93f81d
commit 6109697ade
11 changed files with 278 additions and 107 deletions

View File

@@ -1,7 +1,7 @@
-- vim: syntax=lua
-- bgfx interface
version(112)
version(113)
typedef "bool"
typedef "char"
@@ -1593,6 +1593,12 @@ func.isTextureValid
.format "TextureFormat::Enum" --- Texture format. See: `TextureFormat::Enum`.
.flags "uint64_t" --- Texture flags. See `BGFX_TEXTURE_*`.
--- Validate frame buffer parameters.
func.isFrameBufferValid
"bool" --- True if frame buffer can be successfully created.
.num "uint8_t" --- Number of attachments.
.attachment "const Attachment*" --- Attachment texture info. See: `bgfx::Attachment`.
--- Calculate amount of memory required for texture.
func.calcTextureSize
"void"