本文整理匯總了Java中android.renderscript.Element.F32屬性的典型用法代碼示例。如果您正苦於以下問題:Java Element.F32屬性的具體用法?Java Element.F32怎麽用?Java Element.F32使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類android.renderscript.Element
的用法示例。
在下文中一共展示了Element.F32屬性的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: config
protected void config(){
opt.setX(0,height);
Type.Builder builder = new Type.Builder(rs, Element.F32(rs));
builder.setX(height);
out = Allocation.createTyped(rs,builder.create());
rsSum.set_g_x_start(0);
rsSum.set_g_x_end(width);
rsSum.set_g_src(parameter.allocIn);
}
示例2: createAllocOutEstimateErr
private void createAllocOutEstimateErr(){
Type.Builder builder = new Type.Builder(rs, Element.F32(rs));
builder.setX(curRect.width() + 1);
builder.setY(curRect.height()+1);
Type type = builder.create();
outErr = Allocation.createTyped(rs,type);
}
示例3: allocSecPartial
static private void allocSecPartial(){
Type.Builder builder = new Type.Builder(rs,Element.F32(rs));
builder.setX(data.getOriWidth());
builder.setY(data.getOriHeight());
allocBaseSecPartialX = Allocation.createTyped(rs,builder.create());
allocBaseSecPartialY = Allocation.createTyped(rs,builder.create());
}
示例4: getTypeOutAlloc
private Type getTypeOutAlloc(){
Type.Builder allocConfig = new Type.Builder(rs,
Element.F32(rs));
allocConfig.setX(rect.height()+1);
return allocConfig.create();
}