From a294546bcc7c883edd113f2c80d7f278ff8219ed Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Thu, 29 Nov 2018 22:45:16 -0800 Subject: Improved type safety of flag enums --- RenderScript/src/EnumMappings.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'RenderScript/src/EnumMappings.cpp') diff --git a/RenderScript/src/EnumMappings.cpp b/RenderScript/src/EnumMappings.cpp index bcefd89..84ce7d9 100644 --- a/RenderScript/src/EnumMappings.cpp +++ b/RenderScript/src/EnumMappings.cpp @@ -30,6 +30,7 @@ namespace Diligent { CpuAccessFlagEnumMapping::CpuAccessFlagEnumMapping() { + DEFINE_ENUM_ELEMENT_MAPPING( (*this), CPU_ACCESS_NONE ); DEFINE_ENUM_ELEMENT_MAPPING( (*this), CPU_ACCESS_READ ); DEFINE_ENUM_ELEMENT_MAPPING( (*this), CPU_ACCESS_WRITE ); } -- cgit v1.2.3