Skip to content

Commit

Permalink
RSN Parser Test: added AsyncShaderCompilation feature
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed May 24, 2024
1 parent a019d41 commit 5f79361
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@
"SubpassFramebufferFetch": "OPTIONAL",
"TextureComponentSwizzle": "OPTIONAL",
"TextureSubresourceViews": "ENABLED",
"NativeMultiDraw": "OPTIONAL"
"NativeMultiDraw": "OPTIONAL",
"AsyncShaderCompilation": "ENABLED"
}
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ TEST(Tools_RenderStateNotationParser, ParseDeviceFeatures)
DescReference.TextureComponentSwizzle = DEVICE_FEATURE_STATE_OPTIONAL;
DescReference.TextureSubresourceViews = DEVICE_FEATURE_STATE_ENABLED;
DescReference.NativeMultiDraw = DEVICE_FEATURE_STATE_OPTIONAL;
static_assert(sizeof(DescReference) == 43, "Did you add a new feature? Please add it to the test");
DescReference.AsyncShaderCompilation = DEVICE_FEATURE_STATE_ENABLED;
static_assert(sizeof(DescReference) == 44, "Did you add a new feature? Please add it to the test");

DeviceFeatures Desc{};
ParseRSN(JsonReference, Desc, Allocator);
Expand Down

0 comments on commit 5f79361

Please sign in to comment.