#include "dawn/native/BlitColorToColorWithDraw.h"
#include <sstream>
#include <string>
#include "absl/container/inlined_vector.h"
#include "dawn/common/Assert.h"
#include "dawn/common/Enumerator.h"
#include "dawn/common/HashUtils.h"
#include "dawn/native/BindGroup.h"
#include "dawn/native/ChainUtils.h"
#include "dawn/native/CommandEncoder.h"
#include "dawn/native/Device.h"
#include "dawn/native/InternalPipelineStore.h"
#include "dawn/native/RenderPassEncoder.h"
#include "dawn/native/RenderPipeline.h"
#include "dawn/native/utils/WGPUHelpers.h"
#include "dawn/native/webgpu_absl_format.h"
namespace dawn::native {
namespace {
constexpr char kBlitToColorVS[] = …;
std::string GenerateExpandFS(const BlitColorToColorWithDrawPipelineKey& pipelineKey) { … }
std::string GenerateResolveFS(uint32_t sampleCount) { … }
ResultOrError<Ref<RenderPipelineBase>> GetOrCreateExpandMultisamplePipeline(
DeviceBase* device,
const BlitColorToColorWithDrawPipelineKey& pipelineKey,
uint8_t colorAttachmentCount) { … }
ResultOrError<Ref<RenderPipelineBase>> GetOrCreateResolveMultisamplePipeline(
DeviceBase* device,
const ResolveMultisampleWithDrawPipelineKey& pipelineKey) { … }
}
MaybeError ExpandResolveTextureWithDraw(
DeviceBase* device,
RenderPassEncoder* renderEncoder,
const UnpackedPtr<RenderPassDescriptor>& renderPassDescriptor) { … }
size_t BlitColorToColorWithDrawPipelineKey::HashFunc::operator()(
const BlitColorToColorWithDrawPipelineKey& key) const { … }
bool BlitColorToColorWithDrawPipelineKey::EqualityFunc::operator()(
const BlitColorToColorWithDrawPipelineKey& a,
const BlitColorToColorWithDrawPipelineKey& b) const { … }
MaybeError ResolveMultisampleWithDraw(DeviceBase* device,
CommandEncoder* encoder,
Rect2D rect,
TextureViewBase* src,
TextureViewBase* dst) { … }
size_t ResolveMultisampleWithDrawPipelineKey::HashFunc::operator()(
const ResolveMultisampleWithDrawPipelineKey& key) const { … }
bool ResolveMultisampleWithDrawPipelineKey::EqualityFunc::operator()(
const ResolveMultisampleWithDrawPipelineKey& a,
const ResolveMultisampleWithDrawPipelineKey& b) const { … }
}