#include "dawn/native/SharedTextureMemory.h"
#include <utility>
#include "dawn/common/WeakRef.h"
#include "dawn/native/ChainUtils.h"
#include "dawn/native/Device.h"
#include "dawn/native/Queue.h"
#include "dawn/native/SharedFence.h"
#include "dawn/native/dawn_platform.h"
namespace dawn::native {
namespace {
class ErrorSharedTextureMemory : public SharedTextureMemoryBase { … };
}
Ref<SharedTextureMemoryBase> SharedTextureMemoryBase::MakeError(
DeviceBase* device,
const SharedTextureMemoryDescriptor* descriptor) { … }
SharedTextureMemoryBase::SharedTextureMemoryBase(DeviceBase* device,
const SharedTextureMemoryDescriptor* descriptor,
ObjectBase::ErrorTag tag)
: … { … }
SharedTextureMemoryBase::SharedTextureMemoryBase(DeviceBase* device,
const char* label,
const SharedTextureMemoryProperties& properties)
: … { … }
ObjectType SharedTextureMemoryBase::GetType() const { … }
wgpu::Status SharedTextureMemoryBase::APIGetProperties(
SharedTextureMemoryProperties* properties) const { … }
MaybeError SharedTextureMemoryBase::GetProperties(SharedTextureMemoryProperties* properties) const { … }
TextureBase* SharedTextureMemoryBase::APICreateTexture(const TextureDescriptor* descriptor) { … }
ResultOrError<Ref<TextureBase>> SharedTextureMemoryBase::CreateTexture(
const TextureDescriptor* rawDescriptor) { … }
Ref<SharedResourceMemoryContents> SharedTextureMemoryBase::CreateContents() { … }
SharedTextureMemoryContents* SharedTextureMemoryBase::GetContents() const { … }
void APISharedTextureMemoryEndAccessStateFreeMembers(WGPUSharedTextureMemoryEndAccessState cState) { … }
SharedTextureMemoryContents::SharedTextureMemoryContents(
WeakRef<SharedTextureMemoryBase> sharedTextureMemory)
: … { … }
SampleTypeBit SharedTextureMemoryContents::GetExternalFormatSupportedSampleTypes() const { … }
void SharedTextureMemoryContents::SetExternalFormatSupportedSampleTypes(
SampleTypeBit supportedSampleType) { … }
}