Skip to content

Commit 5957622

Browse files
committed
Revert "constructor implementation in cpp file"
This reverts commit cd9a9fa.
1 parent cd9a9fa commit 5957622

3 files changed

Lines changed: 2 additions & 6 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);
37+
explicit Buffer(GPUAPI API) : API(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);
155+
explicit Texture(GPUAPI API) : API(API) {}
156156
};
157157

158158
} // namespace offloadtest

lib/API/Device.cpp

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

2222
using namespace offloadtest;
2323

24-
Buffer::Buffer(GPUAPI API) : API(API) {}
25-
2624
Buffer::~Buffer() {}
2725

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

3230
Queue::~Queue() {}
3331

34-
Texture::Texture(GPUAPI API) : API(API) {}
35-
3632
Texture::~Texture() {}
3733

3834
Device::~Device() {}

0 commit comments

Comments
 (0)