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

#include <DepthStencilState.hpp>

Inheritance diagram for Graphic::Utils::DepthStencilState:
Graphic::Utils::IValidable

Public Member Functions

 DepthStencilState (const std::string &name)
 ~DepthStencilState () override=default
std::vector< ValidationErrorvalidate (void) const override
DepthStencilStatesetCompareFunction (wgpu::CompareFunction func)
DepthStencilStatesetDepthWriteEnabled (wgpu::OptionalBool enabled)
DepthStencilStatesetFormat (wgpu::TextureFormat format)
const wgpu::DepthStencilState & getValue () const
Public Member Functions inherited from Graphic::Utils::IValidable
virtual ~IValidable ()=default

Private Attributes

wgpu::DepthStencilState value = wgpu::DepthStencilState(wgpu::Default)
std::string name

Constructor & Destructor Documentation

◆ DepthStencilState()

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

◆ ~DepthStencilState()

Graphic::Utils::DepthStencilState::~DepthStencilState ( )
overridedefault

Member Function Documentation

◆ getValue()

const wgpu::DepthStencilState & Graphic::Utils::DepthStencilState::getValue ( ) const
inline

◆ setCompareFunction()

DepthStencilState & Graphic::Utils::DepthStencilState::setCompareFunction ( wgpu::CompareFunction func)
inline

◆ setDepthWriteEnabled()

DepthStencilState & Graphic::Utils::DepthStencilState::setDepthWriteEnabled ( wgpu::OptionalBool enabled)
inline

◆ setFormat()

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

◆ validate()

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

Member Data Documentation

◆ name

std::string Graphic::Utils::DepthStencilState::name
private

◆ value

wgpu::DepthStencilState Graphic::Utils::DepthStencilState::value = wgpu::DepthStencilState(wgpu::Default)
private

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