forked from llvm/offload-test-suite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuffer.h
More file actions
43 lines (33 loc) · 983 Bytes
/
Buffer.h
File metadata and controls
43 lines (33 loc) · 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//===- Buffer.h - Offload API Buffer --------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
//
//===----------------------------------------------------------------------===//
#ifndef OFFLOADTEST_API_BUFFER_H
#define OFFLOADTEST_API_BUFFER_H
#include "API/Resources.h"
namespace offloadtest {
enum class BufferUsage {
Storage,
VertexBuffer,
};
struct BufferCreateDesc {
MemoryLocation Location;
BufferUsage Usage;
};
class Buffer {
public:
virtual ~Buffer();
virtual size_t getSizeInBytes() const = 0;
Buffer(const Buffer &) = delete;
Buffer &operator=(const Buffer &) = delete;
protected:
Buffer() = default;
};
} // namespace offloadtest
#endif // OFFLOADTEST_API_BUFFER_H