Home
last modified time | relevance | path

Searched refs:floatData (Results 1 – 25 of 27) sorted by relevance

12

/third_party/flutter/skia/third_party/externals/angle2/src/tests/test_utils/
Ddraw_call_perf_utils.cpp57 void Generate2DTriangleData(size_t numTris, std::vector<float> *floatData) in Generate2DTriangleData() argument
61 floatData->push_back(1.0f); in Generate2DTriangleData()
62 floatData->push_back(2.0f); in Generate2DTriangleData()
64 floatData->push_back(0.0f); in Generate2DTriangleData()
65 floatData->push_back(0.0f); in Generate2DTriangleData()
67 floatData->push_back(2.0f); in Generate2DTriangleData()
68 floatData->push_back(0.0f); in Generate2DTriangleData()
127 std::vector<GLfloat> floatData; in Create2DTriangleBuffer() local
128 Generate2DTriangleData(numTris, &floatData); in Create2DTriangleBuffer()
131 if (floatData.empty()) in Create2DTriangleBuffer()
[all …]
/third_party/skia/third_party/externals/angle2/src/tests/test_utils/
Ddraw_call_perf_utils.cpp84 void Generate2DTriangleData(size_t numTris, std::vector<float> *floatData) in Generate2DTriangleData() argument
88 floatData->push_back(1.0f); in Generate2DTriangleData()
89 floatData->push_back(2.0f); in Generate2DTriangleData()
91 floatData->push_back(0.0f); in Generate2DTriangleData()
92 floatData->push_back(0.0f); in Generate2DTriangleData()
94 floatData->push_back(2.0f); in Generate2DTriangleData()
95 floatData->push_back(0.0f); in Generate2DTriangleData()
182 std::vector<GLfloat> floatData; in Create2DTriangleBuffer() local
183 Generate2DTriangleData(numTris, &floatData); in Create2DTriangleBuffer()
186 if (floatData.empty()) in Create2DTriangleBuffer()
[all …]
/third_party/skia/third_party/externals/angle2/src/tests/perf_tests/
DBufferSubData.cpp99 GLsizeiptr GetNormalizedData(GLsizeiptr numElements, GLfloat *floatData, std::vector<uint8_t> *data) in GetNormalizedData() argument
108 GLfloat scaled = floatData[dataIndex] * 0.25f; in GetNormalizedData()
117 GLsizeiptr GetIntData(GLsizeiptr numElements, GLfloat *floatData, std::vector<uint8_t> *data) in GetIntData() argument
126 destPtr[dataIndex] = static_cast<T>(floatData[dataIndex]); in GetIntData()
138 GLfloat *floatData = GetFloatData(componentCount); in GetVertexData() local
144 memcpy(data->data(), floatData, triDataSize); in GetVertexData()
153 triDataSize = GetNormalizedData<GLbyte>(numElements, floatData, data); in GetVertexData()
156 triDataSize = GetNormalizedData<GLshort>(numElements, floatData, data); in GetVertexData()
159 triDataSize = GetNormalizedData<GLint>(numElements, floatData, data); in GetVertexData()
162 triDataSize = GetNormalizedData<GLubyte>(numElements, floatData, data); in GetVertexData()
[all …]
DMapBufferRange.cpp109 const GLfloat *floatData, in GetNormalizedData() argument
119 GLfloat scaled = floatData[dataIndex] * 0.25f; in GetNormalizedData()
128 GLsizei GetIntData(GLsizeiptr numElements, const GLfloat *floatData, std::vector<uint8_t> *data) in GetIntData() argument
137 destPtr[dataIndex] = static_cast<T>(floatData[dataIndex]); in GetIntData()
149 const GLfloat *floatData = GetFloatData(componentCount); in GetVertexData() local
155 memcpy(data->data(), floatData, triDataSize); in GetVertexData()
164 triDataSize = GetNormalizedData<GLbyte>(numElements, floatData, data); in GetVertexData()
167 triDataSize = GetNormalizedData<GLshort>(numElements, floatData, data); in GetVertexData()
170 triDataSize = GetNormalizedData<GLint>(numElements, floatData, data); in GetVertexData()
173 triDataSize = GetNormalizedData<GLubyte>(numElements, floatData, data); in GetVertexData()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/tests/perf_tests/
DBufferSubData.cpp99 GLsizeiptr GetNormalizedData(GLsizeiptr numElements, GLfloat *floatData, std::vector<uint8_t> *data) in GetNormalizedData() argument
108 GLfloat scaled = floatData[dataIndex] * 0.25f; in GetNormalizedData()
117 GLsizeiptr GetIntData(GLsizeiptr numElements, GLfloat *floatData, std::vector<uint8_t> *data) in GetIntData() argument
126 destPtr[dataIndex] = static_cast<T>(floatData[dataIndex]); in GetIntData()
138 GLfloat *floatData = GetFloatData(componentCount); in GetVertexData() local
144 memcpy(data->data(), floatData, triDataSize); in GetVertexData()
153 triDataSize = GetNormalizedData<GLbyte>(numElements, floatData, data); in GetVertexData()
156 triDataSize = GetNormalizedData<GLshort>(numElements, floatData, data); in GetVertexData()
159 triDataSize = GetNormalizedData<GLint>(numElements, floatData, data); in GetVertexData()
162 triDataSize = GetNormalizedData<GLubyte>(numElements, floatData, data); in GetVertexData()
[all …]
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DUniformBufferTest.cpp67 float floatData[4] = {0.5f, 0.75f, 0.25f, 1.0f}; in TEST_P() local
70 glBufferData(GL_UNIFORM_BUFFER, sizeof(float) * 4, floatData, GL_STATIC_DRAW); in TEST_P()
544 float floatData[4] = {0.5f, 0.75f, 0.25f, 1.0f}; in TEST_P() local
551 glBufferSubData(GL_UNIFORM_BUFFER, 0, sizeof(float) * 4, floatData); in TEST_P()
581 std::array<float, 4> floatData = {{0.5f, 0.75f, 0.25f, 1.0f}}; in TEST_P() local
582 memcpy(expectedData.data(), floatData.data(), smallSize); in TEST_P()
1222 float floatData[4] = {0.5f, 0.75f, 0.25f, 1.0f}; in TEST_P() local
1225 glBufferData(GL_UNIFORM_BUFFER, sizeof(float) * 4, floatData, GL_STATIC_DRAW); in TEST_P()
1938 void setArrayValues(std::vector<GLfloat> &floatData, in setArrayValues() argument
1963 floatData[i * stride + firstElementOffset + 4 * j + 3] = w1; in setArrayValues()
[all …]
/third_party/skia/third_party/externals/oboe/src/flowgraph/
DSinkI24.cpp44 const float *floatData = input.getBuffer(); in read() local
47 memcpy_to_p24_from_float(byteData, floatData, numSamples); in read()
50 floatData += numSamples; in read()
55 int32_t n = (int32_t) (*floatData++ * 0x00800000); in read()
DSinkFloat.cpp30 float *floatData = (float *) data; in read() local
43 memcpy(floatData, signal, numSamples * sizeof(float)); in read()
44 floatData += numSamples; in read()
DSourceI16.cpp34 float *floatData = output.getBuffer(); in onProcess() local
45 memcpy_to_float_from_i16(floatData, shortData, numSamples); in onProcess()
48 *floatData++ = *shortData++ * (1.0f / 32768); in onProcess()
DSourceI24.cpp36 float *floatData = output.getBuffer(); in onProcess() local
47 memcpy_to_float_from_p24(floatData, byteData, numSamples); in onProcess()
59 *floatData++ = pad * scale; // scale to range -1.0 to 1.0 in onProcess()
DSourceFloat.cpp38 const float *floatData = &floatBase[mFrameIndex * channelCount]; in onProcess() local
39 memcpy(outputBuffer, floatData, numSamples * sizeof(float)); in onProcess()
/third_party/skia/third_party/externals/oboe/src/common/
DSourceI16Caller.cpp34 float *floatData = output.getBuffer(); in onProcess() local
39 memcpy_to_float_from_i16(floatData, shortData, numSamples); in onProcess()
42 *floatData++ = *shortData++ * (1.0f / 32768); in onProcess()
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/cpp/
DInputStreamCallbackAnalyzer.cpp42 float *floatData = (float *) audioData; in onAudioReady() local
44 mRecording->write(floatData, numFrames); in onAudioReady()
46 float *frameData = floatData; in onAudioReady()
DPlayRecordingCallback.cpp26 float *floatData = (float *)audioData; in onAudioReady() local
28 int32_t framesRead = mRecording->read(floatData, numFrames); in onAudioReady()
/third_party/skia/src/gpu/effects/
DGrSkSLFP.cpp58 const float* floatData = reinterpret_cast<const float*>(fUniformData); in emitCode() local
79 value.append(isFloat ? SkSL::to_string(floatData[i]) in emitCode()
238 auto floatData = [=] { return SkTAddOffset<const float>(uniformData, v.offset); }; in onSetData() local
241 case Type::kFloat: pdman.set1fv(handle, v.count, floatData()); break; in onSetData()
242 case Type::kFloat2: pdman.set2fv(handle, v.count, floatData()); break; in onSetData()
243 case Type::kFloat3: pdman.set3fv(handle, v.count, floatData()); break; in onSetData()
244 case Type::kFloat4: pdman.set4fv(handle, v.count, floatData()); break; in onSetData()
246 case Type::kFloat2x2: pdman.setMatrix2fv(handle, v.count, floatData()); break; in onSetData()
247 case Type::kFloat3x3: pdman.setMatrix3fv(handle, v.count, floatData()); break; in onSetData()
248 case Type::kFloat4x4: pdman.setMatrix4fv(handle, v.count, floatData()); break; in onSetData()
/third_party/vk-gl-cts/external/openglcts/modules/glesext/texture_cube_map_array/
DesextcTextureCubeMapArrayImageOperations.cpp555 std::vector<glw::GLfloat> floatData; in iterate() local
570 floatData.resize(width * height * depth * m_n_components); in iterate()
582 fillData<glw::GLfloat>(&floatData[0], width, height, depth, m_n_components, m_f_base); in iterate()
598 GL_RGBA, GL_FLOAT, &floatData[0]); in iterate()
634 m_n_components, GL_RGBA, GL_FLOAT, ST_MUTABLE, &floatData[0])) in iterate()
659 GL_RGBA, GL_FLOAT, &floatData[0]); in iterate()
695 m_n_components, GL_RGBA, GL_FLOAT, ST_IMMUTABLE, &floatData[0])) in iterate()
/third_party/protobuf/js/compatibility_tests/v3.0.0/binary/
Dreader_test.js742 var floatData = [1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7, 8.8, 9.9, 10.10];
746 for (var i = 0; i < floatData.length; i++) {
747 floatData[i] = truncate(floatData[i]);
762 writer.writePackedFloat(2, floatData);
805 assertElementsEquals(reader.readPackedFloat(), floatData);
/third_party/protobuf/js/compatibility_tests/v3.1.0/binary/
Dreader_test.js742 var floatData = [1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7, 8.8, 9.9, 10.10];
746 for (var i = 0; i < floatData.length; i++) {
747 floatData[i] = truncate(floatData[i]);
762 writer.writePackedFloat(2, floatData);
805 assertElementsEquals(reader.readPackedFloat(), floatData);
/third_party/protobuf/js/binary/
Dreader_test.js787 var floatData = [1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7, 8.8, 9.9, 10.10];
791 for (var i = 0; i < floatData.length; i++) {
792 floatData[i] = truncate(floatData[i]);
807 writer.writePackedFloat(2, floatData);
850 assertElementsEquals(reader.readPackedFloat(), floatData);
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/
DUniformBufferTest.cpp66 float floatData[4] = {0.5f, 0.75f, 0.25f, 1.0f}; in TEST_P() local
69 glBufferData(GL_UNIFORM_BUFFER, sizeof(float) * 4, floatData, GL_STATIC_DRAW); in TEST_P()
555 float floatData[4] = {0.5f, 0.75f, 0.25f, 1.0f}; in TEST_P() local
562 glBufferSubData(GL_UNIFORM_BUFFER, 0, sizeof(float) * 4, floatData); in TEST_P()
592 std::array<float, 4> floatData = {{0.5f, 0.75f, 0.25f, 1.0f}}; in TEST_P() local
593 memcpy(expectedData.data(), floatData.data(), smallSize); in TEST_P()
1154 float floatData[4] = {0.5f, 0.75f, 0.25f, 1.0f}; in TEST_P() local
1157 glBufferData(GL_UNIFORM_BUFFER, sizeof(float) * 4, floatData, GL_STATIC_DRAW); in TEST_P()
DWebGLCompatibilityTest.cpp78 const float floatData[4]) in TestFloatTextureFormat()
167 glUniform4fv(glGetUniformLocation(samplingProgram.get(), "subtractor"), 1, floatData); in TestFloatTextureFormat()
210 floatData); in TestFloatTextureFormat()
215 0, 0, GLColor32F(floatData[0], floatData[1], floatData[2], floatData[3]), 1.0f); in TestFloatTextureFormat()
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fNegativeBufferApiTests.cpp199 std::vector<GLfloat> floatData (4); in readn_pixels() local
228 ctx.glReadnPixels(0, 0, 1, 1, GL_RGBA, GL_FLOAT, (int) floatData.size(), &floatData[0]); in readn_pixels()
282 std::vector<float> floatData(4); in read_pixels_fbo_format_mismatch() local
301 ctx.glReadPixels (0, 0, 1, 1, GL_RGBA, GL_FLOAT, &floatData[0]); in read_pixels_fbo_format_mismatch()
308 ctx.glReadPixels (0, 0, 1, 1, GL_RGBA, GL_FLOAT, &floatData[0]); in read_pixels_fbo_format_mismatch()
315 ctx.glReadPixels (0, 0, 1, 1, GL_RGBA, GL_FLOAT, &floatData[0]); in read_pixels_fbo_format_mismatch()
326 ctx.glReadPixels (0, 0, 1, 1, GL_RGBA, GL_INT, &floatData[0]); in read_pixels_fbo_format_mismatch()
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fNegativeBufferApiTests.cpp233 std::vector<float> floatData(4); in init()
251 glReadPixels (0, 0, 1, 1, GL_RGBA, GL_FLOAT, &floatData[0]); in init()
258 glReadPixels (0, 0, 1, 1, GL_RGBA, GL_FLOAT, &floatData[0]); in init()
265 glReadPixels (0, 0, 1, 1, GL_RGBA, GL_FLOAT, &floatData[0]); in init()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/
DContext_gles_1_0.cpp24 GLfloat *floatData = matrixAsFloat.data(); in FixedMatrixToMat4() local
28 floatData[i] = gl::FixedToFloat(m[i]); in FixedMatrixToMat4()
/third_party/skia/third_party/externals/angle2/src/libANGLE/
DContext_gles_1_0.cpp24 GLfloat *floatData = matrixAsFloat.data(); in FixedMatrixToMat4() local
28 floatData[i] = gl::ConvertFixedToFloat(m[i]); in FixedMatrixToMat4()

12