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

Function get_pixel_alignment

test_common/harness/imageHelpers.cpp:334–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334uint32_t get_pixel_alignment(const cl_image_format *format)
335{
336 return next_power_of_two(get_pixel_size(format));
337}
338
339int get_8_bit_image_format(cl_context context, cl_mem_object_type objType,
340 cl_mem_flags flags, size_t channelCount,

Callers 2

create_random_image_dataFunction · 0.85

Calls 2

next_power_of_twoFunction · 0.85
get_pixel_sizeFunction · 0.85

Tested by

no test coverage detected