protected sealed override VFXExpression Evaluate(VFXExpression[] constParents) { var mesh = constParents[0].Get <Mesh>(); var vertexIndex = constParents[1].Get <uint>(); var channelOffset = constParents[2].Get <uint>(); var vertexStride = constParents[3].Get <uint>(); return(VFXValue.Constant(VFXExpressionMesh.GetFloat3(mesh, vertexIndex, channelOffset, vertexStride))); }
protected sealed override VFXExpression Evaluate(VFXExpression[] constParents) { var meshReduce = constParents[0]; var vertexOffsetReduce = constParents[1]; var channelFormatAndDimensionReduce = constParents[2]; var mesh = meshReduce.Get <Mesh>(); var vertexOffset = vertexOffsetReduce.Get <uint>(); var channelFormatAndDimension = channelFormatAndDimensionReduce.Get <uint>(); return(VFXValue.Constant(VFXExpressionMesh.GetFloat3(mesh, vertexOffset, channelFormatAndDimension))); }