Skip to content

Commit 8742e67

Browse files
committed
constructor implementation in cpp file
1 parent 84d1e16 commit 8742e67

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

include/API/Buffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Buffer {
3434
GPUAPI getAPI() const { return API; }
3535

3636
protected:
37-
explicit Buffer(GPUAPI API) : API(API) {}
37+
explicit Buffer(GPUAPI API);
3838
};
3939

4040
} // namespace offloadtest

include/API/Texture.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class Texture {
152152
GPUAPI getAPI() const { return API; }
153153

154154
protected:
155-
explicit Texture(GPUAPI API) : API(API) {}
155+
explicit Texture(GPUAPI API);
156156
};
157157

158158
} // namespace offloadtest

lib/API/Device.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
using namespace offloadtest;
2323

24+
Buffer::Buffer(GPUAPI API) : API(API) {}
25+
2426
Buffer::~Buffer() {}
2527

2628
CommandBuffer::~CommandBuffer() {}
@@ -29,6 +31,8 @@ Fence::~Fence() {}
2931

3032
Queue::~Queue() {}
3133

34+
Texture::Texture(GPUAPI API) : API(API) {}
35+
3236
Texture::~Texture() {}
3337

3438
Device::~Device() {}

0 commit comments

Comments
 (0)