15 std::uint16_t
mip = 0;
42 std::uint16_t _height,
44 std::uint32_t _texture_flags = BGFX_SAMPLER_U_CLAMP | BGFX_SAMPLER_V_CLAMP);
64 frame_buffer(
const std::vector<fbo_attachment>& textures);
76 std::uint16_t _height,
88 void populate(
const std::vector<texture::ptr>& textures);
89 void populate(
const std::vector<fbo_attachment>& textures);
135 std::vector<fbo_attachment> textures_;
141 return !fbo || (fbo && fbo->get_size() !=
size);
std::shared_ptr< frame_buffer > ptr
bgfx::TextureFormat::Enum texture_format
auto needs_recreate(const gfx::frame_buffer::ptr &fbo, const usize32_t &size) -> bool
Hash specialization for batch_key to enable use in std::unordered_map.
std::shared_ptr< gfx::texture > texture
Texture handle.
std::uint16_t mip
Mip level.
std::uint16_t layer
Cubemap side or depth layer/slice.
auto get_texture(std::uint32_t index=0) const -> const gfx::texture::ptr &
auto get_attachment_count() const -> size_t
auto get_attachments() const -> const std::vector< fbo_attachment > &
frame_buffer(void *_nwh, std::uint16_t _width, std::uint16_t _height, texture_format _format=texture_format::Count, texture_format _depth_format=texture_format::Count)
void populate(const std::vector< texture::ptr > &textures)
auto get_attachment(std::uint32_t index=0) const -> const fbo_attachment &
auto get_size() const -> usize32_t