mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-23 07:39:01 +00:00
Fix copy and move semantics of wrapper classes (#1268)
* Remove unnecessary code These custom equality operators are not necessary because of the conversion operators which already allow using the standard equality operators between two pointers. Signed-off-by: Marco Antognini <marco.antognini@arm.com> * Fix copy and move semantics of wrapper classes Related to #465. The Wrapper classes are rewritten to properly handle copy and move semantics, while preserving the existing API and removing code duplication. Add error handling around clRelase* and clRetain*. Signed-off-by: Marco Antognini <marco.antognini@arm.com> * Address build issue on 32-bit Windows Include linkage in RetainReleaseType function type. Signed-off-by: Marco Antognini <marco.antognini@arm.com>
This commit is contained in:
@@ -39,7 +39,8 @@ public:
|
||||
region.size = mSize;
|
||||
|
||||
cl_int error;
|
||||
mMem = clCreateSubBuffer( mParentBuffer, flags, CL_BUFFER_CREATE_TYPE_REGION, ®ion, &error );
|
||||
reset(clCreateSubBuffer(mParentBuffer, flags,
|
||||
CL_BUFFER_CREATE_TYPE_REGION, ®ion, &error));
|
||||
return error;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user