mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 15:46:28 +00:00
TextureBase: return size as an Extent3D to match dawn.json
BUG=dawn:13 Change-Id: I1104cb2038e0e77814b036868c50030fc8186bf8 Reviewed-on: https://dawn-review.googlesource.com/1522 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Stephen White <senorblanco@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
29353d6ee3
commit
cd5e5756fd
@@ -77,8 +77,8 @@ namespace dawn_native { namespace opengl {
|
||||
: TextureBase(device, descriptor), mHandle(handle) {
|
||||
mTarget = TargetForDimensionAndArrayLayers(GetDimension(), GetArrayLayers());
|
||||
|
||||
uint32_t width = GetWidth();
|
||||
uint32_t height = GetHeight();
|
||||
uint32_t width = GetSize().width;
|
||||
uint32_t height = GetSize().height;
|
||||
uint32_t levels = GetNumMipLevels();
|
||||
uint32_t arrayLayers = GetArrayLayers();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user