blob: 421039dc679786f85b07103a3924e85c0046fc41 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_WEBGPU_GPU_SAMPLER_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_WEBGPU_GPU_SAMPLER_H_
#include "third_party/blink/renderer/modules/webgpu/dawn_object.h"
namespace blink {
class GPUSamplerDescriptor;
class GPUSampler : public DawnObject<WGPUSampler> {
DEFINE_WRAPPERTYPEINFO();
public:
static GPUSampler* Create(GPUDevice* device,
const GPUSamplerDescriptor* webgpu_desc);
explicit GPUSampler(GPUDevice* device, WGPUSampler sampler);
private:
DISALLOW_COPY_AND_ASSIGN(GPUSampler);
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_MODULES_WEBGPU_GPU_SAMPLER_H_