diff options
author | 2019-10-13 20:55:11 +0200 | |
---|---|---|
committer | 2019-10-13 20:59:35 +0200 | |
commit | 61b2a8afaf012e28ef14ad946ee0bb8319232aa6 (patch) | |
tree | 0aaf403f6258de9adbbeacaac92206fdf1c7aa27 /src/osd/modules/render/bgfx/texture.h | |
parent | cd6b9ac9beb76e640f39227555ad6907a36d38f9 (diff) |
-bgfx: Do texture format conversion via a full-screen GPU pass. [Ryan Holtz]
Diffstat (limited to 'src/osd/modules/render/bgfx/texture.h')
-rw-r--r-- | src/osd/modules/render/bgfx/texture.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/osd/modules/render/bgfx/texture.h b/src/osd/modules/render/bgfx/texture.h index 7cb6d988150..1d5b1dd9f6d 100644 --- a/src/osd/modules/render/bgfx/texture.h +++ b/src/osd/modules/render/bgfx/texture.h @@ -21,7 +21,7 @@ class bgfx_texture : public bgfx_texture_handle_provider { public: bgfx_texture(std::string name, bgfx::TextureFormat::Enum format, uint16_t width, uint16_t height, uint32_t flags, void* data); - bgfx_texture(std::string name, bgfx::TextureFormat::Enum format, uint16_t width, uint16_t height, const bgfx::Memory* data, uint32_t flags = BGFX_SAMPLER_U_CLAMP | BGFX_SAMPLER_V_CLAMP); + bgfx_texture(std::string name, bgfx::TextureFormat::Enum format, uint16_t width, uint16_t height, const bgfx::Memory* data, uint32_t flags = BGFX_SAMPLER_U_CLAMP | BGFX_SAMPLER_V_CLAMP, uint16_t pitch = UINT16_MAX); virtual ~bgfx_texture(); // Getters @@ -34,6 +34,8 @@ public: virtual bgfx::TextureHandle texture() const override { return m_texture; } virtual bool is_target() const override { return false; } + void update(const bgfx::Memory *data, uint16_t pitch = UINT16_MAX); + protected: std::string m_name; bgfx::TextureFormat::Enum m_format; |