MCPcopy Create free account
hub / github.com/dfranx/ShaderDebugger / generateConvert

Method generateConvert

src/GLSLCompiler.cpp:783–795  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

781
782
783 void GLSLCompiler::generateConvert(GLSLCompiler::ExpressionType etype)
784 {
785 if (etype.Type == ag::Type::Object) {
786 // TODO: ?
787 }
788 else if (etype.Type == ag::Type::Void) { }
789 else {
790 if (etype.Columns * etype.Rows == 1)
791 m_gen.Function.Convert(etype.Type);
792 else
793 m_gen.Function.NewObjectByName(etype.Name, 1); // example: ivec3(vec3())
794 }
795 }
796 GLSLCompiler::ExpressionType GLSLCompiler::evaluateExpressionType(glsl::astExpression* expr)
797 {
798 switch (expr->type) {

Callers

nothing calls this directly

Calls 1

ConvertMethod · 0.80

Tested by

no test coverage detected