Most visited

Recently visited

RenderScript.ContextType

public static final enum RenderScript.ContextType
extends Enum<RenderScript.ContextType>

java.lang.Object
    java.lang.Enum<android.support.v8.renderscript.RenderScript.ContextType>
      android.support.v8.renderscript.RenderScript.ContextType


ContextType指定要创建的特定上下文类型。

摘要(Summary)

Enum values

RenderScript.ContextType  DEBUG

DEBUG上下文,执行额外的运行时检查来验证内核和API是否按照预期使用。

RenderScript.ContextType  NORMAL

NORMAL正常情况下,这是默认值以及应用程序应该使用的运输方式。

RenderScript.ContextType  PROFILE

PROFILE上下文,用于第一次在新设备上运行应用程序时使用。

公共方法(Public methods)

static RenderScript.ContextType valueOf(String name)
static final ContextType[] values()

继承方法(Inherited methods)

From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum values

DEBUG

RenderScript.ContextType DEBUG

DEBUG上下文,执行额外的运行时检查来验证内核和API是否按照预期使用。 Get和SetElementAt将在此模式下进行边界检查。

NORMAL

RenderScript.ContextType NORMAL

NORMAL正常情况下,这是默认值以及应用程序应该使用的运输方式。

PROFILE

RenderScript.ContextType PROFILE

PROFILE上下文,用于第一次在新设备上运行应用程序时使用。 此模式允许运行时进行额外的测试和性能调整。

公共方法(Public methods)

valueOf

RenderScript.ContextType valueOf (String name)

参数(Parameters)
name String
返回(Returns)
RenderScript.ContextType

values

ContextType[] values ()

返回(Returns)
ContextType[]

Hooray!