Home
last modified time | relevance | path

Searched refs:float4 (Results 1 – 25 of 54) sorted by relevance

123

/frameworks/base/tests/RenderScriptTests/MiscSamples/src/com/example/android/rs/miscsamples/
Dshader_def.rsh22 float4 light0_Posision;
27 float4 light1_Posision;
36 float4 light_Posision[2];
50 float4 light0_DiffuseColor;
51 float4 light0_SpecularColor;
53 float4 light1_DiffuseColor;
54 float4 light1_SpecularColor;
58 float4 light_DiffuseColor[2];
59 float4 light_SpecularColor[2];
63 float4 light0_DiffuseColor;
[all …]
Drsrenderstates.rs377 float4 light0Pos = {-5.0f, 5.0f, -10.0f, 1.0f};
378 float4 light1Pos = {2.0f, 5.0f, 15.0f, 1.0f};
379 float4 light0DiffCol = {0.9f, 0.7f, 0.7f, 1.0f};
380 float4 light0SpecCol = {0.9f, 0.6f, 0.6f, 1.0f};
381 float4 light1DiffCol = {0.5f, 0.5f, 0.9f, 1.0f};
382 float4 light1SpecCol = {0.5f, 0.5f, 0.9f, 1.0f};
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
Dshader_def.rsh22 float4 light0_Posision;
27 float4 light1_Posision;
41 float4 light0_DiffuseColor;
42 float4 light0_SpecularColor;
44 float4 light1_DiffuseColor;
45 float4 light1_SpecularColor;
49 float4 light_DiffuseColor[2];
50 float4 light_SpecularColor[2];
54 float4 light0_DiffuseColor;
55 float4 light0_SpecularColor;
[all …]
Dtorus_test.rs147 float4 light0Pos = {-5.0f, 5.0f, -10.0f, 1.0f};
148 float4 light1Pos = {2.0f, 5.0f, 15.0f, 1.0f};
149 float4 light0DiffCol = {0.9f, 0.7f, 0.7f, 1.0f};
150 float4 light0SpecCol = {0.9f, 0.6f, 0.6f, 1.0f};
151 float4 light1DiffCol = {0.5f, 0.5f, 0.9f, 1.0f};
152 float4 light1SpecCol = {0.5f, 0.5f, 0.9f, 1.0f};
/frameworks/rs/scriptc/
Drs_cl.rsh57 _RS_RUNTIME float4 __attribute__((overloadable)) fnc(float4 v);
62 _RS_RUNTIME int4 __attribute__((overloadable)) fnc(float4 v);
67 _RS_RUNTIME float4 __attribute__((overloadable)) fnc(float4 v1, float4 v2);
72 _RS_RUNTIME float4 __attribute__((overloadable)) fnc(float4 v1, float v2);
77 _RS_RUNTIME float4 __attribute__((overloadable)) fnc(float4 v1, int4 v2); \
82 _RS_RUNTIME float4 __attribute__((overloadable)) fnc(float4 v1, int v2);
89 _RS_RUNTIME float4 __attribute__((overloadable)) \
90 fnc(float4 v1, float4 *v2);
95 _RS_RUNTIME float4 __attribute__((overloadable)) fnc(float4 v1, int4 *v2);
102 _RS_RUNTIME float4 __attribute__((overloadable)) \
[all …]
Drs_math.rsh103 float4 *left, float4 *right,
104 float4 *top, float4 *bottom,
105 float4 *near, float4 *far) {
153 * @param sphere float4 representing the sphere
162 rsIsSphereInFrustum(float4 *sphere,
163 float4 *left, float4 *right,
164 float4 *top, float4 *bottom,
165 float4 *near, float4 *far) {
236 _RS_RUNTIME uchar4 __attribute__((overloadable)) rsPackColorTo8888(float4 color);
239 * Unpack a uchar4 color to float4. The resulting float range will be (0-1).
[all …]
Drs_matrix.rsh276 _RS_RUNTIME float4 __attribute__((overloadable))
277 rsMatrixMultiply(rs_matrix4x4 *m, float4 in);
282 _RS_RUNTIME float4 __attribute__((overloadable))
288 _RS_RUNTIME float4 __attribute__((overloadable))
313 _RS_RUNTIME float4 __attribute__((overloadable))
314 rsMatrixMultiply(const rs_matrix4x4 *m, float4 in);
319 _RS_RUNTIME float4 __attribute__((overloadable))
325 _RS_RUNTIME float4 __attribute__((overloadable))
Drs_allocation.rsh178 extern const float4 __attribute__((overloadable))
189 extern const float4 __attribute__((overloadable))
198 extern const float4 __attribute__((overloadable))
210 extern const float4 __attribute__((overloadable))
/frameworks/compile/libbcc/lib/ScriptCRT/
Drs_cl.c54 extern float4 __attribute__((overloadable)) fnc(float4 v) { \
55 float4 r; \
77 extern int4 __attribute__((overloadable)) fnc(float4 v) { \
100 extern float4 __attribute__((overloadable)) fnc(float4 v1, float4 v2) { \
101 float4 r; \
123 extern float4 __attribute__((overloadable)) fnc(float4 v1, float v2) { \
124 float4 r; \
146 extern float4 __attribute__((overloadable)) fnc(float4 v1, int4 v2) { \
147 float4 r; \
169 extern float4 __attribute__((overloadable)) fnc(float4 v1, int v2) { \
[all …]
Drs_sample.c106 getSample##vecsize(rs_allocation a, float4 weights, \
122 SAMPLE_1D_FUNC(4, uchar4, float4, convert_float4)
128 SAMPLE_2D_FUNC(4, uchar4, float4, convert_float4)
139 float4 zero = {0.0f, 0.0f, 0.0f, 0.0f}; \
170 float4 sample0 = sample_LOD_LinearPixel(a, type, vecSize, dt, s, uv, lod0); \
171 float4 sample1 = sample_LOD_LinearPixel(a, type, vecSize, dt, s, uv, lod1); \
182 float4 result; \
209 float4 result; \
233 static float4 __attribute__((overloadable))
240 static float4 __attribute__((overloadable))
[all …]
Dclamp.c39 extern float4 __attribute__((overloadable)) clamp(float4 amount, float4 low, float4 high) { in clamp()
40 float4 r; in clamp()
63 extern float4 __attribute__((overloadable)) clamp(float4 amount, float low, float high) { in clamp()
64 float4 r; in clamp()
Drs_core.c12 extern float4 __attribute__((overloadable)) convert_float4(uchar4 c);
24 extern void __attribute__((overloadable)) rsDebug(const char *s, float4 v) { in rsDebug()
66 extern float4 rsUnpackColor8888(uchar4 c) in rsUnpackColor8888()
68 float4 ret = (float4)0.003921569f; in rsUnpackColor8888()
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/
Dtest_app.rsh29 float4 cameraPos;
33 float4 lightPos_0;
34 float4 lightColor_0;
35 float4 lightPos_1;
36 float4 lightColor_1;
37 float4 cameraPos;
38 float4 diffuse;
49 float4 position;
/frameworks/base/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/
Dhorizontal_blur.rs6 void root(float4 *out, const void *usrData, uint32_t x, uint32_t y) {
12 const float4 *i = (const float4 *)rsGetElementAt(fs->ain, x + r, y); constant
20 const float4 *i = (const float4 *)rsGetElementAt(fs->ain, validX, y); constant
Dvertical_blur.rs65 const float4 *i = (const float4 *)rsGetElementAt(fs->ain, x, y + r); constant
72 const float4 *i = (const float4 *)rsGetElementAt(fs->ain, x, validH); constant
Dthreshold.rs11 float4 * ScratchPixel1;
12 float4 * ScratchPixel2;
/frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/
Dclamp.rs25 float4 src4 = { 2.0f, 2.0f, 1.0f, 4.0f };
26 float4 min4 = { 0.5f, -3.0f, 3.0f, 4.0f };
27 float4 max4 = { 1.0f, 9.0f, 4.0f, 4.0f };
29 float4 res4 = clamp(src4, min4, max4);
Dconvert.rs3 float4 f4 = { 2.0f, 4.0f, 6.0f, 8.0f };
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
Dscenegraph_objects.rsh65 float4 value;
129 float4 boundingSphere;
130 float4 worldBoundingSphere;
142 float4 clear_color;
152 float4 position;
159 float4 frustumPlanes[6];
169 float4 position;
170 float4 color;
180 float4 float_value;
261 float4 pos = {(float)screenX, height - (float)screenY, 0.0f, 1.0f};
Dcull.rs27 const float4 unitVec = {0.57735f, 0.57735f, 0.57735f, 0.0f}; constant
28 float4 scaledVec = rsMatrixMultiply(&objTransform->globalMat, unitVec);
41 float4 sphere;
Dlight.rs27 float4 zero = {0.0f, 0.0f, 0.0f, 1.0f};
Dcamera.rs41 float4 zero = {0.0f, 0.0f, 0.0f, 1.0f};
/frameworks/compile/slang/tests/F_mix_vector/
Dmix_vector.rs5 float4 f4;
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/
Dtransform_def.rsh28 float4 transforms[16];
Dtransform.rs28 static void appendTransformation(int type, float4 data, rs_matrix4x4 *mat) {

123