Flutter Engine
The Flutter Engine
Classes | Namespaces | Functions
ContextUtils.h File Reference
#include "src/gpu/Blend.h"
#include "src/gpu/graphite/PaintParamsKey.h"
#include "src/gpu/graphite/PipelineDataCache.h"
#include <optional>
#include <tuple>

Go to the source code of this file.

Classes

struct  skgpu::graphite::VertSkSLInfo
 
struct  skgpu::graphite::FragSkSLInfo
 

Namespaces

namespace  skgpu
 
namespace  skgpu::graphite
 

Functions

std::tuple< UniquePaintParamsID, const UniformDataBlock *, const TextureDataBlock * > skgpu::graphite::ExtractPaintData (Recorder *recorder, PipelineDataGatherer *gatherer, PaintParamsKeyBuilder *builder, const Layout layout, const SkM44 &local2Dev, const PaintParams &p, const Geometry &geometry, sk_sp< TextureProxy > dstTexture, SkIPoint dstOffset, const SkColorInfo &targetColorInfo)
 
std::tuple< const UniformDataBlock *, const TextureDataBlock * > skgpu::graphite::ExtractRenderStepData (UniformDataCache *uniformDataCache, TextureDataCache *textureDataCache, PipelineDataGatherer *gatherer, const Layout layout, const RenderStep *step, const DrawParams &params)
 
DstReadRequirement skgpu::graphite::GetDstReadRequirement (const Caps *caps, std::optional< SkBlendMode > blendMode, Coverage coverage)
 
VertSkSLInfo skgpu::graphite::BuildVertexSkSL (const ResourceBindingRequirements &bindingReqs, const RenderStep *step, bool useStorageBuffers, bool defineLocalCoordsVarying)
 
FragSkSLInfo skgpu::graphite::BuildFragmentSkSL (const Caps *caps, const ShaderCodeDictionary *dict, const RuntimeEffectDictionary *rteDict, const RenderStep *step, UniquePaintParamsID paintID, bool useStorageBuffers, skgpu::Swizzle writeSwizzle)
 
std::string skgpu::graphite::GetPipelineLabel (const ShaderCodeDictionary *dict, const RenderPassDesc &renderPassDesc, const RenderStep *renderStep, UniquePaintParamsID paintID)
 
std::string skgpu::graphite::BuildComputeSkSL (const Caps *caps, const ComputeStep *step)
 
std::string skgpu::graphite::EmitPaintParamsUniforms (int bufferID, const Layout layout, SkSpan< const ShaderNode * > nodes, int *numUniforms, int *uniformsTotalBytes, bool *wrotePaintColor)
 
std::string skgpu::graphite::EmitRenderStepUniforms (int bufferID, const Layout layout, SkSpan< const Uniform > uniforms, int *renderStepUniformsTotalBytes)
 
std::string skgpu::graphite::EmitPaintParamsStorageBuffer (int bufferID, SkSpan< const ShaderNode * > nodes, int *numUniforms, bool *wrotePaintColor)
 
std::string skgpu::graphite::EmitRenderStepStorageBuffer (int bufferID, SkSpan< const Uniform > uniforms)
 
std::string skgpu::graphite::EmitUniformsFromStorageBuffer (const char *bufferNamePrefix, const char *ssboIndex, SkSpan< const Uniform > uniforms)
 
std::string skgpu::graphite::EmitStorageBufferAccess (const char *bufferNamePrefix, const char *ssboIndex, const char *uniformName)
 
std::string skgpu::graphite::EmitTexturesAndSamplers (const ResourceBindingRequirements &bindingReqs, SkSpan< const ShaderNode * > nodes, int *binding)
 
std::string skgpu::graphite::EmitSamplerLayout (const ResourceBindingRequirements &bindingReqs, int *binding)
 
std::string skgpu::graphite::EmitVaryings (const RenderStep *step, const char *direction, bool emitSsboIndicesVarying, bool emitLocalCoordsVarying)