// A "splat" to a scalar type is a no-op and can be eliminated. if (type.isScalar()) {
arg->fPosition = pos; return arg;
}
// Replace constant variables with their corresponding values, so `float3(five)` can compile // down to `float3(5.0)` (the latter is a compile-time constant).
arg = ConstantFolder::MakeConstantValueForVariable(pos, std::move(arg));
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.