Skip to content

Commit 4ee3e95

Browse files
Updated RSN Parser Test: added NativeMultiDraw feature
1 parent 7da1541 commit 4ee3e95

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Tests/DiligentToolsTest/assets/RenderStates/GraphicsTypes/DeviceFeatures.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,6 @@
3838
"WireframeFill": "ENABLED",
3939
"SubpassFramebufferFetch": "OPTIONAL",
4040
"TextureComponentSwizzle": "OPTIONAL",
41-
"TextureSubresourceViews": "ENABLED"
41+
"TextureSubresourceViews": "ENABLED",
42+
"NativeMultiDraw": "OPTIONAL"
4243
}

Tests/DiligentToolsTest/src/RenderStateNotationParser/GraphicsTypesParserTest.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ TEST(Tools_RenderStateNotationParser, ParseDeviceFeatures)
124124
DescReference.SubpassFramebufferFetch = DEVICE_FEATURE_STATE_OPTIONAL;
125125
DescReference.TextureComponentSwizzle = DEVICE_FEATURE_STATE_OPTIONAL;
126126
DescReference.TextureSubresourceViews = DEVICE_FEATURE_STATE_ENABLED;
127-
static_assert(sizeof(DescReference) == 42, "Did you add a new feature? Please add it to the test");
127+
DescReference.NativeMultiDraw = DEVICE_FEATURE_STATE_OPTIONAL;
128+
static_assert(sizeof(DescReference) == 43, "Did you add a new feature? Please add it to the test");
128129

129130
DeviceFeatures Desc{};
130131
ParseRSN(JsonReference, Desc, Allocator);

0 commit comments

Comments
 (0)