Skip to content

Commit 53e7769

Browse files
committed
Merge branch 'master' of https://github.com/Devsh-Graphics-Programming/Nabla into erfan_cubemap_render
2 parents 24161e8 + 185ca5c commit 53e7769

15 files changed

+2069
-2597
lines changed

include/nbl/asset/IImageView.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ class IImageView : public IDescriptor
6262
E_SWIZZLE b = ES_B;
6363
E_SWIZZLE a = ES_A;
6464

65+
E_SWIZZLE& operator[](const uint32_t ix)
66+
{
67+
assert(ix<4u);
68+
return (&r)[ix];
69+
}
70+
6571
bool operator==(const SComponentMapping& rhs) const
6672
{
6773
return r == rhs.r && g == rhs.g && b == rhs.b && a == rhs.a;

0 commit comments

Comments
 (0)