blob: aeb9b9f0fe7a6cb29f4604ccec416967c931e6ec [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_BIND_GROUP_LAYOUT_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_WEBGPU_GPU_BIND_GROUP_LAYOUT_H_
#include "third_party/blink/renderer/modules/webgpu/dawn_object.h"
namespace blink {
class ExceptionState;
class GPUBindGroupLayoutDescriptor;
class GPUBindGroupLayout : public DawnObject<WGPUBindGroupLayout> {
DEFINE_WRAPPERTYPEINFO();
public:
static GPUBindGroupLayout* Create(
GPUDevice* device,
const GPUBindGroupLayoutDescriptor* webgpu_desc,
ExceptionState& exception_state);
explicit GPUBindGroupLayout(GPUDevice* device,
WGPUBindGroupLayout bind_group_layout);
private:
DISALLOW_COPY_AND_ASSIGN(GPUBindGroupLayout);
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_MODULES_WEBGPU_GPU_BIND_GROUP_LAYOUT_H_