chromium/third_party/dawn/src/dawn/native/EncodingContext.cpp

// Copyright 2019 The Dawn & Tint Authors
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this
//    list of conditions and the following disclaimer.
//
// 2. Redistributions in binary form must reproduce the above copyright notice,
//    this list of conditions and the following disclaimer in the documentation
//    and/or other materials provided with the distribution.
//
// 3. Neither the name of the copyright holder nor the names of its
//    contributors may be used to endorse or promote products derived from
//    this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include "dawn/native/EncodingContext.h"

#include "dawn/common/Assert.h"
#include "dawn/native/CommandEncoder.h"
#include "dawn/native/Commands.h"
#include "dawn/native/Device.h"
#include "dawn/native/ErrorData.h"
#include "dawn/native/IndirectDrawValidationEncoder.h"
#include "dawn/native/RenderBundleEncoder.h"

namespace dawn::native {

EncodingContext::EncodingContext(DeviceBase* device, const ApiObjectBase* initialEncoder)
    :{}

EncodingContext::EncodingContext(DeviceBase* device, ErrorMonad::ErrorTag tag)
    :{}

EncodingContext::~EncodingContext() {}

void EncodingContext::Destroy() {}

CommandIterator EncodingContext::AcquireCommands() {}

void EncodingContext::HandleError(std::unique_ptr<ErrorData> error) {}

void EncodingContext::WillBeginRenderPass() {}

void EncodingContext::EnterPass(const ApiObjectBase* passEncoder) {}

MaybeError EncodingContext::ExitRenderPass(const ApiObjectBase* passEncoder,
                                           RenderPassResourceUsageTracker usageTracker,
                                           CommandEncoder* commandEncoder,
                                           IndirectDrawMetadata indirectDrawMetadata) {}

void EncodingContext::ExitComputePass(const ApiObjectBase* passEncoder,
                                      ComputePassResourceUsage usages) {}

void EncodingContext::EnsurePassExited(const ApiObjectBase* passEncoder) {}

const RenderPassUsages& EncodingContext::GetRenderPassUsages() const {}

RenderPassUsages EncodingContext::AcquireRenderPassUsages() {}

const ComputePassUsages& EncodingContext::GetComputePassUsages() const {}

ComputePassUsages EncodingContext::AcquireComputePassUsages() {}

void EncodingContext::PushDebugGroupLabel(std::string_view groupLabel) {}

void EncodingContext::PopDebugGroupLabel() {}

MaybeError EncodingContext::Finish() {}

void EncodingContext::CommitCommands(CommandAllocator allocator) {}

}  // namespace dawn::native