#include "third_party/blink/renderer/modules/webgpu/gpu_sampler.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_sampler_descriptor.h"
#include "third_party/blink/renderer/modules/webgpu/dawn_conversions.h"
#include "third_party/blink/renderer/modules/webgpu/gpu_device.h"
namespace blink {
namespace {
wgpu::SamplerDescriptor AsDawnType(const GPUSamplerDescriptor* webgpu_desc,
std::string* label) { … }
}
GPUSampler* GPUSampler::Create(GPUDevice* device,
const GPUSamplerDescriptor* webgpu_desc) { … }
GPUSampler::GPUSampler(GPUDevice* device,
wgpu::Sampler sampler,
const String& label)
: … { … }
}