Kanzi 4.0.0-beta2
platform_types.hpp File Reference

Classes

struct  kanzi::platform::SurfaceBits
 Describes the bit representation of a surface buffer. More...
 
struct  kanzi::platform::SurfaceProperties
 Describes the properties of a surface. More...
 

Namespaces

namespace  kanzi
 
namespace  kanzi::platform
 

Typedefs

using kanzi::platform::NativeSurfaceHandle
 Information necessary for native surfaces such as windows.
 

Enumerations

enum class  kanzi::platform::ColorSpace : uint8_t {
  kanzi::platform::sRGB , kanzi::platform::DisplayP3 , kanzi::platform::BT2020 , kanzi::platform::HDR10 ,
  kanzi::platform::Count
}
 Defines the color space options for an image or frame buffer. More...
 
enum class  kanzi::platform::MultisampleCount : uint8_t {
  kanzi::platform::NoMSAA , kanzi::platform::MSAAx2 , kanzi::platform::MSAAx4 , kanzi::platform::MSAAx8 ,
  kanzi::platform::MSAAx16 , kanzi::platform::MSAAx32
}
 Defines the available numbers of samples for multisample anti-aliasing (MSAA). More...
 
enum class  kanzi::platform::PlatformFeatureId { kanzi::platform::sRGBSurface , kanzi::platform::Count }
 Defines the platform features that can be present or missing on a specific platform. More...
 
enum class  kanzi::platform::PresentMode : uint8_t { kanzi::platform::Immediate , kanzi::platform::FIFO , kanzi::platform::FIFORelaxed , kanzi::platform::Mailbox }
 Defines the options for surface present mode. More...
 
enum class  kanzi::platform::SwapBehavior : uint8_t { kanzi::platform::Preserved , kanzi::platform::Destroyed , kanzi::platform::Unspecified }
 Defines the options for surface swap behavior. More...
 

Functions

MultisampleCount kanzi::platform::toMultisampleCount (size_t sampleCount)
 Gets kanzi graphics multi sample count from an integral sample count.
 
string kanzi::platform::toString (PlatformFeatureId feature)
 Converts a PlatformFeatureId to a string.