mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Added bgfx::isFrameBufferValid API.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user