#include <shader_stage_compatibility_checker.h>
Static Public Member Functions | |
| static constexpr bool | CompileTimeStrEqual (const char *str1, const char *str2) |
| static constexpr bool | Check () |
This is a classed use to check that the input slots of fragment shaders match the output slots of the vertex shaders. If they don't match it will result in linker errors when creating the pipeline. It's not used at runtime.
Definition at line 18 of file shader_stage_compatibility_checker.h.
|
inlinestaticconstexpr |
Returns true if the shader input slots for the fragment shader match the ones declared as outputs in the vertex shader.
Definition at line 28 of file shader_stage_compatibility_checker.h.
References impeller::ShaderStageIOSlot::binding, impeller::ShaderStageIOSlot::bit_width, impeller::ShaderStageIOSlot::columns, impeller::ShaderStageCompatibilityChecker< VertexShaderT, FragmentShaderT >::CompileTimeStrEqual(), impeller::ShaderStageIOSlot::location, impeller::ShaderStageIOSlot::name, impeller::ShaderStageIOSlot::offset, impeller::ShaderStageIOSlot::set, impeller::ShaderStageIOSlot::type, and impeller::ShaderStageIOSlot::vec_size.
|
inlinestaticconstexpr |
Definition at line 20 of file shader_stage_compatibility_checker.h.
Referenced by impeller::ShaderStageCompatibilityChecker< VertexShaderT, FragmentShaderT >::Check().