5#ifndef FLUTTER_IMPELLER_COMPILER_SHADER_BUNDLE_DATA_H_
6#define FLUTTER_IMPELLER_COMPILER_SHADER_BUNDLE_DATA_H_
11#include "flutter/fml/mapping.h"
13#include "impeller/shader_bundle/shader_bundle_flatbuffers.h"
22 spirv_cross::SPIRType::BaseType
type =
23 spirv_cross::SPIRType::BaseType::Float;
36 std::vector<ShaderUniformStructField>
fields;
47 spv::ExecutionModel stage,
65 const std::string entrypoint_;
66 const spv::ExecutionModel stage_;
68 std::vector<ShaderUniformStruct> uniform_structs_;
69 std::vector<ShaderUniformTexture> uniform_textures_;
70 std::vector<InputDescription> inputs_;
71 std::shared_ptr<fml::Mapping> shader_;
72 std::shared_ptr<fml::Mapping> sksl_;
void AddInputDescription(InputDescription input)
ShaderBundleData(std::string entrypoint, spv::ExecutionModel stage, TargetPlatform target_platform)
std::unique_ptr< fb::shaderbundle::BackendShaderT > CreateFlatbuffer() const
void AddUniformStruct(ShaderUniformStruct uniform_struct)
void SetShaderData(std::shared_ptr< fml::Mapping > shader)
void SetSkSLData(std::shared_ptr< fml::Mapping > sksl)
void AddUniformTexture(ShaderUniformTexture uniform_texture)