Add bool operator
This commit is contained in:
@@ -33,6 +33,8 @@ namespace OpenVulkano::AR
|
||||
Math::Vector2ui resolution;
|
||||
uint32_t numChannels = 1;
|
||||
uint32_t rowPadding = 0;
|
||||
|
||||
operator bool() const { return data; }
|
||||
};
|
||||
|
||||
class ArImagePlanar
|
||||
@@ -97,7 +99,7 @@ namespace OpenVulkano::AR
|
||||
ArDepthFormat format;
|
||||
Math::CameraIntrinsic intrinsic;
|
||||
|
||||
operator bool() const { return depth.data; }
|
||||
operator bool() const { return depth; }
|
||||
};
|
||||
|
||||
class ArFrame : public std::enable_shared_from_this<ArFrame>
|
||||
|
||||
Reference in New Issue
Block a user