Loading rs/java/android/renderscript/Script.java +15 −14 Original line number Original line Diff line number Diff line Loading @@ -541,21 +541,22 @@ public class Script extends BaseObj { /** /** * Class for specifying the specifics about how a kernel will be * Class for specifying the specifics about how a kernel will be * launched * launched. * * * This class can specify a potential range of cells on which to * This class can specify a potential range of cells on which to * run a kernel. If no set is called for a dimension then this * run a kernel. If no set is called for a dimension then this * class will have no impact on that dimension when the kernel * class will have no impact on that dimension when the kernel * is executed. * is executed. * * * The forEach launch will operate over the intersection of the * The forEach kernel launch will operate over the intersection of * dimensions. * the dimensions. * * * Example: * Example: * LaunchOptions with setX(5, 15) * LaunchOptions with setX(5, 15) * Allocation with dimension X=10, Y=10 * Allocation with dimension X=10, Y=10 * The resulting forEach run would execute over x = 5 to 10 and * The resulting forEach run would execute over: * y = 0 to 10. * x = 5 to 9 (inclusive) and * y = 0 to 9 (inclusive). * * * * */ */ Loading @@ -569,11 +570,11 @@ public class Script extends BaseObj { private int strategy; private int strategy; /** /** * Set the X range. If the end value is set to 0 the X dimension is not * Set the X range. xstartArg is the lowest coordinate of the range, * clipped. * and xendArg-1 is the highest coordinate of the range. * * * @param xstartArg Must be >= 0 * @param xstartArg Must be >= 0 * @param xendArg Must be >= xstartArg * @param xendArg Must be > xstartArg * * * @return LaunchOptions * @return LaunchOptions */ */ Loading @@ -587,11 +588,11 @@ public class Script extends BaseObj { } } /** /** * Set the Y range. If the end value is set to 0 the Y dimension is not * Set the Y range. ystartArg is the lowest coordinate of the range, * clipped. * and yendArg-1 is the highest coordinate of the range. * * * @param ystartArg Must be >= 0 * @param ystartArg Must be >= 0 * @param yendArg Must be >= ystartArg * @param yendArg Must be > ystartArg * * * @return LaunchOptions * @return LaunchOptions */ */ Loading @@ -605,11 +606,11 @@ public class Script extends BaseObj { } } /** /** * Set the Z range. If the end value is set to 0 the Z dimension is not * Set the Z range. zstartArg is the lowest coordinate of the range, * clipped. * and zendArg-1 is the highest coordinate of the range. * * * @param zstartArg Must be >= 0 * @param zstartArg Must be >= 0 * @param zendArg Must be >= zstartArg * @param zendArg Must be > zstartArg * * * @return LaunchOptions * @return LaunchOptions */ */ Loading Loading
rs/java/android/renderscript/Script.java +15 −14 Original line number Original line Diff line number Diff line Loading @@ -541,21 +541,22 @@ public class Script extends BaseObj { /** /** * Class for specifying the specifics about how a kernel will be * Class for specifying the specifics about how a kernel will be * launched * launched. * * * This class can specify a potential range of cells on which to * This class can specify a potential range of cells on which to * run a kernel. If no set is called for a dimension then this * run a kernel. If no set is called for a dimension then this * class will have no impact on that dimension when the kernel * class will have no impact on that dimension when the kernel * is executed. * is executed. * * * The forEach launch will operate over the intersection of the * The forEach kernel launch will operate over the intersection of * dimensions. * the dimensions. * * * Example: * Example: * LaunchOptions with setX(5, 15) * LaunchOptions with setX(5, 15) * Allocation with dimension X=10, Y=10 * Allocation with dimension X=10, Y=10 * The resulting forEach run would execute over x = 5 to 10 and * The resulting forEach run would execute over: * y = 0 to 10. * x = 5 to 9 (inclusive) and * y = 0 to 9 (inclusive). * * * * */ */ Loading @@ -569,11 +570,11 @@ public class Script extends BaseObj { private int strategy; private int strategy; /** /** * Set the X range. If the end value is set to 0 the X dimension is not * Set the X range. xstartArg is the lowest coordinate of the range, * clipped. * and xendArg-1 is the highest coordinate of the range. * * * @param xstartArg Must be >= 0 * @param xstartArg Must be >= 0 * @param xendArg Must be >= xstartArg * @param xendArg Must be > xstartArg * * * @return LaunchOptions * @return LaunchOptions */ */ Loading @@ -587,11 +588,11 @@ public class Script extends BaseObj { } } /** /** * Set the Y range. If the end value is set to 0 the Y dimension is not * Set the Y range. ystartArg is the lowest coordinate of the range, * clipped. * and yendArg-1 is the highest coordinate of the range. * * * @param ystartArg Must be >= 0 * @param ystartArg Must be >= 0 * @param yendArg Must be >= ystartArg * @param yendArg Must be > ystartArg * * * @return LaunchOptions * @return LaunchOptions */ */ Loading @@ -605,11 +606,11 @@ public class Script extends BaseObj { } } /** /** * Set the Z range. If the end value is set to 0 the Z dimension is not * Set the Z range. zstartArg is the lowest coordinate of the range, * clipped. * and zendArg-1 is the highest coordinate of the range. * * * @param zstartArg Must be >= 0 * @param zstartArg Must be >= 0 * @param zendArg Must be >= zstartArg * @param zendArg Must be > zstartArg * * * @return LaunchOptions * @return LaunchOptions */ */ Loading