Android APIs
public static final class

Script.LaunchOptions

extends Object
java.lang.Object
   ↳ android.renderscript.Script.LaunchOptions

Class Overview

Class for specifying the specifics about how a kernel will be launched 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 class will have no impact on that dimension when the kernel is executed. The forEach launch will operate over the intersection of the dimensions. Example: LaunchOptions with setX(5, 15) Allocation with dimension X=10, Y=10 The resulting forEach run would execute over x = 5 to 10 and y = 0 to 10.

Summary

Public Constructors
Script.LaunchOptions()
Public Methods
int getXEnd()
Returns the current X end
int getXStart()
Returns the current X start
int getYEnd()
Returns the current Y end
int getYStart()
Returns the current Y start
int getZEnd()
Returns the current Z end
int getZStart()
Returns the current Z start
Script.LaunchOptions setX(int xstartArg, int xendArg)
Set the X range.
Script.LaunchOptions setY(int ystartArg, int yendArg)
Set the Y range.
Script.LaunchOptions setZ(int zstartArg, int zendArg)
Set the Z range.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Script.LaunchOptions ()

Added in API level 18

Public Methods

public int getXEnd ()

Added in API level 18

Returns the current X end

Returns
  • int current value

public int getXStart ()

Added in API level 18

Returns the current X start

Returns
  • int current value

public int getYEnd ()

Added in API level 18

Returns the current Y end

Returns
  • int current value

public int getYStart ()

Added in API level 18

Returns the current Y start

Returns
  • int current value

public int getZEnd ()

Added in API level 18

Returns the current Z end

Returns
  • int current value

public int getZStart ()

Added in API level 18

Returns the current Z start

Returns
  • int current value

public Script.LaunchOptions setX (int xstartArg, int xendArg)

Added in API level 18

Set the X range. If the end value is set to 0 the X dimension is not clipped.

Parameters
xstartArg Must be >= 0
xendArg Must be >= xstartArg
Returns
  • LaunchOptions

public Script.LaunchOptions setY (int ystartArg, int yendArg)

Added in API level 18

Set the Y range. If the end value is set to 0 the Y dimension is not clipped.

Parameters
ystartArg Must be >= 0
yendArg Must be >= ystartArg
Returns
  • LaunchOptions

public Script.LaunchOptions setZ (int zstartArg, int zendArg)

Added in API level 18

Set the Z range. If the end value is set to 0 the Z dimension is not clipped.

Parameters
zstartArg Must be >= 0
zendArg Must be >= zstartArg
Returns
  • LaunchOptions