// Copyright (c) Wojciech Figat. All rights reserved.
#pragma once
#include "Engine/Graphics/Textures/GPUSampler.h"
#include "GPUDeviceWebGPU.h"
#if GRAPHICS_API_WEBGPU
///
/// Sampler object for Web GPU backend.
///
class GPUSamplerWebGPU : public GPUResourceBase
{
public:
GPUSamplerWebGPU(GPUDeviceWebGPU* device)
: GPUResourceBase(device, StringView::Empty)
{
}
public:
WGPUSampler Sampler = nullptr;
protected:
// [GPUSampler]
bool OnInit() override;
void OnReleaseGPU() override;
};
#endif