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;
41 std::vector<ShaderUniformStructField>
fields;
52 spv::ExecutionModel stage,
70 const std::string entrypoint_;
71 const spv::ExecutionModel stage_;
73 std::vector<ShaderUniformStruct> uniform_structs_;
74 std::vector<ShaderUniformTexture> uniform_textures_;
75 std::vector<InputDescription> inputs_;
76 std::shared_ptr<fml::Mapping> shader_;
77 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)