MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCL-CTS / is_format_signed

Function is_format_signed

test_common/harness/imageHelpers.cpp:256–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254
255
256int is_format_signed(const cl_image_format *format)
257{
258 switch (format->image_channel_data_type)
259 {
260 case CL_SNORM_INT8:
261 case CL_SIGNED_INT8:
262 case CL_SNORM_INT16:
263 case CL_SIGNED_INT16:
264 case CL_SIGNED_INT32:
265 case CL_HALF_FLOAT:
266 case CL_FLOAT:
267#ifdef CL_SFIXED14_APPLE
268 case CL_SFIXED14_APPLE:
269#endif
270 return 1;
271
272 default: return 0;
273 }
274}
275
276uint32_t get_pixel_size(const cl_image_format *format)
277{

Callers 1

create_random_image_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected