/third_party/skia/third_party/externals/angle2/src/tests/test_utils/ |
D | draw_call_perf_utils.cpp | 84 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/ |
D | BufferSubData.cpp | 99 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 …]
|
D | MapBufferRange.cpp | 109 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/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | UniformBufferTest.cpp | 67 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 …]
|
D | WebGLCompatibilityTest.cpp | 78 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/skia/third_party/externals/oboe/src/flowgraph/ |
D | SinkI24.cpp | 44 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()
|
D | SinkFloat.cpp | 30 float *floatData = (float *) data; in read() local 43 memcpy(floatData, signal, numSamples * sizeof(float)); in read() 44 floatData += numSamples; in read()
|
D | SourceI16.cpp | 34 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()
|
D | SourceI24.cpp | 36 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()
|
D | SourceFloat.cpp | 38 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/ |
D | SourceI16Caller.cpp | 34 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/src/gpu/effects/ |
D | GrSkSLFP.cpp | 58 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/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/cpp/ |
D | InputStreamCallbackAnalyzer.cpp | 42 float *floatData = (float *) audioData; in onAudioReady() local 44 mRecording->write(floatData, numFrames); in onAudioReady() 46 float *frameData = floatData; in onAudioReady()
|
D | PlayRecordingCallback.cpp | 26 float *floatData = (float *)audioData; in onAudioReady() local 28 int32_t framesRead = mRecording->read(floatData, numFrames); in onAudioReady()
|
/third_party/vk-gl-cts/external/openglcts/modules/glesext/texture_cube_map_array/ |
D | esextcTextureCubeMapArrayImageOperations.cpp | 555 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.1.0/binary/ |
D | reader_test.js | 742 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.0.0/binary/ |
D | reader_test.js | 742 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/ |
D | reader_test.js | 787 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/vk-gl-cts/modules/gles31/functional/ |
D | es31fNegativeBufferApiTests.cpp | 199 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/ |
D | es3fNegativeBufferApiTests.cpp | 233 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/skia/third_party/externals/angle2/src/libANGLE/ |
D | Context_gles_1_0.cpp | 24 GLfloat *floatData = matrixAsFloat.data(); in FixedMatrixToMat4() local 28 floatData[i] = gl::ConvertFixedToFloat(m[i]); in FixedMatrixToMat4()
|
/third_party/skia/third_party/externals/oboe/docs/ |
D | GettingStarted.md | 275 float *floatData = (float *) audioData; 279 floatData[i * kChannelCount + j] = sampleValue;
|