3#include "spdlog/fmt/fmt.h"
29 std::vector<ValidationError>
validate(
void)
const override
31 std::vector<ValidationError> errors;
32 if (this->
_format == wgpu::TextureFormat::Undefined)
34 errors.emplace_back(
"Format is not set", fmt::format(
"ColorTargetState({})", this->
_name),
41 wgpu::TextureFormat
_format = wgpu::TextureFormat::Undefined;
ColorTargetState & setFormat(wgpu::TextureFormat format)
Definition ColorTargetState.hpp:13
wgpu::TextureFormat _format
Definition ColorTargetState.hpp:41
std::vector< ValidationError > validate(void) const override
Definition ColorTargetState.hpp:29
std::string _name
Definition ColorTargetState.hpp:43
~ColorTargetState() override=default
const wgpu::BlendState & getBlendState(void) const
Definition ColorTargetState.hpp:21
wgpu::BlendState _blendState
Definition ColorTargetState.hpp:42
wgpu::TextureFormat getFormat(void) const
Definition ColorTargetState.hpp:19
ColorTargetState & setBlendState(const wgpu::BlendState &blendState)
Definition ColorTargetState.hpp:23
ColorTargetState(const std::string &name)
Definition ColorTargetState.hpp:10
Definition IValidable.hpp:26
Definition DefaultSampler.hpp:6
constexpr DefaultFlag Default
Definition webgpu.hpp:78
@ Error
Definition IValidable.hpp:14