Most visited

Recently visited

Added in API level 11

Element.DataType

public static final enum Element.DataType
extends Enum<Element.DataType>

java.lang.Object
   ↳ java.lang.Enum<android.renderscript.Element.DataType>
     ↳ android.renderscript.Element.DataType


DataType表示基本元素的基本类型信息。 命名约定如下。 对于数字类型,它是FLOAT,SIGNED或UNSIGNED,后跟_BITS,其中BITS是数据的大小。 BOOLEAN是以8位容器表示的真/假(1,0)。 具有多位定义的UNSIGNED变体适用于打包的图形数据格式,并表示具有每个矢量成员大小的矢量,这些矢量被视为用于打包和对齐目的的单个单元。 MATRIX三种矩阵类型包含FLOAT_32元素,为了对齐目的,将其视为32位。 RS_ *对象:具有实现相关大小的不透明句柄。

Summary

Enum values

Element.DataType  BOOLEAN

 

Element.DataType  FLOAT_16

 

Element.DataType  FLOAT_32

 

Element.DataType  FLOAT_64

 

Element.DataType  MATRIX_2X2

 

Element.DataType  MATRIX_3X3

 

Element.DataType  MATRIX_4X4

 

Element.DataType  NONE

 

Element.DataType  RS_ALLOCATION

 

Element.DataType  RS_ELEMENT

 

Element.DataType  RS_FONT

 

Element.DataType  RS_MESH

 

Element.DataType  RS_PROGRAM_FRAGMENT

 

Element.DataType  RS_PROGRAM_RASTER

 

Element.DataType  RS_PROGRAM_STORE

 

Element.DataType  RS_PROGRAM_VERTEX

 

Element.DataType  RS_SAMPLER

 

Element.DataType  RS_SCRIPT

 

Element.DataType  RS_TYPE

 

Element.DataType  SIGNED_16

 

Element.DataType  SIGNED_32

 

Element.DataType  SIGNED_64

 

Element.DataType  SIGNED_8

 

Element.DataType  UNSIGNED_16

 

Element.DataType  UNSIGNED_32

 

Element.DataType  UNSIGNED_4_4_4_4

 

Element.DataType  UNSIGNED_5_5_5_1

 

Element.DataType  UNSIGNED_5_6_5

 

Element.DataType  UNSIGNED_64

 

Element.DataType  UNSIGNED_8

 

Public methods

static Element.DataType valueOf(String name)
static final DataType[] values()

Inherited methods

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

Enum values

BOOLEAN

Added in API level 11
Element.DataType BOOLEAN

FLOAT_16

Added in API level 23
Element.DataType FLOAT_16

FLOAT_32

Added in API level 11
Element.DataType FLOAT_32

FLOAT_64

Added in API level 11
Element.DataType FLOAT_64

MATRIX_2X2

Added in API level 11
Element.DataType MATRIX_2X2

MATRIX_3X3

Added in API level 11
Element.DataType MATRIX_3X3

MATRIX_4X4

Added in API level 11
Element.DataType MATRIX_4X4

NONE

Added in API level 11
Element.DataType NONE

RS_ALLOCATION

Added in API level 11
Element.DataType RS_ALLOCATION

RS_ELEMENT

Added in API level 11
Element.DataType RS_ELEMENT

RS_FONT

Added in API level 11
Element.DataType RS_FONT

RS_MESH

Added in API level 11
Element.DataType RS_MESH

RS_PROGRAM_FRAGMENT

Added in API level 11
Element.DataType RS_PROGRAM_FRAGMENT

RS_PROGRAM_RASTER

Added in API level 11
Element.DataType RS_PROGRAM_RASTER

RS_PROGRAM_STORE

Added in API level 11
Element.DataType RS_PROGRAM_STORE

RS_PROGRAM_VERTEX

Added in API level 11
Element.DataType RS_PROGRAM_VERTEX

RS_SAMPLER

Added in API level 11
Element.DataType RS_SAMPLER

RS_SCRIPT

Added in API level 11
Element.DataType RS_SCRIPT

RS_TYPE

Added in API level 11
Element.DataType RS_TYPE

SIGNED_16

Added in API level 11
Element.DataType SIGNED_16

SIGNED_32

Added in API level 11
Element.DataType SIGNED_32

SIGNED_64

Added in API level 11
Element.DataType SIGNED_64

SIGNED_8

Added in API level 11
Element.DataType SIGNED_8

UNSIGNED_16

Added in API level 11
Element.DataType UNSIGNED_16

UNSIGNED_32

Added in API level 11
Element.DataType UNSIGNED_32

UNSIGNED_4_4_4_4

Added in API level 11
Element.DataType UNSIGNED_4_4_4_4

UNSIGNED_5_5_5_1

Added in API level 11
Element.DataType UNSIGNED_5_5_5_1

UNSIGNED_5_6_5

Added in API level 11
Element.DataType UNSIGNED_5_6_5

UNSIGNED_64

Added in API level 11
Element.DataType UNSIGNED_64

UNSIGNED_8

Added in API level 11
Element.DataType UNSIGNED_8

Public methods

valueOf

Added in API level 11
Element.DataType valueOf (String name)

Parameters
name String
Returns
Element.DataType

values

Added in API level 11
DataType[] values ()

Returns
DataType[]

Hooray!