Home
last modified time | relevance | path

Searched refs:GLushort (Results 1 - 25 of 217) sorted by relevance

123456789

/third_party/vk-gl-cts/external/openglcts/modules/gl/
H A Dgl4cDirectStateAccessTests.cpp178 addChild(new Textures::BufferTest<glw::GLushort, 1, false>(m_context, "textures_buffer_r16ui")); in init()
179 addChild(new Textures::BufferTest<glw::GLushort, 2, false>(m_context, "textures_buffer_rg16ui")); in init()
180 addChild(new Textures::BufferTest<glw::GLushort, 4, false>(m_context, "textures_buffer_rgba16ui")); in init()
181 addChild(new Textures::BufferTest<glw::GLushort, 1, true>(m_context, "textures_buffer_r16ui_unorm")); in init()
182 addChild(new Textures::BufferTest<glw::GLushort, 2, true>(m_context, "textures_buffer_rg16ui_unorm")); in init()
183 addChild(new Textures::BufferTest<glw::GLushort, 4, true>(m_context, "textures_buffer_rgba16ui_unorm")); in init()
240 addChild(new Textures::StorageAndSubImageTest<glw::GLushort, 1, false, 1, false>(m_context, "textures_storage_1d_r16ui")); in init()
241 addChild(new Textures::StorageAndSubImageTest<glw::GLushort, 2, false, 1, false>(m_context, "textures_storage_1d_rg16ui")); in init()
242 addChild(new Textures::StorageAndSubImageTest<glw::GLushort, 4, false, 1, false>(m_context, "textures_storage_1d_rgba16ui")); in init()
243 addChild(new Textures::StorageAndSubImageTest<glw::GLushort, in init()
[all...]
H A Dgl3cTextureSwizzleTests.cpp61 static const glw::GLushort data_unorm16_one[] = { 65535 };
62 static const glw::GLushort data_unorm16_zero[] = { 0 };
71 static const glw::GLushort data_uint16_one[] = { 1 };
72 static const glw::GLushort data_uint16_zero[] = { 0 };
79 static const glw::GLushort src_data_r16[] = { 12345 };
83 static const glw::GLushort src_data_rg16[] = { 12345, 54321 };
86 static const glw::GLushort src_data_rgb4[] = { 64832 }; /* 5_6_5: 255, 170, 0 */
87 static const glw::GLushort src_data_rgb5[] = { 64832 };
90 static const glw::GLushort src_data_rgb16[] = { 65535, 32767, 16383 };
92 static const glw::GLushort src_data_rgba
[all...]
H A Dgl4cShaderDrawParametersTests.cpp171 const GLushort elements[] = { 0, 1, 2, 3, 4, 5 }; in init()
197 gl.bufferData(GL_ELEMENT_ARRAY_BUFFER, 6 * sizeof(GLushort), elements, GL_STATIC_DRAW); in init()
407 gl.drawElements(GL_TRIANGLE_STRIP, 4, GL_UNSIGNED_SHORT, (GLvoid*)(2 * sizeof(GLushort))); in drawCommand()
605 const GLvoid* dIndices[] = { (GLvoid*)(1 * sizeof(GLushort)), (GLvoid*)(1 * sizeof(GLushort)) }; in drawCommand()
747 const GLushort parameters[] = { 1, 1, 1 }; in initChild()
766 gl.bufferData(GL_PARAMETER_BUFFER_ARB, 3 * sizeof(GLushort), parameters, GL_STATIC_DRAW); in initChild()
817 const GLushort parameters[] = { 1, 1, 1 }; in initChild()
836 gl.bufferData(GL_PARAMETER_BUFFER_ARB, 3 * sizeof(GLushort), parameters, GL_STATIC_DRAW); in initChild()
/third_party/skia/third_party/externals/angle2/samples/torus_lighting/
H A Dtorus.h16 const GLushort kSize = 60;
20 std::vector<GLushort> indices; in GenerateTorus()
21 for (GLushort y = 0; y < kSize; y++) in GenerateTorus()
23 for (GLushort x = 0; x < kSize; x++) in GenerateTorus()
25 GLushort a = y * (kSize + 1) + x; in GenerateTorus()
26 GLushort b = y * (kSize + 1) + x + 1; in GenerateTorus()
27 GLushort c = (y + 1) * (kSize + 1) + x; in GenerateTorus()
28 GLushort d = (y + 1) * (kSize + 1) + x + 1; in GenerateTorus()
84 glBufferData(GL_ELEMENT_ARRAY_BUFFER, indices.size() * sizeof(GLushort), indices.data(), in GenerateTorus()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
H A Dformatutils11.cpp327 &CopyToFloatVertexData<GLushort, 1, 2, false, false>); in GetVertexFormatInfo_FL_9_3()
334 &CopyToFloatVertexData<GLushort, 2, 2, false, false>); in GetVertexFormatInfo_FL_9_3()
341 &CopyToFloatVertexData<GLushort, 3, 3, false, false>); in GetVertexFormatInfo_FL_9_3()
348 &CopyToFloatVertexData<GLushort, 4, 4, false, false>); in GetVertexFormatInfo_FL_9_3()
356 &CopyToFloatVertexData<GLushort, 1, 2, true, false>); in GetVertexFormatInfo_FL_9_3()
362 &CopyToFloatVertexData<GLushort, 2, 2, true, false>); in GetVertexFormatInfo_FL_9_3()
368 &CopyToFloatVertexData<GLushort, 3, 3, true, false>); in GetVertexFormatInfo_FL_9_3()
374 &CopyToFloatVertexData<GLushort, 4, 4, true, false>); in GetVertexFormatInfo_FL_9_3()
581 &CopyNativeVertexData<GLushort, 1, 1, 0>); in GetVertexFormatInfo()
587 &CopyNativeVertexData<GLushort, in GetVertexFormatInfo()
[all...]
/third_party/vk-gl-cts/external/openglcts/modules/common/
H A DglcPackedPixelsTests.cpp344 { GL_UNSIGNED_SHORT, sizeof(GLushort), STORAGE_UNSIGNED, false, false, { { 0, 0, 0, 0, 0, 0, 0, 0, 0 } }, true },
350 { GL_UNSIGNED_SHORT_5_6_5, sizeof(GLushort), STORAGE_UNSIGNED, true, false, { { 5, 6, 5, 0, 0, 0, 0, 0, 0 } }, false },
351 { GL_UNSIGNED_SHORT_4_4_4_4, sizeof(GLushort), STORAGE_UNSIGNED, true, false, { { 4, 4, 4, 4, 0, 0, 0, 0, 0 } }, false },
352 { GL_UNSIGNED_SHORT_5_5_5_1, sizeof(GLushort), STORAGE_UNSIGNED, true, false, { { 5, 5, 5, 1, 0, 0, 0, 0, 0 } }, false },
360 { GL_UNSIGNED_SHORT_5_6_5_REV, sizeof(GLushort), STORAGE_UNSIGNED, true, true, { { 5, 6, 5, 0, 0, 0, 0, 0, 0 } }, false },
361 { GL_UNSIGNED_SHORT_4_4_4_4_REV, sizeof(GLushort), STORAGE_UNSIGNED, true, true, { { 4, 4, 4, 4, 0, 0, 0, 0, 0 } }, false },
362 { GL_UNSIGNED_SHORT_1_5_5_5_REV, sizeof(GLushort), STORAGE_UNSIGNED, true, true, { { 5, 5, 5, 1, 0, 0, 0, 0, 0 } }, false },
371 { GL_UNSIGNED_SHORT, sizeof(GLushort), STORAGE_UNSIGNED, false, false, { { 0, 0, 0, 0, 0, 0, 0, 0, 0 } }, true },
377 { GL_UNSIGNED_SHORT_5_6_5, sizeof(GLushort), STORAGE_UNSIGNED, true, false, { { 5, 6, 5, 0, 0, 0, 0, 0, 0 } }, false },
378 { GL_UNSIGNED_SHORT_4_4_4_4, sizeof(GLushort), STORAGE_UNSIGNE
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/
H A DContext_gl_1_autogen.h38 void color3us(GLushort red, GLushort green, GLushort blue); \
39 void color3usv(const GLushort *v); \
52 void color4us(GLushort red, GLushort green, GLushort blue, GLushort alpha); \
53 void color4usv(const GLushort *v); \
92 void getPixelMapusv(GLenum map, GLushort *value
[all...]
H A DvalidationGL14_autogen.h55 bool ValidateSecondaryColor3us(const Context *context, GLushort red, GLushort green, GLushort blue);
56 bool ValidateSecondaryColor3usv(const Context *context, const GLushort *v);
/third_party/mesa3d/src/mesa/main/
H A Dmipmap.c286 const GLushort(*rowA)[4] = (const GLushort(*)[4]) srcRowA; in do_row()
287 const GLushort(*rowB)[4] = (const GLushort(*)[4]) srcRowB; in do_row()
288 GLushort(*dst)[4] = (GLushort(*)[4]) dstRow; in do_row()
299 const GLushort(*rowA)[3] = (const GLushort(*)[3]) srcRowA; in do_row()
300 const GLushort(*rowB)[3] = (const GLushort(*)[ in do_row()
[all...]
H A Dapi_arrayelt.c268 VertexAttrib1NusvNV(GLuint index, const GLushort *v) in VertexAttrib1NusvNV()
274 VertexAttrib1usvNV(GLuint index, const GLushort *v) in VertexAttrib1usvNV()
280 VertexAttrib2NusvNV(GLuint index, const GLushort *v) in VertexAttrib2NusvNV()
287 VertexAttrib2usvNV(GLuint index, const GLushort *v) in VertexAttrib2usvNV()
294 VertexAttrib3NusvNV(GLuint index, const GLushort *v) in VertexAttrib3NusvNV()
302 VertexAttrib3usvNV(GLuint index, const GLushort *v) in VertexAttrib3usvNV()
309 VertexAttrib4NusvNV(GLuint index, const GLushort *v) in VertexAttrib4NusvNV()
318 VertexAttrib4usvNV(GLuint index, const GLushort *v) in VertexAttrib4usvNV()
788 VertexAttrib1NusvARB(GLuint index, const GLushort *v) in VertexAttrib1NusvARB()
794 VertexAttrib1usvARB(GLuint index, const GLushort *
[all...]
H A Dpack.c329 const GLushort *s = (const GLushort *) src; in extract_uint_indexes()
332 GLushort value = s[i]; in extract_uint_indexes()
572 dst[i] = (GLushort) (indexes[i] & 0xffff); in _mesa_unpack_stencil_span()
632 GLushort *dst = (GLushort *) dest; in _mesa_pack_stencil_span()
635 dst[i] = (GLushort) source[i]; in _mesa_pack_stencil_span()
638 _mesa_swap2( (GLushort *) dst, n ); in _mesa_pack_stencil_span()
650 _mesa_swap2( (GLushort *) dst, n ); in _mesa_pack_stencil_span()
699 _mesa_swap2( (GLushort *) ds in _mesa_pack_stencil_span()
[all...]
H A Dmacros.h72 /** Convert GLushort in [0,65535] to GLfloat in [0.0,1.0] */
75 /** Convert GLfloat in [0.0,1.0] to GLushort in [0, 65535] */
131 #define BYTE_TO_USHORT(b) ((b) < 0 ? 0 : ((GLushort) (((b) * 65535) / 255)))
132 #define UBYTE_TO_USHORT(b) (((GLushort) (b) << 8) | (GLushort) (b))
133 #define SHORT_TO_USHORT(s) ((s) < 0 ? 0 : ((GLushort) (((s) * 65535 / 32767))))
134 #define INT_TO_USHORT(i) ((i) < 0 ? 0 : ((GLushort) ((i) >> 15)))
135 #define UINT_TO_USHORT(i) ((i) < 0 ? 0 : ((GLushort) ((i) >> 16)))
137 us = ( (GLushort) _mesa_lroundevenf( CLAMP((f), 0.0F, 1.0F) * 65535.0F) )
139 us = ( (GLushort) _mesa_lroundeven
[all...]
H A Dpixel.c273 _mesa_PixelMapusv(GLenum map, GLsizei mapsize, const GLushort *values ) in _mesa_PixelMapusv()
298 values = (const GLushort *) _mesa_map_pbo_source(ctx, &ctx->Unpack, values); in _mesa_PixelMapusv()
432 _mesa_GetnPixelMapusvARB( GLenum map, GLsizei bufSize, GLushort *values ) in _mesa_GetnPixelMapusvARB()
454 values = (GLushort *) _mesa_map_pbo_dest(ctx, &ctx->Pack, values); in _mesa_GetnPixelMapusvARB()
467 values[i] = (GLushort) CLAMP(ctx->PixelMaps.ItoI.Map[i], 0.0F, 65535.0F); in _mesa_GetnPixelMapusvARB()
472 values[i] = (GLushort) CLAMP(ctx->PixelMaps.StoS.Map[i], 0.0F, 65535.0F); in _mesa_GetnPixelMapusvARB()
486 _mesa_GetPixelMapusv( GLenum map, GLushort *values ) in _mesa_GetPixelMapusv()
/third_party/skia/third_party/externals/angle2/src/tests/perf_tests/
H A DDynamicPromotionPerfTest.cpp90 std::vector<GLushort> indexData; in initializeBenchmark()
94 ASSERT_GE(static_cast<size_t>(std::numeric_limits<GLushort>::max()), vertexCount); in initializeBenchmark()
100 indexData.push_back(static_cast<GLushort>(index)); in initializeBenchmark()
115 GLsizeiptr elementArraySize = sizeof(GLushort) * vertexCount; in initializeBenchmark()
H A DIndexConversionPerf.cpp66 std::vector<GLushort> mIndexData;
89 size_t numTris = std::numeric_limits<GLushort>::max() / 3 + 1; in initializeBenchmark()
101 mIndexData.push_back(std::numeric_limits<GLushort>::max()); in initializeBenchmark()
H A DDrawElementsPerf.cpp86 std::vector<GLushort> mShortIndexData;
105 return sizeof(GLushort); in ElementTypeSize()
127 ASSERT_GE(std::numeric_limits<GLushort>::max(), mCount); in initializeBenchmark()
128 mShortIndexData.push_back(static_cast<GLushort>(rand() % mCount)); in initializeBenchmark()
H A DIndexDataManagerTest.cpp165 mBufferSize(mIndexCount * sizeof(GLushort)), in IndexDataManagerPerfTest()
170 std::vector<GLushort> indexData(mIndexCount);
173 indexData[index] = static_cast<GLushort>(index);
178 indexData.size() * sizeof(GLushort), gl::BufferUsage::StaticDraw));
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
H A DLineLoopTest.cpp157 static const GLushort indices[] = {0, 7, 6, 9, 8, 0}; in TEST_P()
194 static const GLushort indices[] = {0, 7, 6, 9, 8, 0}; in TEST_P()
200 runTest(GL_UNSIGNED_SHORT, buf, reinterpret_cast<const void *>(sizeof(GLushort))); in TEST_P()
258 static const GLushort indices[] = {0, 7, 6, 9, 8, 0}; in TEST_P()
270 runTest(GL_UNSIGNED_SHORT, buf, reinterpret_cast<const void *>(sizeof(GLushort))); in TEST_P()
398 constexpr GLushort lineloopAsStripIndices[] = { in TEST_P()
408 constexpr GLushort lineloopWithRestartIndices[] = { in TEST_P()
614 static const GLushort indices[] = {0, 7, 6, 9, 8, 0}; in TEST_P()
652 static const GLushort indices[] = {0, 7, 6, 9, 8, 0}; in TEST_P()
H A DAttributeLayoutTest.cpp286 virtual void Draw(int firstVertex, unsigned vertexCount, const GLushort *indices) = 0;
331 static const GLushort mIndices[kNumVertices];
341 const GLushort AttributeLayoutTest::mIndices[kNumVertices] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11};
353 Format<GLushort, GL_UNSIGNED_SHORT, false> UShort(es3); in GetTestCases()
360 Format<GLushort, GL_UNSIGNED_SHORT, true> NormUShort(es3); in GetTestCases()
429 void Draw(int firstVertex, unsigned vertexCount, const GLushort *indices) override
437 void Draw(int firstVertex, unsigned vertexCount, const GLushort *indices) override
446 void Draw(int firstVertex, unsigned vertexCount, const GLushort *indices) override
H A DDrawBaseVertexVariantsTest.cpp109 std::array<GLushort, 6> indices = {0, 1, 2, 0, 2, 3}; in DrawBaseVertexVariantsTest()
222 glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(GLushort) * mIndices.size(), mIndices.data(), in setupIndexedBuffers()
252 static_cast<uintptr_t>(baseRepetition * 6 * sizeof(GLushort))), in doDrawElementsBaseVertexVariants()
259 static_cast<uintptr_t>(baseRepetition * 6 * sizeof(GLushort))), in doDrawElementsBaseVertexVariants()
266 static_cast<uintptr_t>(baseRepetition * 6 * sizeof(GLushort))), in doDrawElementsBaseVertexVariants()
275 static_cast<uintptr_t>(baseRepetition * 6 * sizeof(GLushort))), in doDrawElementsBaseVertexVariants()
356 std::vector<GLushort> mIndices;
361 std::vector<GLushort> mRegularIndices;
H A DIndexBufferOffsetTest.cpp244 GLushort indexData[] = {0, 1, 2, 1, 2, 3}; in TEST_P()
268 GLushort indexData[] = {0, 1, 2, 1, 2, 3}; in TEST_P()
301 GLushort indexData[] = {0, 1, 2, 1, 2, 3}; in TEST_P()
339 GLushort indexData[] = {0, 1, 2, 1, 2, 3}; in TEST_P()
365 GLushort indexData[] = {0, 1, 2, 1, 2, 3}; in TEST_P()
369 size_t indexDataWidth = 6 * sizeof(GLushort); in TEST_P()
398 GLushort indexData16[] = {0, 1, 2, 1, 2, 3}; in TEST_P()
402 size_t indexDataWidth16 = 6 * sizeof(GLushort); in TEST_P()
/third_party/skia/third_party/externals/angle2/util/
H A Dgeometry_utils.h28 std::vector<GLushort> indices;
43 std::vector<GLushort> indices;
/third_party/vk-gl-cts/external/openglcts/modules/glesext/geometry_shader/
H A DesextcGeometryShaderLayeredFBO.hpp363 glw::GLushort m_tex_depth;
364 glw::GLushort m_tex_height;
365 glw::GLushort m_tex_width;
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/
H A Dload_functions_table_autogen.cpp66 return LoadImageFunctionInfo(LoadToNative<GLushort, 1>, false); in A1RGB5_ANGLEX_to_A1R5G5B5_UNORM()
236 return LoadImageFunctionInfo(LoadToNative<GLushort, 1>, false); in BGR5_A1_ANGLEX_to_default()
1482 return LoadImageFunctionInfo(LoadToNative<GLushort, 1>, false); in DEPTH_COMPONENT16_to_D16_UNORM()
1948 return LoadImageFunctionInfo(LoadToNative<GLushort, 1>, false); in R16UI_to_R16_UINT()
1960 return LoadImageFunctionInfo(LoadToNative<GLushort, 1>, false); in R16_EXT_to_R16_UNORM()
1972 return LoadImageFunctionInfo(LoadToNative<GLushort, 1>, false); in R16_SNORM_EXT_to_R16_SNORM()
2144 return LoadImageFunctionInfo(LoadToNative<GLushort, 2>, false); in RG16UI_to_R16G16_UINT()
2156 return LoadImageFunctionInfo(LoadToNative<GLushort, 2>, false); in RG16_EXT_to_R16G16_UNORM()
2168 return LoadImageFunctionInfo(LoadToNative<GLushort, 2>, false); in RG16_SNORM_EXT_to_R16G16_SNORM()
2482 return LoadImageFunctionInfo(LoadToNative3To4<GLushort, in RGB16UI_to_R16G16B16A16_UINT()
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
H A Dvk_format_table_autogen.cpp39 mVertexLoadFunction = CopyNativeVertexData<GLushort, 1, 1, 0>; in initialize()
493 mVertexLoadFunction = CopyNativeVertexData<GLushort, 1, 1, 0>; in initialize()
503 mVertexLoadFunction = CopyNativeVertexData<GLushort, 1, 1, 0>; in initialize()
513 mVertexLoadFunction = CopyNativeVertexData<GLushort, 1, 1, 0>; in initialize()
1217 mVertexLoadFunction = CopyNativeVertexData<GLushort, 4, 4, 0>; in initialize()
1227 mVertexLoadFunction = CopyNativeVertexData<GLushort, 4, 4, 0>; in initialize()
1238 CopyNativeVertexData<GLushort, 4, 4, 0>, false}, in initialize()
1240 CopyToFloatVertexData<GLushort, 4, 4, false, false>, true}, in initialize()
1242 CopyToFloatVertexData<GLushort, 4, 4, false, true>, true}}; in initialize()
1327 Initialize4ComponentData<GLushort, in initialize()
[all...]

Completed in 25 milliseconds

123456789