Home
last modified time | relevance | path

Searched refs:outType (Results 1 – 25 of 64) sorted by relevance

123

/external/skia/src/sksl/
DSkSLUtil.cpp37 bool type_to_grsltype(const Context& context, const Type& type, GrSLType* outType) { in type_to_grsltype() argument
41 if (type == *context.fTypes.fVoid ) { *outType = kVoid_GrSLType; return true; } in type_to_grsltype()
42 if (type == *context.fTypes.fBool ) { *outType = kBool_GrSLType; return true; } in type_to_grsltype()
43 if (type == *context.fTypes.fBool2 ) { *outType = kBool2_GrSLType; return true; } in type_to_grsltype()
44 if (type == *context.fTypes.fBool3 ) { *outType = kBool3_GrSLType; return true; } in type_to_grsltype()
45 if (type == *context.fTypes.fBool4 ) { *outType = kBool4_GrSLType; return true; } in type_to_grsltype()
46 if (type == *context.fTypes.fShort ) { *outType = kShort_GrSLType; return true; } in type_to_grsltype()
47 if (type == *context.fTypes.fShort2 ) { *outType = kShort2_GrSLType; return true; } in type_to_grsltype()
48 if (type == *context.fTypes.fShort3 ) { *outType = kShort3_GrSLType; return true; } in type_to_grsltype()
49 if (type == *context.fTypes.fShort4 ) { *outType = kShort4_GrSLType; return true; } in type_to_grsltype()
[all …]
/external/OpenCL-CTS/test_common/harness/
Dconversions.cpp214 #define SIMPLE_CAST_CASE(inType, outEnum, outType) \ argument
216 outType##Ptr = (outType *)outRaw; \
217 *outType##Ptr = (outType)(*inType##Ptr); \
222 #define DOWN_CAST_CASE(inType, outEnum, outType, sat) \ argument
224 outType##Ptr = (outType *)outRaw; \
231 *outType##Ptr = (outType)sUpperLimits[outEnum]; \
233 *outType##Ptr = (outType)sLowerLimits[outEnum]; \
235 *outType##Ptr = (outType)*inType##Ptr; \
239 *outType##Ptr = (outType)( \
241 & (0xffffffffffffffffLL >> (64 - (sizeof(outType) * 8)))); \
[all …]
Drounding_mode.cpp38 RoundingMode set_round(RoundingMode r, Type outType) in set_round() argument
49 if (outType == kfloat || outType == kdouble) p = flt_rounds; in set_round()
80 RoundingMode set_round(RoundingMode r, Type outType) in set_round() argument
89 if (outType == kfloat || outType == kdouble) p = flt_rounds; in set_round()
120 RoundingMode set_round(RoundingMode r, Type outType) in set_round() argument
129 (outType == kfloat || outType == kdouble) ? flt_rounds : int_rounds; in set_round()
/external/OpenCL-CTS/test_conformance/conversions/
Dtest_conversions.cpp116 static int GetTestCase( const char *name, Type *outType, Type *inType, SaturationMode *sat, Roundin…
117 static int DoTest( cl_device_id device, Type outType, Type inType, SaturationMode sat, RoundingMode…
118 static cl_program MakeProgram( Type outType, Type inType, SaturationMode sat, RoundingMode round,…
124 static cl_program CreateImplicitConvertProgram( Type outType, Type inType, SaturationMode sat, Roun…
125 static cl_program CreateStandardProgram( Type outType, Type inType, SaturationMode sat, RoundingMod…
155 Type inType, outType; in test_conversions() local
163 if( GetTestCase( argList[i], &outType, &inType, &sat, &round ) ) in test_conversions()
170 if( !gTestDouble && (inType == kdouble || outType == kdouble ) ) in test_conversions()
174 …vlog_error( "\t *** convert_%sn%s%s( %sn ) FAILED ** \n", gTypeNames[ outType ], gSaturationNames[… in test_conversions()
182 … if( !gHasLong && (inType == klong || outType == klong || inType == kulong || outType == kulong) ) in test_conversions()
[all …]
/external/OpenCL-CTS/test_conformance/gles/
Dhelpers.cpp153 …vert_to_expected( void * inputBuffer, size_t numPixels, ExplicitType inType, ExplicitType outType ) in convert_to_expected() argument
157 get_explicit_type_name( inType ), get_explicit_type_name( outType ) ); in convert_to_expected()
160 if( inType == outType ) in convert_to_expected()
162 …char *outData = new char[ numPixels * 4 * get_explicit_type_size(outType) ] ; // sizeof( cl_int ) … in convert_to_expected()
170 switch( outType ) in convert_to_expected()
192 …onversion from %s to %s!\n", get_explicit_type_name( inType ), get_explicit_type_name( outType ) ); in convert_to_expected()
200 switch( outType ) in convert_to_expected()
222 …onversion from %s to %s!\n", get_explicit_type_name( inType ), get_explicit_type_name( outType ) ); in convert_to_expected()
230 switch( outType ) in convert_to_expected()
252 …onversion from %s to %s!\n", get_explicit_type_name( inType ), get_explicit_type_name( outType ) ); in convert_to_expected()
[all …]
Dtest_images_2D.cpp41 …mageWidth, size_t imageHeight, cl_image_format *outFormat, ExplicitType *outType, void **outResult… in test_cl_image_read() argument
58 *outType = get_read_kernel_type( outFormat ); in test_cl_image_read()
59 size_t channelSize = get_explicit_type_size( *outType ); in test_cl_image_read()
61 …sprintf( kernelSource, imageReadKernelPattern, get_explicit_type_name( *outType ), get_kernel_suff… in test_cl_image_read()
122 …mageWidth, size_t imageHeight, cl_image_format *outFormat, ExplicitType *outType, void **outResult… in test_image_read() argument
138 …return test_cl_image_read( context, queue, image, imageWidth, imageHeight, outFormat, outType, out… in test_image_read()
376 …mageWidth, size_t imageHeight, cl_image_format *outFormat, ExplicitType *outType, void **outSource… in test_cl_image_write() argument
392 *outType = get_write_kernel_type( outFormat ); in test_cl_image_write()
393 size_t channelSize = get_explicit_type_size( *outType ); in test_cl_image_write()
396 const char* convert = get_write_conversion( outFormat, *outType ); in test_cl_image_write()
[all …]
Dtest_renderbuffer.cpp23 ExplicitType *outType, void **outSourceBuffer, MTdata d );
27 ExplicitType *outType, void **outResultBuffer );
30 …mageWidth, size_t imageHeight, cl_image_format *outFormat, ExplicitType *outType, void **outResult… in test_attach_renderbuffer_read_image() argument
42 …return test_cl_image_read( context, queue, image, imageWidth, imageHeight, outFormat, outType, out… in test_attach_renderbuffer_read_image()
203 …mageWidth, size_t imageHeight, cl_image_format *outFormat, ExplicitType *outType, MTdata d, void *… in test_attach_renderbuffer_write_to_image() argument
215 …return test_cl_image_write( context, queue, image, imageWidth, imageHeight, outFormat, outType, ou… in test_attach_renderbuffer_write_to_image()
Dtest_images_3D.cpp35 … cl_image_format *outFormat, ExplicitType *outType, void **outResultBuffer ) in test_image_read() argument
65 *outType = get_read_kernel_type( outFormat ); in test_image_read()
66 size_t channelSize = get_explicit_type_size( *outType ); in test_image_read()
68 …sprintf( kernelSource, imageReadKernelPattern, get_explicit_type_name( *outType ), get_kernel_suff… in test_image_read()
/external/OpenCL-CTS/test_conformance/gl/
Dhelpers.cpp172 … void * inputBuffer, size_t numPixels, ExplicitType inType, ExplicitType outType, size_t channelNu… in convert_to_expected() argument
176 get_explicit_type_name( inType ), get_explicit_type_name( outType ) ); in convert_to_expected()
179 if( inType == outType ) in convert_to_expected()
181 …char *outData = new char[ numPixels * channelNum * get_explicit_type_size(outType) ] ; // sizeof( … in convert_to_expected()
196 switch( outType ) in convert_to_expected()
218 …onversion from %s to %s!\n", get_explicit_type_name( inType ), get_explicit_type_name( outType ) ); in convert_to_expected()
226 switch( outType ) in convert_to_expected()
248 …onversion from %s to %s!\n", get_explicit_type_name( inType ), get_explicit_type_name( outType ) ); in convert_to_expected()
256 switch( outType ) in convert_to_expected()
278 …onversion from %s to %s!\n", get_explicit_type_name( inType ), get_explicit_type_name( outType ) ); in convert_to_expected()
[all …]
Dtest_images_write_common.cpp299 cl_image_format *outFormat, ExplicitType *outType, void **outSourceBuffer, in test_cl_image_write() argument
319 *outType = get_write_kernel_type( outFormat ); in test_cl_image_write()
320 size_t channelSize = get_explicit_type_size(*outType); in test_cl_image_write()
323 *outType, outFormat->image_channel_order); in test_cl_image_write()
324 if (*outType == kHalf && !supports_half) { in test_cl_image_write()
330 const char* convert = get_write_conversion( outFormat, *outType ); in test_cl_image_write()
332 sprintf(kernelSource, appropriateKernel, get_explicit_type_name( *outType ), in test_cl_image_write()
333 get_explicit_type_name( *outType ), suffix, convert); in test_cl_image_write()
361 *outSourceBuffer = CreateRandomData(*outType, width * height * depth * 4, d); in test_cl_image_write()
405 cl_image_format *outFormat, ExplicitType *outType, void **outSourceBuffer, in test_image_write() argument
[all …]
Dtest_renderbuffer.cpp58 cl_image_format *outFormat, ExplicitType *outType, void **outSourceBuffer,
63 cl_image_format *outFormat, ExplicitType *outType, void **outResultBuffer );
68 …mageWidth, size_t imageHeight, cl_image_format *outFormat, ExplicitType *outType, void **outResult… in test_attach_renderbuffer_read_image() argument
81 imageHeight, 1, 1, outFormat, outType, outResultBuffer ); in test_attach_renderbuffer_read_image()
269 …mageWidth, size_t imageHeight, cl_image_format *outFormat, ExplicitType *outType, MTdata d, void *… in test_attach_renderbuffer_write_to_image() argument
282 imageHeight, 1, outFormat, outType, outSourceBuffer, d, supports_half ); in test_attach_renderbuffer_write_to_image()
Dtest_images_read_common.cpp221 cl_image_format *outFormat, ExplicitType *outType, void **outResultBuffer ) in test_cl_image_read() argument
244 *outType = get_read_kernel_type( outFormat ); in test_cl_image_read()
245 size_t channelSize = get_explicit_type_size( *outType ); in test_cl_image_read()
249 sprintf( kernelSource, source, get_explicit_type_name( *outType ), in test_cl_image_read()
359 cl_image_format *outFormat, ExplicitType *outType, void **outResultBuffer ) in test_image_read() argument
386 width, height, depth, sampleNum, outFormat, outType, outResultBuffer ); in test_image_read()
/external/deqp/modules/gles2/scripts/
Dgen-conversions.py179 outType = outValues[0].typeString()
180 self.name = "%s_to_%s" % (inType, outType)
181 self.op = "out0 = %s(in0);" % outType
183 self.outputs = [("%s out0" % outType, outValues)]
196 outType = outValue.typeString()
197 self.name = "%s_to_%s" % (inType, outType)
198 self.op = "%s in0 = %s;\n%s out0 = %s(in0);" % (inType, str(inValue), outType, outType)
200 self.outType = outType
213 self.outType = self.outValues[0].typeString()
215 self.name = "%s_to_%s" % ("_".join(inTypes), self.outType)
[all …]
/external/angle/util/
Dcom_utils.h12 template <typename outType>
13 inline outType *DynamicCastComObject(IUnknown *object) in DynamicCastComObject()
15 outType *outObject = nullptr; in DynamicCastComObject()
17 object->QueryInterface(__uuidof(outType), reinterpret_cast<void **>(&outObject)); in DynamicCastComObject()
/external/icu/icu4c/source/tools/icupkg/
Dicupkg.cpp267 char outType; in main() local
364 outType=type[0]; in main()
365 switch(outType) { in main()
381 isModified|=(UBool)(!isPackage || outType!=pkg->getInType()); in main()
383 outType=pkg->getInType(); // default to input type in main()
385 outType=0; /* tells extractItem() to not swap */ in main()
409 pkg->extractItem(destPath, outFilename, 0, outType); in main()
482 pkg->extractItems(destPath, *listPkg, outType); in main()
541 *(s-5)=outType; in main()
548 result = writePackageDatFile(outFilename, outComment, NULL, NULL, pkg, outType); in main()
/external/icu/icu4c/source/tools/toolutil/
Dpackage.h83 void writePackage(const char *filename, char outType, const char *comment);
120 void extractItem(const char *filesPath, int32_t itemIndex, char outType);
121 void extractItems(const char *filesPath, const char *pattern, char outType);
122 void extractItems(const char *filesPath, const Package &listPkg, char outType);
125 void extractItem(const char *filesPath, const char *outName, int32_t itemIndex, char outType);
Dpackage.cpp686 Package::writePackage(const char *filename, char outType, const char *comment) { in writePackage() argument
724 makeTypeProps(outType, outCharset, outIsBigEndian); in writePackage()
730 i=makeTypeEnum(outType); in writePackage()
777 prefix[prefixLength-1]=outType; in writePackage()
1127 Package::extractItem(const char *filesPath, const char *outName, int32_t idx, char outType) { in extractItem() argument
1143 if(outType!=0 && pItem->type!=outType) { in extractItem()
1147 makeTypeProps(outType, outCharset, outIsBigEndian); in extractItem()
1165 pItem->type=outType; in extractItem()
1185 Package::extractItem(const char *filesPath, int32_t idx, char outType) { in extractItem() argument
1186 extractItem(filesPath, items[idx].name, idx, outType); in extractItem()
[all …]
/external/deqp/modules/gles3/scripts/
Dgen-conversions.py192 outType = outValues[0].typeString()
193 self.name = "%s_to_%s" % (inType, outType)
194 self.op = "out0 = %s(in0);" % outType
196 self.outputs = [("%s out0" % outType, outValues)]
209 outType = outValue.typeString()
210 self.name = "%s_to_%s" % (inType, outType)
211 self.op = "%s in0 = %s;\n%s out0 = %s(in0);" % (inType, str(inValue), outType, outType)
213 self.outType = outType
226 self.outType = self.outValues[0].typeString()
228 self.name = "%s_to_%s" % ("_".join(inTypes), self.outType)
[all …]
Dgen-large-constant-arrays.py105 outType = outputs[0].typeString() variable
111 [("%s out0" % outType, outputs)])
/external/golang-protobuf/protoc-gen-go/grpc/
Dgrpc.go339 outType := g.typeName(method.GetOutputType())
346 g.P("out := new(", outType, ")")
377 g.P("Recv() (*", outType, ", error)")
380 g.P("CloseAndRecv() (*", outType, ", error)")
398 g.P("func (x *", streamType, ") Recv() (*", outType, ", error) {")
399 g.P("m := new(", outType, ")")
406 g.P("func (x *", streamType, ") CloseAndRecv() (*", outType, ", error) {")
408 g.P("m := new(", outType, ")")
468 outType := g.typeName(method.GetOutputType())
506 g.P("Send(*", outType, ") error")
[all …]
/external/deqp/modules/glshared/
DglsShaderConstExprTests.cpp127 const DataType outType = cases[caseNdx].outType; in createTests() local
133 shaderTemplateParams["CASE_BASE_TYPE"] = glu::getDataTypeName(outType); in createTests()
167 addOutputVar(&spec.values, outType, cases[caseNdx].output); in createTests()
188 addOutputVar(&spec.values, outType, cases[caseNdx].output); in createTests()
221 addOutputVar(&spec.values, outType, cases[caseNdx].output); in createTests()
242 addOutputVar(&spec.values, outType, cases[caseNdx].output); in createTests()
/external/angle/src/libANGLE/renderer/d3d/d3d11/
Drenderer11_utils.h175 template <typename outType>
176 outType *DynamicCastComObject(IUnknown *object) in DynamicCastComObject()
178 outType *outObject = nullptr; in DynamicCastComObject()
180 object->QueryInterface(__uuidof(outType), reinterpret_cast<void **>(&outObject)); in DynamicCastComObject()
192 template <typename outType>
193 angle::ComPtr<outType> DynamicCastComObjectToComPtr(IUnknown *object) in DynamicCastComObjectToComPtr()
195 angle::ComPtr<outType> outObject; in DynamicCastComObjectToComPtr()
/external/deqp/external/openglcts/modules/common/
DglcShaderConstExprTests.cpp51 glu::DataType outType; member
65 glu::DataType outType; member
188 shaderSpec.outputs.push_back(Symbol("out0", glu::VarType(params.outType, glu::PRECISION_HIGHP))); in createTestCasesForAllShaderTypes()
258 shaderTemplateParams["CASE_BASE_TYPE"] = glu::getDataTypeName(testCase.outType); in createTests()
260 shaderExecutorParams.outType = testCase.outType; in createTests()
287 if (shaderExecutorParams.outType == glu::TYPE_FLOAT) in createTests()
304 if (shaderExecutorParams.outType == glu::TYPE_FLOAT) in createTests()
/external/angle/src/tests/deqp_support/
DglcShaderConstExprTests_override.cpp51 glu::DataType outType; member
66 glu::DataType outType; member
199 Symbol("out0", glu::VarType(params.outType, glu::PRECISION_HIGHP))); in createTestCasesForAllShaderTypes()
274 shaderTemplateParams["CASE_BASE_TYPE"] = glu::getDataTypeName(testCase.outType); in createTests()
276 shaderExecutorParams.outType = testCase.outType; in createTests()
305 if (shaderExecutorParams.outType == glu::TYPE_FLOAT) in createTests()
324 if (shaderExecutorParams.outType == glu::TYPE_FLOAT) in createTests()
/external/deqp/external/openglcts/modules/gles31/
Des31cSampleShadingTests.cpp66 std::string const& outType) in specializeVersion() argument
72 args["OUT_TYPE"] = outType; in specializeVersion()
203 const char* outType, GLfloat min, GLfloat max, const char* extension, in SampleShadingRenderCase() argument
210 , m_outType(outType) in SampleShadingRenderCase()
476 const char* outType, GLfloat min, GLfloat max, const char* extension = "");
498 const char* outType, GLfloat min, GLfloat max, in SampleShadingRenderFormatTests() argument
505 , m_outType(outType) in SampleShadingRenderFormatTests()

123