Unravel Engine C++ Reference
Loading...
Searching...
No Matches
format.h File Reference
#include <bgfx/bgfx.h>
#include <cstdint>
#include <string>

Go to the source code of this file.

Classes

struct  gfx::format_details
 

Namespaces

namespace  gfx
 
namespace  gfx::format_search_flags
 

Typedefs

using gfx::texture_format = bgfx::TextureFormat::Enum
 

Enumerations

enum  gfx::format_search_flags::e {
  gfx::format_search_flags::one_channel = 0x1 , gfx::format_search_flags::two_channels = 0x2 , gfx::format_search_flags::four_channels = 0x8 , gfx::format_search_flags::requires_alpha = 0x10 ,
  gfx::format_search_flags::requires_stencil = 0x20 , gfx::format_search_flags::prefer_compressed = 0x40 , gfx::format_search_flags::allow_padding_channels = 0x100 , gfx::format_search_flags::requires_depth = 0x200 ,
  gfx::format_search_flags::half_precision_float = 0x1000 , gfx::format_search_flags::full_precision_float = 0x2000 , gfx::format_search_flags::floating_point = 0xF000
}
 

Functions

auto gfx::is_format_supported (std::uint16_t flags, texture_format format) -> bool
 
auto gfx::get_best_format (std::uint16_t type_flags, std::uint32_t search_flags) -> texture_format
 
auto gfx::get_default_rt_sampler_flags () -> uint64_t
 
auto gfx::get_format_info (texture_format fmt) -> format_details
 
auto gfx::to_string (texture_format fmt) -> std::string