mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-09-13 14:08:24 +00:00
docs: clarify readTexture's READ_BACK flag is CPU-only (#3691)
Per maintainer feedback, distill the @attention block down to the essence: it's a texture for CPU readback, and can't be a GPU resource at the same time. Add a one-line pointer to examples/30-picking for the rendered-content case rather than spelling out the blit-to-staging sequence inline. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1880,6 +1880,8 @@ func.updateTextureCube { section = "Textures" }
|
||||
--- Read back texture content.
|
||||
---
|
||||
--- @attention Texture must be created with `BGFX_TEXTURE_READ_BACK` flag.
|
||||
--- It's a texture for CPU readback, and can't be a GPU resource
|
||||
--- at the same time. See `examples/30-picking`.
|
||||
--- @attention Availability depends on: `BGFX_CAPS_TEXTURE_READ_BACK`.
|
||||
---
|
||||
func.readTexture { section = "Textures" }
|
||||
|
||||
Reference in New Issue
Block a user