|
1 | 1 | /* |
2 | | - * Copyright 2019-2023 Diligent Graphics LLC |
| 2 | + * Copyright 2019-2024 Diligent Graphics LLC |
3 | 3 | * Copyright 2015-2019 Egor Yusov |
4 | 4 | * |
5 | 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -838,6 +838,7 @@ void RenderDeviceGLImpl::InitAdapterInfo() |
838 | 838 | ENABLE_FEATURE(ResourceBuffer8BitAccess, CheckExtension("GL_EXT_shader_8bit_storage")); |
839 | 839 | ENABLE_FEATURE(UniformBuffer8BitAccess, CheckExtension("GL_EXT_shader_8bit_storage")); |
840 | 840 | ENABLE_FEATURE(TextureComponentSwizzle, IsGL46OrAbove || CheckExtension("GL_ARB_texture_swizzle")); |
| 841 | + ENABLE_FEATURE(TextureSubresourceViews, IsGL43OrAbove || CheckExtension("GL_ARB_texture_view")); |
841 | 842 | // clang-format on |
842 | 843 |
|
843 | 844 | TexProps.MaxTexture1DDimension = MaxTextureSize; |
@@ -908,6 +909,7 @@ void RenderDeviceGLImpl::InitAdapterInfo() |
908 | 909 | ENABLE_FEATURE(ResourceBuffer8BitAccess, strstr(Extensions, "shader_8bit_storage")); |
909 | 910 | ENABLE_FEATURE(UniformBuffer8BitAccess, strstr(Extensions, "shader_8bit_storage")); |
910 | 911 | ENABLE_FEATURE(TextureComponentSwizzle, true); |
| 912 | + ENABLE_FEATURE(TextureSubresourceViews, strstr(Extensions, "texture_view")); |
911 | 913 | // clang-format on |
912 | 914 |
|
913 | 915 | TexProps.MaxTexture1DDimension = 0; // Not supported in GLES 3.2 |
@@ -1070,7 +1072,7 @@ void RenderDeviceGLImpl::InitAdapterInfo() |
1070 | 1072 | m_AdapterInfo.Queues[0].TextureCopyGranularity[2] = 1; |
1071 | 1073 | } |
1072 | 1074 |
|
1073 | | - ASSERT_SIZEOF(DeviceFeatures, 41, "Did you add a new feature to DeviceFeatures? Please handle its status here."); |
| 1075 | + ASSERT_SIZEOF(DeviceFeatures, 42, "Did you add a new feature to DeviceFeatures? Please handle its status here."); |
1074 | 1076 | } |
1075 | 1077 |
|
1076 | 1078 | void RenderDeviceGLImpl::FlagSupportedTexFormats() |
|
0 commit comments