#include "dawn/native/ExternalTexture.h"
#include <algorithm>
#include <utility>
#include "dawn/native/Buffer.h"
#include "dawn/native/Device.h"
#include "dawn/native/ObjectType_autogen.h"
#include "dawn/native/Queue.h"
#include "dawn/native/Texture.h"
#include "dawn/native/dawn_platform.h"
namespace dawn::native {
MaybeError ValidateExternalTexturePlane(const TextureViewBase* textureView) { … }
MaybeError ValidateExternalTextureDescriptor(const DeviceBase* device,
const ExternalTextureDescriptor* descriptor) { … }
ResultOrError<Ref<ExternalTextureBase>> ExternalTextureBase::Create(
DeviceBase* device,
const ExternalTextureDescriptor* descriptor) { … }
ExternalTextureBase::ExternalTextureBase(DeviceBase* device,
const ExternalTextureDescriptor* descriptor)
: … { … }
ExternalTextureBase::ExternalTextureBase(DeviceBase* device,
ObjectBase::ErrorTag tag,
const char* label)
: … { … }
ExternalTextureBase::~ExternalTextureBase() = default;
MaybeError ExternalTextureBase::Initialize(DeviceBase* device,
const ExternalTextureDescriptor* descriptor) { … }
const std::array<Ref<TextureViewBase>, kMaxPlanesPerFormat>& ExternalTextureBase::GetTextureViews()
const { … }
MaybeError ExternalTextureBase::ValidateCanUseInSubmitNow() const { … }
MaybeError ExternalTextureBase::ValidateRefresh() { … }
MaybeError ExternalTextureBase::ValidateExpire() { … }
void ExternalTextureBase::APIRefresh() { … }
void ExternalTextureBase::APIExpire() { … }
void ExternalTextureBase::APIDestroy() { … }
void ExternalTextureBase::DestroyImpl() { … }
Ref<ExternalTextureBase> ExternalTextureBase::MakeError(DeviceBase* device, const char* label) { … }
BufferBase* ExternalTextureBase::GetParamsBuffer() const { … }
ObjectType ExternalTextureBase::GetType() const { … }
const Extent2D& ExternalTextureBase::GetVisibleSize() const { … }
const Origin2D& ExternalTextureBase::GetVisibleOrigin() const { … }
}