Searched refs:BufferSizeReductionFactor (Results 1 – 1 of 1) sorted by relevance
20 const cl_uint BufferSizeReductionFactor = 20; variable36 if( maxWidth * maxHeight * 4 > maxAllocSize / BufferSizeReductionFactor ) in IGetPreferredImageSize2D()38 float rootSize = sqrtf( (float)( maxAllocSize / ( BufferSizeReductionFactor * 4 ) ) ); in IGetPreferredImageSize2D()44 outHeight = (size_t)( ( maxAllocSize / ( BufferSizeReductionFactor * 4 ) ) / outWidth ); in IGetPreferredImageSize2D()81 … if( (cl_ulong)maxWidth * maxHeight * maxDepth > maxAllocSize / ( BufferSizeReductionFactor * 4 ) ) in IGetPreferredImageSize3D()83 float rootSize = cbrtf( (float)( maxAllocSize / ( BufferSizeReductionFactor * 4 ) ) ); in IGetPreferredImageSize3D()93 …outDepth = (size_t)( ( maxAllocSize / ( BufferSizeReductionFactor * 4 ) ) / ( outWidth * outHeight… in IGetPreferredImageSize3D()185 mSize = (size_t)( maxAllocSize / BufferSizeReductionFactor ); in Setup()