Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
Graphic::Utils::ColorTargetState Class Reference

#include <ColorTargetState.hpp>

Inheritance diagram for Graphic::Utils::ColorTargetState:
Graphic::Utils::IValidable

Public Member Functions

 ColorTargetState (const std::string &name)
 ~ColorTargetState () override=default
ColorTargetStatesetFormat (wgpu::TextureFormat format)
wgpu::TextureFormat getFormat (void) const
const wgpu::BlendState & getBlendState (void) const
ColorTargetStatesetBlendState (const wgpu::BlendState &blendState)
std::vector< ValidationErrorvalidate (void) const override
Public Member Functions inherited from Graphic::Utils::IValidable
virtual ~IValidable ()=default

Private Attributes

wgpu::TextureFormat _format = wgpu::TextureFormat::Undefined
wgpu::BlendState _blendState {wgpu::Default}
std::string _name

Constructor & Destructor Documentation

◆ ColorTargetState()

Graphic::Utils::ColorTargetState::ColorTargetState ( const std::string & name)
inlineexplicit

◆ ~ColorTargetState()

Graphic::Utils::ColorTargetState::~ColorTargetState ( )
overridedefault

Member Function Documentation

◆ getBlendState()

const wgpu::BlendState & Graphic::Utils::ColorTargetState::getBlendState ( void ) const
inline

◆ getFormat()

wgpu::TextureFormat Graphic::Utils::ColorTargetState::getFormat ( void ) const
inline

◆ setBlendState()

ColorTargetState & Graphic::Utils::ColorTargetState::setBlendState ( const wgpu::BlendState & blendState)
inline

◆ setFormat()

ColorTargetState & Graphic::Utils::ColorTargetState::setFormat ( wgpu::TextureFormat format)
inline

◆ validate()

std::vector< ValidationError > Graphic::Utils::ColorTargetState::validate ( void ) const
inlineoverridevirtual

Member Data Documentation

◆ _blendState

wgpu::BlendState Graphic::Utils::ColorTargetState::_blendState {wgpu::Default}
private

◆ _format

wgpu::TextureFormat Graphic::Utils::ColorTargetState::_format = wgpu::TextureFormat::Undefined
private

◆ _name

std::string Graphic::Utils::ColorTargetState::_name
private

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