|
|
@@ -1673,11 +1673,13 @@ namespace bgfx
|
|
|
/// @param[in] _handle Texture handle.
|
|
|
/// @param[in] _data Destination buffer.
|
|
|
///
|
|
|
+ /// @returns Frame number when the result will be available. See: `bgfx::frame`.
|
|
|
+ ///
|
|
|
/// @attention Texture must be created with `BGFX_TEXTURE_READ_BACK` flag.
|
|
|
/// @attention Availability depends on: `BGFX_CAPS_TEXTURE_READ_BACK`.
|
|
|
/// @attention C99 equivalent is `bgfx_read_texture`.
|
|
|
///
|
|
|
- void readTexture(TextureHandle _handle, void* _data);
|
|
|
+ uint32_t readTexture(TextureHandle _handle, void* _data);
|
|
|
|
|
|
/// Read back texture content.
|
|
|
///
|
|
|
@@ -1685,11 +1687,13 @@ namespace bgfx
|
|
|
/// @param[in] _attachment Frame buffer attachment index.
|
|
|
/// @param[in] _data Destination buffer.
|
|
|
///
|
|
|
+ /// @returns Frame number when the result will be available. See: `bgfx::frame`.
|
|
|
+ ///
|
|
|
/// @attention Texture must be created with `BGFX_TEXTURE_READ_BACK` flag.
|
|
|
/// @attention Availability depends on: `BGFX_CAPS_TEXTURE_READ_BACK`.
|
|
|
/// @attention C99 equivalent is `bgfx_read_frame_buffer`.
|
|
|
///
|
|
|
- void readTexture(FrameBufferHandle _handle, uint8_t _attachment, void* _data);
|
|
|
+ uint32_t readTexture(FrameBufferHandle _handle, uint8_t _attachment, void* _data);
|
|
|
|
|
|
/// Destroy texture.
|
|
|
///
|
|
|
@@ -1711,6 +1715,8 @@ namespace bgfx
|
|
|
/// - `BGFX_TEXTURE_[MIN/MAG/MIP]_[POINT/ANISOTROPIC]` - Point or anisotropic
|
|
|
/// sampling.
|
|
|
///
|
|
|
+ /// @returns Handle to frame buffer object.
|
|
|
+ ///
|
|
|
/// @attention C99 equivalent is `bgfx_create_frame_buffer`.
|
|
|
///
|
|
|
FrameBufferHandle createFrameBuffer(
|
|
|
@@ -1733,6 +1739,8 @@ namespace bgfx
|
|
|
/// - `BGFX_TEXTURE_[MIN/MAG/MIP]_[POINT/ANISOTROPIC]` - Point or anisotropic
|
|
|
/// sampling.
|
|
|
///
|
|
|
+ /// @returns Handle to frame buffer object.
|
|
|
+ ///
|
|
|
/// @attention C99 equivalent is `bgfx_create_frame_buffer_scaled`.
|
|
|
///
|
|
|
FrameBufferHandle createFrameBuffer(
|
|
|
@@ -1748,6 +1756,8 @@ namespace bgfx
|
|
|
/// @param[in] _destroyTextures If true, textures will be destroyed when
|
|
|
/// frame buffer is destroyed.
|
|
|
///
|
|
|
+ /// @returns Handle to frame buffer object.
|
|
|
+ ///
|
|
|
/// @attention C99 equivalent is `bgfx_create_frame_buffer_from_handles`.
|
|
|
///
|
|
|
FrameBufferHandle createFrameBuffer(
|
|
|
@@ -1763,6 +1773,8 @@ namespace bgfx
|
|
|
/// @param[in] _destroyTextures If true, textures will be destroyed when
|
|
|
/// frame buffer is destroyed.
|
|
|
///
|
|
|
+ /// @returns Handle to frame buffer object.
|
|
|
+ ///
|
|
|
/// @attention C99 equivalent is `bgfx_create_frame_buffer_from_handles`.
|
|
|
///
|
|
|
FrameBufferHandle createFrameBuffer(
|