// Copyright 2021 The Dawn Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "src/dawn/node/binding/GPUTextureView.h"

#include "src/dawn/node/utils/Debug.h"

namespace wgpu::binding {

    ////////////////////////////////////////////////////////////////////////////////
    // wgpu::bindings::GPUTextureView
    ////////////////////////////////////////////////////////////////////////////////
    GPUTextureView::GPUTextureView(wgpu::TextureView view) : view_(std::move(view)) {
    }

    std::variant<std::string, interop::UndefinedType> GPUTextureView::getLabel(Napi::Env) {
        UNIMPLEMENTED();
    }

    void GPUTextureView::setLabel(Napi::Env,
                                  std::variant<std::string, interop::UndefinedType> value) {
        UNIMPLEMENTED();
    };

}  // namespace wgpu::binding
