@@ -392,10 +392,10 @@ bool DPCTLDevice_HasAspect(__dpctl_keep const DPCTLSyclDeviceRef DRef,
392392 return hasAspect;
393393}
394394
395- #define declmethod (FUNC, NAME ) \
396- size_t DPCTLDevice_##FUNC(__dpctl_keep const DPCTLSyclDeviceRef DRef) \
395+ #define declmethod (FUNC, NAME, TYPE ) \
396+ TYPE DPCTLDevice_##FUNC(__dpctl_keep const DPCTLSyclDeviceRef DRef) \
397397 { \
398- size_t result = 0 ; \
398+ TYPE result = 0 ; \
399399 auto D = unwrap (DRef); \
400400 if (D) { \
401401 try { \
@@ -406,11 +406,13 @@ bool DPCTLDevice_HasAspect(__dpctl_keep const DPCTLSyclDeviceRef DRef,
406406 } \
407407 return result; \
408408 }
409- declmethod (GetImage2dMaxWidth, image2d_max_width);
410- declmethod (GetImage2dMaxHeight, image2d_max_height);
411- declmethod (GetImage3dMaxWidth, image3d_max_width);
412- declmethod (GetImage3dMaxHeight, image3d_max_height);
413- declmethod (GetImage3dMaxDepth, image3d_max_depth);
409+ declmethod (GetMaxReadImageArgs, max_read_image_args, uint32_t );
410+ declmethod (GetMaxWriteImageArgs, max_write_image_args, uint32_t );
411+ declmethod (GetImage2dMaxWidth, image2d_max_width, size_t );
412+ declmethod (GetImage2dMaxHeight, image2d_max_height, size_t );
413+ declmethod (GetImage3dMaxWidth, image3d_max_width, size_t );
414+ declmethod (GetImage3dMaxHeight, image3d_max_height, size_t );
415+ declmethod (GetImage3dMaxDepth, image3d_max_depth, size_t );
414416#undef declmethod
415417
416418bool DPCTLDevice_GetSubGroupIndependentForwardProgress (
0 commit comments