IT. Expert System.

Android Reference

ScriptGroup.Builder


android.renderscript

Class ScriptGroup.Builder

  • Enclosing class:
    ScriptGroup


    public static final class ScriptGroup.Builder
    extends Object
    Create a ScriptGroup. There are two steps to creating a ScriptGoup.

    First all the Kernels to be used by the group should be added. Once this is done the kernels should be connected. Kernels cannot be added once a connection has been made.

    Second, add connections. There are two forms of connections. Kernel to Kernel and Kernel to Field. Kernel to Kernel is higher performance and should be used where possible. The line of connections cannot form a loop. If a loop is detected an exception is thrown.

    Once all the connections are made a call to create will return the ScriptGroup object.

    • Constructor Detail

      • ScriptGroup.Builder

        public ScriptGroup.Builder(RenderScript rs)
        Create a builder for generating a ScriptGroup.
        Parameters:
        rs - The Renderscript context.
    • Method Detail

      • addConnection

        public ScriptGroup.Builder addConnection(Type t,
                                        Script.KernelID from,
                                        Script.FieldID to)
        Adds a connection to the group.
        Parameters:
        t - The type of the connection. This is used to determine the kernel launch sizes on the source side of this connection.
        from - The source for the connection.
        to - The destination of the connection.
        Returns:
        Builder Returns this
      • addConnection

        public ScriptGroup.Builder addConnection(Type t,
                                        Script.KernelID from,
                                        Script.KernelID to)
        Adds a connection to the group.
        Parameters:
        t - The type of the connection. This is used to determine the kernel launch sizes for both sides of this connection.
        from - The source for the connection.
        to - The destination of the connection.
        Returns:
        Builder Returns this
      • create

        public ScriptGroup create()
        Creates the Script group.
        Returns:
        ScriptGroup The new ScriptGroup


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 247 / 158777359. Delta: 0.04058 с