Ejemplo n.º 1
0
void translateAluSourceVector(GenerateState &state, AluSource &srcX, AluSource &srcY, AluSource &srcZ, AluSource &srcW)
{
   state.out << "float4(";
   translateAluSource(state, srcX);
   state.out << ", ";
   translateAluSource(state, srcY);
   state.out << ", ";
   translateAluSource(state, srcZ);
   state.out << ", ";
   translateAluSource(state, srcW);
   state.out << ')';
}
Ejemplo n.º 2
0
void translateAluSourceVector(GenerateState &state,
                              const AluInstruction *ins,
                              const AluSource &srcX,
                              const AluSource &srcY,
                              const AluSource &srcZ,
                              const AluSource &srcW)
{
   state.out << "vec4(";
   translateAluSource(state, ins, srcX);
   state.out << ", ";
   translateAluSource(state, ins, srcY);
   state.out << ", ";
   translateAluSource(state, ins, srcZ);
   state.out << ", ";
   translateAluSource(state, ins, srcW);
   state.out << ')';
}