Home
last modified time | relevance | path

Searched refs:rs (Results 1 – 25 of 396) sorted by relevance

12345678910>>...16

/frameworks/base/graphics/java/android/renderscript/
DElement.java300 public static Element BOOLEAN(RenderScript rs) { in BOOLEAN() argument
301 if(rs.mElement_BOOLEAN == null) { in BOOLEAN()
302 rs.mElement_BOOLEAN = createUser(rs, DataType.BOOLEAN); in BOOLEAN()
304 return rs.mElement_BOOLEAN; in BOOLEAN()
314 public static Element U8(RenderScript rs) { in U8() argument
315 if(rs.mElement_U8 == null) { in U8()
316 rs.mElement_U8 = createUser(rs, DataType.UNSIGNED_8); in U8()
318 return rs.mElement_U8; in U8()
328 public static Element I8(RenderScript rs) { in I8() argument
329 if(rs.mElement_I8 == null) { in I8()
[all …]
DSampler.java57 Sampler(int id, RenderScript rs) { in Sampler() argument
58 super(id, rs); in Sampler()
104 public static Sampler CLAMP_NEAREST(RenderScript rs) { in CLAMP_NEAREST() argument
105 if(rs.mSampler_CLAMP_NEAREST == null) { in CLAMP_NEAREST()
106 Builder b = new Builder(rs); in CLAMP_NEAREST()
111 rs.mSampler_CLAMP_NEAREST = b.create(); in CLAMP_NEAREST()
113 return rs.mSampler_CLAMP_NEAREST; in CLAMP_NEAREST()
124 public static Sampler CLAMP_LINEAR(RenderScript rs) { in CLAMP_LINEAR() argument
125 if(rs.mSampler_CLAMP_LINEAR == null) { in CLAMP_LINEAR()
126 Builder b = new Builder(rs); in CLAMP_LINEAR()
[all …]
DProgramRaster.java56 ProgramRaster(int id, RenderScript rs) { in ProgramRaster() argument
57 super(id, rs); in ProgramRaster()
85 public static ProgramRaster CULL_BACK(RenderScript rs) { in CULL_BACK() argument
86 if(rs.mProgramRaster_CULL_BACK == null) { in CULL_BACK()
87 ProgramRaster.Builder builder = new ProgramRaster.Builder(rs); in CULL_BACK()
89 rs.mProgramRaster_CULL_BACK = builder.create(); in CULL_BACK()
91 return rs.mProgramRaster_CULL_BACK; in CULL_BACK()
97 public static ProgramRaster CULL_FRONT(RenderScript rs) { in CULL_FRONT() argument
98 if(rs.mProgramRaster_CULL_FRONT == null) { in CULL_FRONT()
99 ProgramRaster.Builder builder = new ProgramRaster.Builder(rs); in CULL_FRONT()
[all …]
DProgramStore.java148 ProgramStore(int id, RenderScript rs) { in ProgramStore() argument
149 super(id, rs); in ProgramStore()
237 public static ProgramStore BLEND_NONE_DEPTH_TEST(RenderScript rs) { in BLEND_NONE_DEPTH_TEST() argument
238 if(rs.mProgramStore_BLEND_NONE_DEPTH_TEST == null) { in BLEND_NONE_DEPTH_TEST()
239 ProgramStore.Builder builder = new ProgramStore.Builder(rs); in BLEND_NONE_DEPTH_TEST()
244 rs.mProgramStore_BLEND_NONE_DEPTH_TEST = builder.create(); in BLEND_NONE_DEPTH_TEST()
246 return rs.mProgramStore_BLEND_NONE_DEPTH_TEST; in BLEND_NONE_DEPTH_TEST()
258 public static ProgramStore BLEND_NONE_DEPTH_NONE(RenderScript rs) { in BLEND_NONE_DEPTH_NONE() argument
259 if(rs.mProgramStore_BLEND_NONE_DEPTH_NO_DEPTH == null) { in BLEND_NONE_DEPTH_NONE()
260 ProgramStore.Builder builder = new ProgramStore.Builder(rs); in BLEND_NONE_DEPTH_NONE()
[all …]
DFileA3D.java133 static synchronized BaseObj internalCreate(RenderScript rs, IndexEntry entry) { in internalCreate() argument
143 int objectID = rs.nFileA3DGetEntryByIndex(entry.mID, entry.mIndex); in internalCreate()
150 entry.mLoadedObj = new Mesh(objectID, rs); in internalCreate()
158 IndexEntry(RenderScript rs, int index, int id, String name, EntryType type) { in IndexEntry() argument
159 mRS = rs; in IndexEntry()
171 FileA3D(int id, RenderScript rs, InputStream stream) { in FileA3D() argument
172 super(id, rs); in FileA3D()
232 static public FileA3D createFromAsset(RenderScript rs, AssetManager mgr, String path) { in createFromAsset() argument
233 rs.validate(); in createFromAsset()
234 int fileId = rs.nFileA3DCreateFromAsset(mgr, path); in createFromAsset()
[all …]
DFont.java153 Font(int id, RenderScript rs) { in Font() argument
154 super(id, rs); in Font()
161 … static public Font createFromFile(RenderScript rs, Resources res, String path, float pointSize) { in createFromFile() argument
162 rs.validate(); in createFromFile()
164 int fontId = rs.nFontCreateFromFile(path, pointSize, dpi); in createFromFile()
169 Font rsFont = new Font(fontId, rs); in createFromFile()
177 static public Font createFromFile(RenderScript rs, Resources res, File path, float pointSize) { in createFromFile() argument
178 return createFromFile(rs, res, path.getAbsolutePath(), pointSize); in createFromFile()
184 … static public Font createFromAsset(RenderScript rs, Resources res, String path, float pointSize) { in createFromAsset() argument
185 rs.validate(); in createFromAsset()
[all …]
DAllocation.java236 Allocation(int id, RenderScript rs, Type t, int usage) { in Allocation() argument
237 super(id, rs); in Allocation()
1013 … static public Allocation createTyped(RenderScript rs, Type type, MipmapControl mips, int usage) { in createTyped() argument
1014 rs.validate(); in createTyped()
1015 if (type.getID(rs) == 0) { in createTyped()
1018 int id = rs.nAllocationCreateTyped(type.getID(rs), mips.mID, usage, 0); in createTyped()
1022 return new Allocation(id, rs, type, usage); in createTyped()
1036 static public Allocation createTyped(RenderScript rs, Type type, int usage) { in createTyped() argument
1037 return createTyped(rs, type, MipmapControl.MIPMAP_NONE, usage); in createTyped()
1050 static public Allocation createTyped(RenderScript rs, Type type) { in createTyped() argument
[all …]
DProgramVertexFixedFunction.java33 ProgramVertexFixedFunction(int id, RenderScript rs) { in ProgramVertexFixedFunction() argument
34 super(id, rs); in ProgramVertexFixedFunction()
53 public InternalBuilder(RenderScript rs) { in InternalBuilder() argument
54 super(rs); in InternalBuilder()
124 public Builder(RenderScript rs) { in Builder() argument
125 mRS = rs; in Builder()
138 static Type getConstantInputType(RenderScript rs) { in getConstantInputType() argument
139 Element.Builder b = new Element.Builder(rs); in getConstantInputType()
140 b.add(Element.MATRIX4X4(rs), "MV"); in getConstantInputType()
141 b.add(Element.MATRIX4X4(rs), "P"); in getConstantInputType()
[all …]
DPath.java44 Path(int id, RenderScript rs, Primitive p, Allocation vtx, Allocation loop, float q) { in Path() argument
45 super(id, rs); in Path()
69 … public static Path createStaticPath(RenderScript rs, Primitive p, float quality, Allocation vtx) { in createStaticPath() argument
70 int id = rs.nPathCreate(p.mID, false, vtx.getID(rs), 0, quality); in createStaticPath()
71 Path newPath = new Path(id, rs, p, null, null, quality); in createStaticPath()
75 …public static Path createStaticPath(RenderScript rs, Primitive p, float quality, Allocation vtx, A… in createStaticPath() argument
79 …public static Path createDynamicPath(RenderScript rs, Primitive p, float quality, Allocation vtx) { in createDynamicPath() argument
83 …public static Path createDynamicPath(RenderScript rs, Primitive p, float quality, Allocation vtx, … in createDynamicPath() argument
DScriptC.java44 protected ScriptC(int id, RenderScript rs) { in ScriptC() argument
45 super(id, rs); in ScriptC()
56 protected ScriptC(RenderScript rs, Resources resources, int resourceID) { in ScriptC() argument
57 super(0, rs); in ScriptC()
58 int id = internalCreate(rs, resources, resourceID); in ScriptC()
66 …private static synchronized int internalCreate(RenderScript rs, Resources resources, int resourceI… in internalCreate() argument
98 return rs.nScriptCCreate(resName, rs.mCachePath, pgm, pgmLength); in internalCreate()
DAllocationAdapter.java28 AllocationAdapter(int id, RenderScript rs, Allocation alloc) { in AllocationAdapter() argument
29 super(id, rs, alloc.mType, alloc.mUsage); in AllocationAdapter()
33 int getID(RenderScript rs) { in getID() argument
214 static public AllocationAdapter create1D(RenderScript rs, Allocation a) { in create1D() argument
215 rs.validate(); in create1D()
216 AllocationAdapter aa = new AllocationAdapter(0, rs, a); in create1D()
225 static public AllocationAdapter create2D(RenderScript rs, Allocation a) { in create2D() argument
227 rs.validate(); in create2D()
228 AllocationAdapter aa = new AllocationAdapter(0, rs, a); in create2D()
DBaseObj.java28 BaseObj(int id, RenderScript rs) { in BaseObj() argument
29 rs.validate(); in BaseObj()
30 mRS = rs; in BaseObj()
51 int getID(RenderScript rs) { in getID() argument
59 if ((rs != null) && (rs != mRS)) { in getID()
/frameworks/rs/cpp/
DElement.h94 static sp<const Element> BOOLEAN(RenderScript *rs);
95 static sp<const Element> U8(RenderScript *rs);
96 static sp<const Element> I8(RenderScript *rs);
97 static sp<const Element> U16(RenderScript *rs);
98 static sp<const Element> I16(RenderScript *rs);
99 static sp<const Element> U32(RenderScript *rs);
100 static sp<const Element> I32(RenderScript *rs);
101 static sp<const Element> U64(RenderScript *rs);
102 static sp<const Element> I64(RenderScript *rs);
103 static sp<const Element> F32(RenderScript *rs);
[all …]
DElement.cpp70 #define CREATE_USER(N, T) sp<const Element> Element::N(RenderScript *rs) { \
71 return createUser(rs, RS_TYPE_##T); \
98 #define CREATE_PIXEL(N, T, K) sp<const Element> Element::N(RenderScript *rs) { \
99 return createPixel(rs, RS_TYPE_##T, RS_KIND_##K); \
107 #define CREATE_VECTOR(N, T) sp<const Element> Element::N##_2(RenderScript *rs) { \
108 return createVector(rs, RS_TYPE_##T, 2); \
110 sp<const Element> Element::N##_3(RenderScript *rs) { \
111 return createVector(rs, RS_TYPE_##T, 3); \
113 sp<const Element> Element::N##_4(RenderScript *rs) { \
114 return createVector(rs, RS_TYPE_##T, 4); \
[all …]
DRenderScript.cpp93 RenderScript *rs = static_cast<RenderScript *>(vrsc); in threadProc() local
97 rsContextInitToClient(rs->mContext); in threadProc()
98 rs->mMessageRun = true; in threadProc()
100 while (rs->mMessageRun) { in threadProc()
104 RsMessageToClientType r = rsContextPeekMessage(rs->mContext, in threadProc()
116 rsContextGetMessage(rs->mContext, rbuf, rbuf_size, &receiveLen, sizeof(receiveLen), in threadProc()
123 if(rs->mMessageFunc != NULL) { in threadProc()
124 rs->mErrorFunc(usrID, (const char *)rbuf); in threadProc()
134 if(rs->mMessageFunc != NULL) { in threadProc()
135 rs->mMessageFunc(usrID, rbuf, receiveLen); in threadProc()
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
DSceneManager.java90 RenderScriptGL rs = sSceneManager.mRS; in getDefault() local
91 Type.Builder b = new Type.Builder(rs, Element.RGBA_8888(rs)); in getDefault()
101 Allocation defaultImage = Allocation.createTyped(rs, bitmapType, mip, usage); in getDefault()
165 static Allocation createFromBitmap(Bitmap b, RenderScriptGL rs, boolean isCube) { in createFromBitmap() argument
172 return Allocation.createCubemapFromBitmap(rs, b, mip, usage); in createFromBitmap()
174 return Allocation.createFromBitmap(rs, b, mip, usage); in createFromBitmap()
177 public static Allocation loadCubemap(String name, RenderScriptGL rs, Resources res) { in loadCubemap() argument
178 return createFromBitmap(loadBitmap(name, res), rs, true); in loadCubemap()
181 public static Allocation loadCubemap(int id, RenderScriptGL rs, Resources res) { in loadCubemap() argument
182 return createFromBitmap(BitmapFactory.decodeResource(res, id), rs, true); in loadCubemap()
[all …]
DRenderable.java71 RenderScriptGL rs = SceneManager.getRS(); in setRenderState() local
72 updateFieldItem(rs); in setRenderState()
100 RenderScriptGL rs = SceneManager.getRS(); in setTransform() local
101 updateFieldItem(rs); in setTransform()
136 void updateTextures(RenderScriptGL rs) { in updateTextures() argument
164 ScriptField_Renderable_s getRsField(RenderScriptGL rs, Resources res) { in getRsField() argument
168 updateFieldItem(rs); in getRsField()
169 updateTextures(rs); in getRsField()
171 mField = new ScriptField_Renderable_s(rs, 1); in getRsField()
177 void updateVertexConstants(RenderScriptGL rs) { in updateVertexConstants() argument
[all …]
DTransform.java53 RenderScriptGL rs = SceneManager.getRS(); in updateRSChildData() local
55 Allocation childRSData = Allocation.createSized(rs, Element.ALLOCATION(rs), in updateRSChildData()
76 RenderScriptGL rs = SceneManager.getRS(); in getRSData() local
77 if (rs == null) { in getRSData()
80 mField = new ScriptField_SgTransform(rs, 1); in getRSData()
83 mTransformData.name = getNameAlloc(rs); in getRSData()
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/
DFullscreenBlur.java57 static void createRenderTargets(RenderScriptGL rs, int w, int h) { in createRenderTargets() argument
60 Type.Builder b = new Type.Builder(rs, Element.RGBA_8888(rs)); in createRenderTargets()
63 … sRenderTargetBlur0Color = new TextureRenderTarget(Allocation.createTyped(rs, renderType, usage)); in createRenderTargets()
64 … sRenderTargetBlur1Color = new TextureRenderTarget(Allocation.createTyped(rs, renderType, usage)); in createRenderTargets()
65 … sRenderTargetBlur2Color = new TextureRenderTarget(Allocation.createTyped(rs, renderType, usage)); in createRenderTargets()
67 b = new Type.Builder(rs, Element.createPixel(rs, Element.DataType.UNSIGNED_16, in createRenderTargets()
71 … sRenderTargetBlur0Depth = new TextureRenderTarget(Allocation.createTyped(rs, renderType, usage)); in createRenderTargets()
72 … sRenderTargetBlur1Depth = new TextureRenderTarget(Allocation.createTyped(rs, renderType, usage)); in createRenderTargets()
73 … sRenderTargetBlur2Depth = new TextureRenderTarget(Allocation.createTyped(rs, renderType, usage)); in createRenderTargets()
94 static void addBlurPasses(Scene scene, RenderScriptGL rs, Camera cam) { in addBlurPasses() argument
[all …]
/frameworks/compile/slang/
DRSSpec.mk17 RS_SPEC_GEN := $(BUILD_OUT_EXECUTABLES)/rs-spec-gen$(BUILD_EXECUTABLE_SUFFIX)
19 define generate-rs-spec-inc
32 $(call generate-rs-spec-inc,clang-builtin-enums)
38 $(call generate-rs-spec-inc,rs-data-type-enums)
44 $(call generate-rs-spec-inc,rs-matrix-type-enums)
50 $(call generate-rs-spec-inc,rs-object-type-enums)
56 $(call generate-rs-spec-inc,rs-data-element-enums)
/frameworks/rs/tests/
Dcompute.cpp15 RenderScript *rs = new RenderScript(); in main() local
16 printf("New RS %p\n", rs); in main()
18 bool r = rs->init(16); in main()
21 sp<const Element> e = Element::RGBA_8888(rs); in main()
24 Type::Builder tb(rs, e); in main()
31 sp<Allocation> a1 = Allocation::createSized(rs, e, 1000); in main()
34 sp<Allocation> ain = Allocation::createTyped(rs, t); in main()
35 sp<Allocation> aout = Allocation::createTyped(rs, t); in main()
38 sp<ScriptC_mono> sc = new ScriptC_mono(rs, NULL, 0); in main()
59 delete rs; in main()
/frameworks/compile/slang/tests/F_root_compute_really_bad/
Dstderr.txt.expect1 root_compute_really_bad.rs:4:5: error: Compute kernel root() is required to return a void type
2 root_compute_really_bad.rs:4:5: error: Compute kernel root() must have at least one parameter for i…
3 root_compute_really_bad.rs:4:14: error: Unexpected kernel root() parameter 'ain' of type 'int'
4 root_compute_really_bad.rs:4:23: error: Unexpected kernel root() parameter 'aout' of type 'int'
5 root_compute_really_bad.rs:4:33: error: Unexpected kernel root() parameter 'usrData' of type 'int'
6 root_compute_really_bad.rs:4:48: error: Unexpected kernel root() parameter 'x1' of type 'float'
7 root_compute_really_bad.rs:4:59: error: Unexpected kernel root() parameter 'y1' of type 'double'
8 root_compute_really_bad.rs:5:31: error: Duplicate parameter entry (by position/name): 'x'
9 root_compute_really_bad.rs:6:19: error: Unexpected kernel root() parameter 'extra1' of type 'uint32…
10 root_compute_really_bad.rs:6:36: error: Unexpected kernel root() parameter 'extra2' of type 'uint32…
/frameworks/base/tests/RenderScriptTests/ComputePerf/src/com/example/android/rs/computeperf/
DLaunchTest.java17 package com.example.android.rs.computeperf;
29 LaunchTest(RenderScript rs, Resources res) { in LaunchTest() argument
30 mRS = rs; in LaunchTest()
35 mAllocationX = Allocation.createSized(rs, Element.U8(rs), dim); in LaunchTest()
36 Type.Builder tb = new Type.Builder(rs, Element.U8(rs)); in LaunchTest()
39 mAllocationXY = Allocation.createTyped(rs, tb.create()); in LaunchTest()
DMandelbrot.java17 package com.example.android.rs.computeperf;
27 Mandelbrot(RenderScript rs, Resources res) { in Mandelbrot() argument
28 mRS = rs; in Mandelbrot()
31 Type.Builder tb = new Type.Builder(rs, Element.U8_4(rs)); in Mandelbrot()
34 mAllocationXY = Allocation.createTyped(rs, tb.create()); in Mandelbrot()
/frameworks/compile/slang/tests/F_bad_pragmas/
Dstderr.txt.expect1 bad_pragmas.rs:7:8: error: no pragma name or value
2 bad_pragmas.rs:8:18: error: expected value after '#pragma onlyLeft('
3 bad_pragmas.rs:9:27: error: missing ')' after '#pragma missingRight(paren'
4 bad_pragmas.rs:10:16: error: missing ')' after '#pragma ok(not'
5 bad_pragmas.rs:10:18: error: expected identifier or '('

12345678910>>...16