diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-12-25 17:27:22 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-12-25 17:27:22 +0000 |
| commit | 36340071c7bee4b120e81a359e98028f58859810 (patch) | |
| tree | 7365064e128b05964a5de3cdf04a82c2bbaf87ef /Tests/TestApp/src/TestTextureCreation.cpp | |
| parent | Updated build script for iOS (diff) | |
| download | DiligentEngine-36340071c7bee4b120e81a359e98028f58859810.tar.gz DiligentEngine-36340071c7bee4b120e81a359e98028f58859810.zip | |
Enabled Vulkan mode on Mac (preliminary implementation)
Diffstat (limited to 'Tests/TestApp/src/TestTextureCreation.cpp')
| -rw-r--r-- | Tests/TestApp/src/TestTextureCreation.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/TestApp/src/TestTextureCreation.cpp b/Tests/TestApp/src/TestTextureCreation.cpp index 11a0a48..8f4e04d 100644 --- a/Tests/TestApp/src/TestTextureCreation.cpp +++ b/Tests/TestApp/src/TestTextureCreation.cpp @@ -328,7 +328,8 @@ private: ViewDesc.FirstDepthSlice = 3; ViewDesc.NumDepthSlices = 4; } - else if( DeviceCaps.DevType == DeviceType::Vulkan && ViewDesc.ViewType != TEXTURE_VIEW_RENDER_TARGET && ViewDesc.ViewType != TEXTURE_VIEW_DEPTH_STENCIL || DeviceCaps.DevType != DeviceType::Vulkan) + else if( (DeviceCaps.DevType == DeviceType::Vulkan && ViewDesc.ViewType != TEXTURE_VIEW_RENDER_TARGET && ViewDesc.ViewType != TEXTURE_VIEW_DEPTH_STENCIL) || + DeviceCaps.DevType != DeviceType::Vulkan) { // OpenGL cannot create views for separate depth slices ViewDesc.FirstDepthSlice = 0; |
