Android-cuttlefish cvd tool
Namespaces | Enumerations | Functions | Variables
gpu_mode.h File Reference
#include <string>
#include <string_view>
#include "cuttlefish/result/result.h"
Include dependency graph for gpu_mode.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  cuttlefish
 

Enumerations

enum class  cuttlefish::GpuMode {
  cuttlefish::Auto , cuttlefish::Custom , cuttlefish::DrmVirgl , cuttlefish::Gfxstream ,
  cuttlefish::GfxstreamGuestAngle , cuttlefish::GfxstreamGuestAngleHostLavapipe , cuttlefish::GfxstreamGuestAngleHostSwiftshader , cuttlefish::GuestLavapipe ,
  cuttlefish::GuestSwiftshader , cuttlefish::None
}
 

Functions

template<typename Sink >
void cuttlefish::AbslStringify (Sink &sink, GpuMode mode)
 
Result< GpuMode > cuttlefish::GpuModeFromString (std::string_view mode)
 
std::string cuttlefish::GpuModeString (GpuMode mode)
 
std::string_view cuttlefish::format_as (GpuMode mode)
 
bool cuttlefish::IsGfxstreamMode (GpuMode mode)
 
bool cuttlefish::IsGfxstreamGuestAngleMode (GpuMode mode)
 
bool cuttlefish::IsGuestRenderingMode (GpuMode mode)
 

Variables

constexpr std::string_view cuttlefish::kGpuModeAuto = "auto"
 
constexpr std::string_view cuttlefish::kGpuModeCustom = "custom"
 
constexpr std::string_view cuttlefish::kGpuModeDrmVirgl = "drm_virgl"
 
constexpr std::string_view cuttlefish::kGpuModeGfxstream = "gfxstream"
 
constexpr std::string_view cuttlefish::kGpuModeGfxstreamGuestAngle
 
constexpr std::string_view cuttlefish::kGpuModeGfxstreamGuestAngleHostLavapipe
 
constexpr std::string_view cuttlefish::kGpuModeGfxstreamGuestAngleHostSwiftshader
 
constexpr std::string_view cuttlefish::kGpuModeGuestLavapipe = "guest_lavapipe"
 
constexpr std::string_view cuttlefish::kGpuModeGuestSwiftshader
 
constexpr std::string_view cuttlefish::kGpuModeNone = "none"