Skip to content

Commit 764f480

Browse files
committed
add enum operators for some importrant flags
1 parent 5ef5cb0 commit 764f480

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

include/nbl/asset/IBuffer.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ class NBL_API IBuffer : public core::IBuffer, public IDescriptor
6262
SCreationParams m_creationParams;
6363
};
6464

65+
NBL_ENUM_ADD_BITWISE_OPERATORS(IBuffer::E_USAGE_FLAGS)
66+
6567
template<class BufferType>
6668
struct NBL_API SBufferBinding
6769
{

include/nbl/asset/IImage.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,8 @@ class NBL_API IImage : public IDescriptor
740740
};
741741
static_assert(sizeof(IImage)-sizeof(IDescriptor)!=3u*sizeof(uint32_t)+sizeof(VkExtent3D)+sizeof(uint32_t)*3u,"BaW File Format won't work");
742742

743+
NBL_ENUM_ADD_BITWISE_OPERATORS(IImage::E_USAGE_FLAGS)
744+
743745
} // end namespace nbl::asset
744746

745747
#endif

include/nbl/video/utilities/IUtilities.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,9 @@ class NBL_API2 IUtilities : public core::IReferenceCounted
564564
m_device->blockForFences(1u, &fence.get());
565565
}
566566

567+
568+
// pipelineBarrierAutoSubmit?
569+
567570
// --------------
568571
// downloadBufferRangeViaStagingBuffer
569572
// --------------

0 commit comments

Comments
 (0)