mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 15:46:28 +00:00
Implement CreateDefaultTextureView by CreateTextureView
This patch removes CreateDefaultTextureView in all the back-ends of class Device and implements this function by CreateTextureView using a TextureViewDescriptor created from the original texture. Note that this patch only refactors the original implementation of creating default texture. The support of creating texture views from a texture view descriptor will be added in the next several patches. BUG=dawn:16 Change-Id: Iadfc1e17e1cf23a4c1fa8ff44b1fb1a765d21e3f Reviewed-on: https://dawn-review.googlesource.com/c/1840 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Jiawei Shao <jiawei.shao@intel.com>
This commit is contained in:
committed by
Commit Bot service account
parent
79aee9c56d
commit
aef480bcfe
@@ -129,7 +129,9 @@ namespace dawn_native { namespace opengl {
|
||||
|
||||
// TextureView
|
||||
|
||||
TextureView::TextureView(TextureBase* texture) : TextureViewBase(texture) {
|
||||
// TODO(jiawei.shao@intel.com): create texture view by TextureViewDescriptor
|
||||
TextureView::TextureView(TextureBase* texture, const TextureViewDescriptor* descriptor)
|
||||
: TextureViewBase(texture, descriptor) {
|
||||
}
|
||||
|
||||
}} // namespace dawn_native::opengl
|
||||
|
||||
Reference in New Issue
Block a user