candlewick 0.1.0
A renderer
Loading...
Searching...
No Matches
candlewick::Device Struct Reference

RAII wrapper for SDL_GPUDevice. More...

#include <candlewick/core/Device.h>

Public Member Functions

 Device (NoInitT) noexcept
 
 Device (SDL_GPUShaderFormat format_flags, bool debug_mode=false)
 
 Device (const Device &)=delete
 
 Device (Device &&other) noexcept
 
Deviceoperator= (Device &&)=delete
 
void create (SDL_GPUShaderFormat format_flags, bool debug_mode=false)
 
 operator SDL_GPUDevice * () const
 
 operator bool () const
 
const char * driverName () const noexcept
 
SDL_GPUShaderFormat shaderFormats () const
 
SDL_GPUDevice * release () noexcept
 Release ownership of and return the SDL_GPUDevice handle.
 
void destroy () noexcept
 
bool operator== (const Device &other) const
 

Detailed Description

RAII wrapper for SDL_GPUDevice.

Constructor & Destructor Documentation

◆ Device() [1/4]

candlewick::Device::Device ( NoInitT )
inlineexplicitnoexcept

◆ Device() [2/4]

candlewick::Device::Device ( SDL_GPUShaderFormat format_flags,
bool debug_mode = false )
explicit

◆ Device() [3/4]

candlewick::Device::Device ( const Device & )
delete

◆ Device() [4/4]

candlewick::Device::Device ( Device && other)
inlinenoexcept

Member Function Documentation

◆ create()

void candlewick::Device::create ( SDL_GPUShaderFormat format_flags,
bool debug_mode = false )

◆ destroy()

void candlewick::Device::destroy ( )
noexcept

◆ driverName()

const char * candlewick::Device::driverName ( ) const
noexcept

◆ operator bool()

candlewick::Device::operator bool ( ) const
inline

◆ operator SDL_GPUDevice *()

candlewick::Device::operator SDL_GPUDevice * ( ) const
inline

◆ operator=()

Device & candlewick::Device::operator= ( Device && )
delete

◆ operator==()

bool candlewick::Device::operator== ( const Device & other) const
inline

◆ release()

SDL_GPUDevice * candlewick::Device::release ( )
inlinenoexcept

Release ownership of and return the SDL_GPUDevice handle.

◆ shaderFormats()

SDL_GPUShaderFormat candlewick::Device::shaderFormats ( ) const
inline

The documentation for this struct was generated from the following file: