Home
last modified time | relevance | path

Searched refs:uni (Results 1 – 25 of 116) sorted by relevance

12345

/external/skia/src/gpu/gl/
DGrGLProgramDataManager.cpp14 SkASSERT(arrayCount <= uni.fArrayCount || \
15 (1 == arrayCount && GrGLSLShaderVar::kNonArray == uni.fArrayCount))
65 const Uniform& uni = fUniforms[u.toIndex()]; in setSampler() local
66 SkASSERT(uni.fType == kSampler2D_GrSLType || uni.fType == kSamplerExternal_GrSLType || in setSampler()
67 uni.fType == kSampler2DRect_GrSLType); in setSampler()
68 SkASSERT(GrGLSLShaderVar::kNonArray == uni.fArrayCount); in setSampler()
73 if (kUnusedUniform != uni.fFSLocation) { in setSampler()
74 GR_GL_CALL(fGpu->glInterface(), Uniform1i(uni.fFSLocation, texUnit)); in setSampler()
76 if (kUnusedUniform != uni.fVSLocation && uni.fVSLocation != uni.fFSLocation) { in setSampler()
77 GR_GL_CALL(fGpu->glInterface(), Uniform1i(uni.fVSLocation, texUnit)); in setSampler()
[all …]
DGrGLUniformHandler.cpp31 UniformInfo& uni = fUniforms.push_back(); in internalAddUniformArray() local
32 uni.fVariable.setType(type); in internalAddUniformArray()
33 uni.fVariable.setTypeModifier(GrGLSLShaderVar::kUniform_TypeModifier); in internalAddUniformArray()
44 fProgramBuilder->nameVariable(uni.fVariable.accessName(), prefix, name, mangleName); in internalAddUniformArray()
45 uni.fVariable.setArrayCount(arrayCount); in internalAddUniformArray()
46 uni.fVisibility = visibility; in internalAddUniformArray()
47 uni.fVariable.setPrecision(precision); in internalAddUniformArray()
50 *outName = uni.fVariable.c_str(); in internalAddUniformArray()
/external/skia/src/gpu/vk/
DGrVkProgramDataManager.cpp42 const Uniform& uni = fUniforms[u.toIndex()]; in set1f() local
43 SkASSERT(uni.fType == kFloat_GrSLType); in set1f()
44 SkASSERT(GrGLSLShaderVar::kNonArray == uni.fArrayCount); in set1f()
45 SkASSERT(GrVkUniformHandler::kUniformBufferDescSet == uni.fSetNumber); in set1f()
47 if (GrVkUniformHandler::kVertexBinding == uni.fBinding) { in set1f()
50 SkASSERT(GrVkUniformHandler::kFragBinding == uni.fBinding); in set1f()
53 buffer = static_cast<char*>(buffer) + uni.fOffset; in set1f()
61 const Uniform& uni = fUniforms[u.toIndex()]; in set1fv() local
62 SkASSERT(uni.fType == kFloat_GrSLType); in set1fv()
64 SkASSERT(arrayCount <= uni.fArrayCount || in set1fv()
[all …]
DGrVkUniformHandler.cpp74 UniformInfo& uni = fUniforms.push_back(); in internalAddUniformArray() local
75 uni.fVariable.setType(type); in internalAddUniformArray()
86 fProgramBuilder->nameVariable(uni.fVariable.accessName(), prefix, name, mangleName); in internalAddUniformArray()
87 uni.fVariable.setArrayCount(arrayCount); in internalAddUniformArray()
90 uni.fVisibility = visibility; in internalAddUniformArray()
91 uni.fVariable.setPrecision(precision); in internalAddUniformArray()
95 uni.fVariable.setTypeModifier(GrGLSLShaderVar::kNone_TypeModifier); in internalAddUniformArray()
99 get_ubo_aligned_offset(&uni.fUBOffset, currentOffset, type, arrayCount); in internalAddUniformArray()
100 uni.fSetNumber = kUniformBufferDescSet; in internalAddUniformArray()
101 uni.fBinding = kVertex_GrShaderFlag == visibility ? kVertexBinding : kFragBinding; in internalAddUniformArray()
[all …]
/external/mesa3d/src/mesa/main/
Duniform_query.cpp59 const struct gl_uniform_storage *const uni = &shProg->UniformStorage[index]; in _mesa_GetActiveUniformARB() local
62 _mesa_copy_string(nameOut, maxLength, length, uni->name); in _mesa_GetActiveUniformARB()
69 *size = MAX2(1, uni->array_elements); in _mesa_GetActiveUniformARB()
73 *type = uni->type->gl_type; in _mesa_GetActiveUniformARB()
109 const struct gl_uniform_storage *uni = &shProg->UniformStorage[index]; in _mesa_GetActiveUniformsiv() local
113 params[i] = uni->type->gl_type; in _mesa_GetActiveUniformsiv()
120 params[i] = MAX2(1, uni->array_elements); in _mesa_GetActiveUniformsiv()
124 params[i] = strlen(uni->name) + 1; in _mesa_GetActiveUniformsiv()
128 params[i] = uni->block_index; in _mesa_GetActiveUniformsiv()
132 params[i] = uni->offset; in _mesa_GetActiveUniformsiv()
[all …]
Duniforms.c96 _mesa_uniform_attach_driver_storage(struct gl_uniform_storage *uni, in _mesa_uniform_attach_driver_storage() argument
102 uni->driver_storage = (struct gl_uniform_driver_storage*) in _mesa_uniform_attach_driver_storage()
103 realloc(uni->driver_storage, in _mesa_uniform_attach_driver_storage()
105 * (uni->num_driver_storage + 1)); in _mesa_uniform_attach_driver_storage()
107 uni->driver_storage[uni->num_driver_storage].element_stride = element_stride; in _mesa_uniform_attach_driver_storage()
108 uni->driver_storage[uni->num_driver_storage].vector_stride = vector_stride; in _mesa_uniform_attach_driver_storage()
109 uni->driver_storage[uni->num_driver_storage].format = (uint8_t) format; in _mesa_uniform_attach_driver_storage()
110 uni->driver_storage[uni->num_driver_storage].data = data; in _mesa_uniform_attach_driver_storage()
112 uni->num_driver_storage++; in _mesa_uniform_attach_driver_storage()
123 _mesa_uniform_detach_all_driver_storage(struct gl_uniform_storage *uni) in _mesa_uniform_detach_all_driver_storage() argument
[all …]
/external/gptfdisk/
Dgptpart.cc88 uint32_t uni ; in GetDescription() local
90 uni = cp ; in GetDescription()
94 uni = ( (uint32_t)( cp & 0x3ff ) ) << 10 ; in GetDescription()
105 uni |= cp & 0x3ff ; in GetDescription()
106 uni += 0x10000 ; in GetDescription()
113 if ( uni < 0x80 ) { in GetDescription()
114 utf8 += (char) uni ; in GetDescription()
116 else if ( uni < 0x800 ) { in GetDescription()
117 utf8 += (char) ( 0xc0 | ( uni >> 6 ) ) ; in GetDescription()
118 utf8 += (char) ( 0x80 | ( uni & 0x3f ) ) ; in GetDescription()
[all …]
/external/skia/tests/
DUnicodeTest.cpp20 static bool isUVS(SkUnichar uni) { in isUVS() argument
21 return (uni >= UVS_MIN0 && uni <= UVS_MAX0) || in isUVS()
22 (uni >= UVS_MIN1 && uni <= UVS_MAX1) || in isUVS()
23 (uni >= UVS_MIN2 && uni <= UVS_MAX2); in isUVS()
33 for (SkUnichar uni = gRanges[i] - 8; uni <= gRanges[i+1] + 8; ++uni) { in test_uvs() local
34 bool uvs0 = isUVS(uni); in test_uvs()
35 bool uvs1 = SkUnichar_IsVariationSelector(uni); in test_uvs()
/external/skia/src/core/
DSkUtils.h60 size_t SkUTF8_FromUnichar(SkUnichar uni, char utf8[] = NULL);
73 size_t SkUTF16_FromUnichar(SkUnichar uni, uint16_t utf16[] = NULL);
78 inline bool SkUnichar_IsVariationSelector(SkUnichar uni) { in SkUnichar_IsVariationSelector() argument
84 if (uni < 0x180B || uni > 0xE01EF) { in SkUnichar_IsVariationSelector()
87 if ((uni > 0x180D && uni < 0xFE00) || (uni > 0xFE0F && uni < 0xE0100)) { in SkUnichar_IsVariationSelector()
DSkUtils.cpp124 size_t SkUTF8_FromUnichar(SkUnichar uni, char utf8[]) { in SkUTF8_FromUnichar() argument
125 if ((uint32_t)uni > 0x10FFFF) { in SkUTF8_FromUnichar()
130 if (uni <= 127) { in SkUTF8_FromUnichar()
132 *utf8 = (char)uni; in SkUTF8_FromUnichar()
141 SkDEBUGCODE(SkUnichar orig = uni;) in SkUTF8_FromUnichar()
143 while (uni > 0x7F >> count) { in SkUTF8_FromUnichar()
144 *p++ = (char)(0x80 | (uni & 0x3F)); in SkUTF8_FromUnichar()
145 uni >>= 6; in SkUTF8_FromUnichar()
155 *--utf8 = (char)(~(0xFF >> count) | uni); in SkUTF8_FromUnichar()
233 size_t SkUTF16_FromUnichar(SkUnichar uni, uint16_t dst[]) { in SkUTF16_FromUnichar() argument
[all …]
DSkScalerContext.h211 uint16_t charToGlyphID(SkUnichar uni) { in charToGlyphID() argument
212 return generateCharToGlyph(uni); in charToGlyphID()
324 SkScalerContext* getContextFromChar(SkUnichar uni, uint16_t* glyphID);
/external/chromium-trace/catapult/third_party/py_vulcanize/third_party/rjsmin/bench/
Dwrite.py52 def uni(v): function
57 def uni(v): function
99 version = uni(version)
120 uni(port), (time, benched['sizes'][idx])
123 namesub('', _os.path.basename(uni(benched['filename']))),
253 lines.append(uni(note))
259 uni(single['filename']), single['size'] / 1024.0
264 space = max([len(uni(port)) for port, _ in single['times']])
266 port = uni(port)
/external/chromium-trace/catapult/third_party/py_vulcanize/third_party/rcssmin/bench/
Dwrite.py52 def uni(v): function
57 def uni(v): function
96 version = uni(version)
117 uni(port), (time, benched['sizes'][idx])
120 namesub('', _os.path.basename(uni(benched['filename']))),
250 lines.append(uni(note))
256 uni(single['filename']), single['size'] / 1024.0
261 space = max([len(uni(port)) for port, _ in single['times']])
263 port = uni(port)
/external/skia/src/utils/
DSkTextBox.cpp32 SkUnichar uni = SkUTF8_NextUnichar(&text); in linebreak() local
33 int currWS = is_ws(uni); in linebreak()
62 if ('\n' == uni) { in linebreak()
66 uni = SkUTF8_NextUnichar(&text); in linebreak()
67 if ('\r' == uni) { in linebreak()
78 if ('\r' == uni) { in linebreak()
82 uni = SkUTF8_NextUnichar(&text); in linebreak()
83 if ('\n' == uni) { in linebreak()
/external/hyphenation-patterns/en-GB/
Dhyph-en-gb.hyp.txt1 uni-ver-sity
2 uni-ver-sit-ies
/external/skia/samplecode/
DSampleAnimatedText.cpp60 SkUnichar uni; in onQuery() local
61 if (SampleCode::CharQ(*evt, &uni)) { in onQuery()
62 if ('2' == uni) { in onQuery()
DSampleLua.cpp81 SkUnichar uni; in onQuery() local
82 if (SampleCode::CharQ(*evt, &uni)) { in onQuery()
87 str.appendUnichar(uni); in onQuery()
DSamplePictFile.cpp92 SkUnichar uni; in onQuery() local
93 if (SampleCode::CharQ(*evt, &uni)) { in onQuery()
94 switch (uni) { in onQuery()
DSampleRectanizer.cpp59 SkUnichar uni; in onQuery() local
60 if (SampleCode::CharQ(*evt, &uni)) { in onQuery()
62 size_t size = SkUTF8_FromUnichar(uni, utf8); in onQuery()
DOverView.cpp60 SkUnichar uni; in onQuery() local
61 if (SampleCode::CharQ(*evt, &uni)) { in onQuery()
62 fMatchStr.appendUnichar(uni); in onQuery()
DSampleUnpremul.cpp57 SkUnichar uni; in onQuery() local
58 if (SampleCode::CharQ(*evt, &uni)) { in onQuery()
60 size_t size = SkUTF8_FromUnichar(uni, utf8); in onQuery()
DSampleMegaStroke.cpp36 SkUnichar uni; in onQuery() local
37 if (SampleCode::CharQ(*evt, &uni)) { in onQuery()
/external/icu/icu4c/source/tools/toolutil/
Dppucd.cpp515 PreparsedUCD::parseString(const char *s, UnicodeString &uni, UErrorCode &errorCode) { in parseString() argument
516 UChar *buffer=uni.getBuffer(-1); in parseString()
517 int32_t length=u_parseString(s, buffer, uni.getCapacity(), NULL, &errorCode); in parseString()
520 uni.releaseBuffer(0); in parseString()
521 buffer=uni.getBuffer(length); in parseString()
522 length=u_parseString(s, buffer, uni.getCapacity(), NULL, &errorCode); in parseString()
524 uni.releaseBuffer(length); in parseString()
/external/chromium-trace/catapult/third_party/py_vulcanize/third_party/rjsmin/
Drjsmin.c352 int uni; in rjsmin_jsmin() local
375 uni = 1; in rjsmin_jsmin()
380 uni = 0; in rjsmin_jsmin()
412 if (uni) { in rjsmin_jsmin()
/external/skia/include/core/
DSkString.h205 void appendUnichar(SkUnichar uni) { this->insertUnichar((size_t)-1, uni); } in appendUnichar() argument
216 void prependUnichar(SkUnichar uni) { this->insertUnichar(0, uni); } in prependUnichar() argument

12345