mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 15:46:28 +00:00
Support cube map and cube map array
This patch implements cube map and cube map array texture views on all back-ends and adds related end2end tests. BUG=dawn:16 TEST=dawn_end2end_tests Change-Id: I3ac3f493eb92ac551371041039bd5cf39df53050 Reviewed-on: https://dawn-review.googlesource.com/c/2220 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
69b44ee6a1
commit
5ab84ec0a6
@@ -41,6 +41,10 @@ namespace dawn_native { namespace opengl {
|
||||
return GL_TEXTURE_2D;
|
||||
case dawn::TextureViewDimension::e2DArray:
|
||||
return GL_TEXTURE_2D_ARRAY;
|
||||
case dawn::TextureViewDimension::Cube:
|
||||
return GL_TEXTURE_CUBE_MAP;
|
||||
case dawn::TextureViewDimension::CubeArray:
|
||||
return GL_TEXTURE_CUBE_MAP_ARRAY;
|
||||
default:
|
||||
UNREACHABLE();
|
||||
return GL_TEXTURE_2D;
|
||||
|
||||
Reference in New Issue
Block a user