File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -458,15 +458,15 @@ bool ManagedBuffer<T>::deviceBufferTypeIsTexture() {
458458template <typename T>
459459void ManagedBuffer<T>::checkDeviceBufferTypeIs(DeviceBufferType targetType) {
460460 if (targetType != deviceBufferType) {
461- exception (" ManagedBuffer has wrong type for this operation. Expected " + deviceBufferTypeName (targetType) +
462- " but is " + deviceBufferTypeName (deviceBufferType));
461+ exception (" ManagedBuffer " + name + " has wrong type for this operation. Expected " +
462+ deviceBufferTypeName (targetType) + " but is " + deviceBufferTypeName (deviceBufferType));
463463 }
464464}
465465
466466template <typename T>
467467void ManagedBuffer<T>::checkDeviceBufferTypeIsTexture() {
468468 if (!deviceBufferTypeIsTexture ()) {
469- exception (" ManagedBuffer has wrong type for this operation. Expected a Texture1d/2d/3d but is " +
469+ exception (" ManagedBuffer " + name + " has wrong type for this operation. Expected a Texture1d/2d/3d but is " +
470470 deviceBufferTypeName (deviceBufferType));
471471 }
472472}
You can’t perform that action at this time.
0 commit comments