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

Method translateCastingExpression

src/HLSLCompiler.cpp:781–796  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

779 }
780 }
781 void HLSLCompiler::translateCastingExpression(M4::HLSLCastingExpression* expression)
782 {
783 // (VSInput)0
784 if (expression->type.baseType == M4::HLSLBaseType_UserDefined) {
785 M4::HLSLExpression* val = expression->expression;
786 std::string sname = expression->type.typeName;
787
788 // just use default constructor for now
789 m_gen.Function.NewObjectByName(sname);
790 }
791 // (float)2.5f
792 else {
793 translateExpression(expression->expression);
794 m_convertType(expression->type);
795 }
796 }
797 void HLSLCompiler::translateArguments(M4::HLSLArgument* argument)
798 {
799 m_curFuncData->Arguments.clear();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected