Lines Matching defs:data

174 /** Generate data for type. This routine follows STD140 rules
176 * @return Vector of bytes filled with data
184 std::vector<GLubyte> data;
185 data.resize(data_size);
189 GLvoid* ptr = (GLvoid*)&data[column * alignment];
236 return data;
239 /** Generate data for type. This routine packs data tightly.
241 * @return Vector of bytes filled with data
249 std::vector<GLubyte> data;
250 data.resize(size);
252 GLvoid* ptr = (GLvoid*)&data[0];
298 return data;
383 /** Returns string representing GLSL constructor of type with arguments provided in data
385 * @param data Array of values that will be used as construcotr arguments.
390 std::string Type::GetGLSLConstructor(const GLvoid* data) const
406 stream << ((GLdouble*)data)[row];
409 stream << ((GLfloat*)data)[row];
412 stream << ((GLint*)data)[row];
415 stream << ((GLuint*)data)[row];
435 const GLvoid* column_data = (GLubyte*)data + column_offset;
632 std::vector<GLuint> data;
637 return data;
643 return data;
648 data.push_back(i * component_size);
651 return data;
1739 * @param data <data> parameter
1741 void Buffer::Init(BUFFERS buffer, USAGE usage, GLsizeiptr size, GLvoid* data)
1752 Data(gl, m_buffer, usage, size, data);
1807 * @param data <data> parameter
1809 void Buffer::Data(USAGE usage, glw::GLsizeiptr size, glw::GLvoid* data)
1813 Data(gl, m_buffer, usage, size, data);
1833 * @param data <data> parameter
1835 void Buffer::SubData(glw::GLintptr offset, glw::GLsizeiptr size, glw::GLvoid* data)
1839 SubData(gl, m_buffer, offset, size, data);
1903 * @param data <data> parameter
1905 void Buffer::Data(const glw::Functions& gl, BUFFERS buffer, USAGE usage, glw::GLsizeiptr size, glw::GLvoid* data)
1910 gl.bufferData(target, size, data, gl_usage);
1920 * @param data <data> parameter
1923 glw::GLvoid* data)
1927 gl.bufferSubData(target, offset, size, data);
3042 * @param data Data that will be used
3044 void Program::Uniform(const Functions& gl, const Type& type, GLsizei count, GLint location, const GLvoid* data)
3056 getUniformNdv(gl, type.m_n_rows)(location, count, (const GLdouble*)data);
3061 getUniformMatrixNdv(gl, type.m_n_columns, type.m_n_rows)(location, count, false, (const GLdouble*)data);
3068 getUniformNfv(gl, type.m_n_rows)(location, count, (const GLfloat*)data);
3073 getUniformMatrixNfv(gl, type.m_n_columns, type.m_n_rows)(location, count, false, (const GLfloat*)data);
3078 getUniformNiv(gl, type.m_n_rows)(location, count, (const GLint*)data);
3082 getUniformNuiv(gl, type.m_n_rows)(location, count, (const GLuint*)data);
3260 * @param format Format of texture data
3261 * @param type Type of texture data
3262 * @param data Texture data
3265 GLenum type, GLvoid* data)
3274 /* Generate, bind, allocate storage and upload data */
3278 Update(gl, tex_type, width, height, depth, format, type, data);
3284 * @param buffer_id Id of buffer that will be used as data source
3325 /** Get texture data
3327 * @param format Format of data
3328 * @param type Type of data
3329 * @param out_data Buffer for data
3373 /** Get texture data
3376 * @param format Format of data
3377 * @param type Type of data
3378 * @param out_data Buffer for data
3464 /** Attach buffer as source of texture buffer data
3468 * @param buffer_id Id of buffer that will be used as data source
3482 * @param format Format of data
3483 * @param type Type of data
3484 * @param data Buffer with image data
3487 GLenum type, GLvoid* data)
3496 gl.texSubImage1D(target, level, 0 /* x */, width, format, type, data);
3502 gl.texSubImage2D(target, level, 0 /* x */, 0 /* y */, width, height, format, type, data);
3507 data);
3509 data);
3511 data);
3513 data);
3515 data);
3517 data);
3522 gl.texSubImage3D(target, level, 0 /* x */, 0 /* y */, 0 /* z */, width, height, depth, format, type, data);
3625 * @param pointer Pointer to data, or offset in buffer
3654 * @param pointer Pointer to data, or offset in buffer
3997 * @param normalized Selects if data should be normalized
4285 * @param normalized Selects if data should be normalized
4307 * @param normalized Selects if data should be normalized
5372 /** Generate data for interface. This routine is recursive
5396 const std::vector<GLubyte>& data = member.m_builtin.GenerateData();
5398 memcpy(ptr + data_offfset, &data[0], data.size());
5883 /* Skip buffers that have no expected data */
5893 /* Get pointer to expected data */
6087 GLvoid* data = 0;
6092 data = &desc.m_initial_data[0];
6099 buffer.Init(desc.m_target, Utils::Buffer::StaticDraw, size, data);
6427 std::vector<GLuint> data;
6428 data.resize(size);
6430 color_0.Get(GL_RED_INTEGER, GL_UNSIGNED_INT, &data[0]);
6434 const GLuint color = data[i];
6731 * @param data Data that should be used as EXPECTED
6737 std::string TextureTestBase::getVariableVerification(const std::string& parent_name, const GLvoid* data,
6752 /* Calculate data pointer */
6753 GLvoid* data_ptr = (GLvoid*)((GLubyte*)data + element * stride);
6853 /* Compute the offsets where we need to put vertex buffer data for each slot */
6864 /* Prepare buffer data and set up vao */
6943 /* Prepare data */
7105 /** Updates buffer data with variable
8715 /* Prepare data */
10687 /* Prepare data */
12568 0u /* stride */, 0u /* offset */, (GLvoid*)&m_first_data[0] /* data */, m_first_data.size() /* data_size */);
12574 (GLvoid*)&m_last_data[0] /* data */, m_last_data.size() /* data_size */);
12583 0u /* n_array_elements */, 0u /* stride */, 0u /* offset */, (GLvoid*)&m_first_data[0] /* data */,
12589 0u /* stride */, 0u /* offset */, (GLvoid*)&m_last_data[0] /* data */, m_last_data.size() /* data_size */);
12701 (GLvoid*)0 /* data */, 0 /* data_size */);
12705 (GLvoid*)0 /* data */, 0 /* data_size */);
12939 (GLvoid*)&m_first_data[0] /* data */, m_first_data.size() /* data_size */);
12945 (GLvoid*)&m_last_data[0] /* data */, m_last_data.size() /* data_size */);
12955 (GLvoid*)&m_first_data[0] /* data */, m_first_data.size() /* data_size */);
12961 (GLvoid*)&m_last_data[0] /* data */, m_last_data.size() /* data_size */);
13025 /* Prepare data */
13026 // We should call GenerateDataPacked() to generate data, which can make sure the data in shader is correct
13045 1u /* n_array_elements */, 0u /* stride */, 0u /* offset */, (GLvoid*)&m_single_data[0] /* data */,
13050 (GLvoid*)&m_array_data[0] /* data */, m_array_data.size() /* data_size */);
13053 1u /* n_array_elements */, 0u /* stride */, 0u /* offset */, (GLvoid*)&m_data[0] /* data */,
13130 static const GLchar* input_use = " result += data.gohan + data.goten;\n";
13542 /* Prepare data */
13570 0u /* n_array_elements */, 0u /* stride */, 0u /* offset */, (GLvoid*)&m_data[0] /* data */,
13575 (GLvoid*)&m_third_data[0] /* data */, m_third_data.size() /* data_size */);
13579 (GLvoid*)&m_fourth_data[0] /* data */, m_fourth_data.size() /* data_size */);
13583 (GLvoid*)&m_fifth_data[0] /* data */, m_fifth_data.size() /* data_size */);
14860 /* Zero means no array, however we still need at least 1 slot of data */
14866 /* Generate data */
14867 const std::vector<GLubyte>& data = vector_type.GenerateDataPacked();
14868 const size_t data_size = data.size();
14870 /* Prepare data for variables */
14874 const GLubyte* src = &data[0];
15278 offset /* offset */, (GLvoid*)&m_data[offset] /* data */, size /* data_size */);
15285 offset /* offset */, (GLvoid*)&m_data[offset] /* data */, size /* data_size */);
19722 /* Generate data */
19734 0u /* n_array_elements */, 0u /* stride */, goku_offset /* offset */, (GLvoid*)&m_goku_data[0] /* data */,
19740 (GLvoid*)&m_gohan_data[0] /* data */, m_gohan_data.size() /* data_size */);
19745 (GLvoid*)&m_goten_data[0] /* data */, m_goten_data.size() /* data_size */);
19750 (GLvoid*)&m_chichi_data[0] /* data */, m_chichi_data.size() /* data_size */);
19773 "Test verifies that fragment data locations API works as expected")
19799 std::vector<GLuint> data;
19800 data.resize(size);
19802 m_goku.Get(GL_RGBA, GL_UNSIGNED_BYTE, &data[0]);
19806 const GLuint color = data[i];
19816 m_gohan.Get(GL_RGBA, GL_UNSIGNED_BYTE, &data[0]);
19820 const GLuint color = data[i];
19830 m_goten.Get(GL_RGBA, GL_UNSIGNED_BYTE, &data[0]);
19834 const GLuint color = data[i];
19844 m_chichi.Get(GL_RGBA, GL_UNSIGNED_BYTE, &data[0]);
19848 const GLuint color = data[i];
19913 0u /* n_array_elements */, 0u /* stride */, 0u /* offset */, (GLvoid*)0 /* data */, 0u /* data_size */);
19917 0u /* n_array_elements */, 0u /* stride */, 0u /* offset */, (GLvoid*)0 /* data */, 0u /* data_size */);
19921 0u /* n_array_elements */, 0u /* stride */, 0u /* offset */, (GLvoid*)0 /* data */, 0u /* data_size */);
19925 0u /* n_array_elements */, 0u /* stride */, 0u /* offset */, (GLvoid*)0 /* data */, 0u /* data_size */);
19990 /* Prepare data */
20028 gl.drawBuffers(maxDrawBuffers, buffers.data());
21520 The data captured in transform feedback mode depends on the active programs on each of the shader stages.
22270 /* Uniform data */
22276 /* XFB data */
23090 // No data will be recorded for such strings, but the offset assigned to the next variable in varyings and the stride of the assigned bingding point will be affected.
23255 type.GenerateDataPacked(); // generate the data for trunks
23262 /* Uniform data */
23268 /* XFB data */
23365 data to the corresponding offset, otherwise we can't get the correct data from UBO; to make the test passed,
23367 sure all the block members are packed and the application can upload the data by glBufferData() directly.
23509 /* Uniform data */
23518 /* XFB data */
23557 // the shader declares the output variables with different "stream" qualifier, to make the data can export to
24467 // the function "getType(test_case_index)" can't return correct data type, so change code as following:
24509 /* Uniform data */
24518 /* XFB data */
24904 only one valid data should be initialized in xfb.m_expected_data
24907 /* Uniform data */
24911 /* XFB data */
26105 /* Uniform data */
26110 /* XFB data */
26376 /* Get pointer to expected data */
26480 /* Uniform data */
26491 /* XFB data */
26781 /* Get pointer to expected data */
26910 /* Uniform data */
26915 /* XFB data */
27158 /* Get pointer to expected data */
27255 /* Uniform data */
27260 /* XFB data */
27507 /* Get pointer to expected data */
27785 only one valid data should be initialized in xfb.m_expected_data
27788 /* Uniform data */
27792 /* XFB data */
28224 only one valid data should be initialized in xfb.m_expected_data
28227 /* Uniform data */
28231 /* XFB data */