LaunchOptions
class LaunchOptions
| kotlin.Any | |
| ↳ | android.renderscript.Script.LaunchOptions |
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 kernel 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 9 (inclusive) and y = 0 to 9 (inclusive).
Summary
Public constructors |
|
|---|---|
<init>() |
|
Public methods |
|
|---|---|
| Int |
getXEnd()Returns the current X end |
| Int |
Returns the current X start |
| Int |
getYEnd()Returns the current Y end |
| Int |
Returns the current Y start |
| Int |
getZEnd()Returns the current Z end |
| Int |
Returns the current Z start |
| Script.LaunchOptions! |
Set the X range. |
| Script.LaunchOptions! |
Set the Y range. |
| Script.LaunchOptions! |
Set the Z range. |
Public constructors
<init>
LaunchOptions()
Public methods
getXEnd
fun getXEnd(): Int
Returns the current X end
| Return | |
|---|---|
Int |
int current value |
getXStart
fun getXStart(): Int
Returns the current X start
| Return | |
|---|---|
Int |
int current value |
getYEnd
fun getYEnd(): Int
Returns the current Y end
| Return | |
|---|---|
Int |
int current value |
getYStart
fun getYStart(): Int
Returns the current Y start
| Return | |
|---|---|
Int |
int current value |
getZEnd
fun getZEnd(): Int
Returns the current Z end
| Return | |
|---|---|
Int |
int current value |
getZStart
fun getZStart(): Int
Returns the current Z start
| Return | |
|---|---|
Int |
int current value |
setX
fun setX(
xstartArg: Int,
xendArg: Int
): Script.LaunchOptions!
Set the X range. xstartArg is the lowest coordinate of the range, and xendArg-1 is the highest coordinate of the range.
| Parameters | |
|---|---|
xstartArg |
Int: Must be >= 0 |
xendArg |
Int: Must be > xstartArg |
| Return | |
|---|---|
Script.LaunchOptions! |
LaunchOptions |
setY
fun setY(
ystartArg: Int,
yendArg: Int
): Script.LaunchOptions!
Set the Y range. ystartArg is the lowest coordinate of the range, and yendArg-1 is the highest coordinate of the range.
| Parameters | |
|---|---|
ystartArg |
Int: Must be >= 0 |
yendArg |
Int: Must be > ystartArg |
| Return | |
|---|---|
Script.LaunchOptions! |
LaunchOptions |
setZ
fun setZ(
zstartArg: Int,
zendArg: Int
): Script.LaunchOptions!
Set the Z range. zstartArg is the lowest coordinate of the range, and zendArg-1 is the highest coordinate of the range.
| Parameters | |
|---|---|
zstartArg |
Int: Must be >= 0 |
zendArg |
Int: Must be > zstartArg |
| Return | |
|---|---|
Script.LaunchOptions! |
LaunchOptions |