File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,17 +24,17 @@ struct BufferCreateDesc {
2424};
2525
2626class Buffer {
27- GPUAPI Kind ;
27+ GPUAPI API ;
2828
2929public:
3030 virtual ~Buffer ();
3131 Buffer (const Buffer &) = delete ;
3232 Buffer &operator =(const Buffer &) = delete ;
3333
34- GPUAPI getKind () const { return Kind ; }
34+ GPUAPI getAPI () const { return API ; }
3535
3636protected:
37- explicit Buffer (GPUAPI Kind ) : Kind(Kind ) {}
37+ explicit Buffer (GPUAPI API ) : API(API ) {}
3838};
3939
4040} // namespace offloadtest
Original file line number Diff line number Diff line change @@ -142,17 +142,17 @@ inline llvm::Error validateTextureCreateDesc(const TextureCreateDesc &Desc) {
142142}
143143
144144class Texture {
145- GPUAPI Kind ;
145+ GPUAPI API ;
146146
147147public:
148148 virtual ~Texture ();
149149 Texture (const Texture &) = delete ;
150150 Texture &operator =(const Texture &) = delete ;
151151
152- GPUAPI getKind () const { return Kind ; }
152+ GPUAPI getAPI () const { return API ; }
153153
154154protected:
155- explicit Texture (GPUAPI Kind ) : Kind(Kind ) {}
155+ explicit Texture (GPUAPI API ) : API(API ) {}
156156};
157157
158158} // namespace offloadtest
Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ namespace {
286286class DXBuffer : public offloadtest ::Buffer {
287287public:
288288 static bool classof (const offloadtest::Buffer *B) {
289- return B->getKind () == GPUAPI::DirectX;
289+ return B->getAPI () == GPUAPI::DirectX;
290290 }
291291
292292 ComPtr<ID3D12Resource> Buffer;
@@ -303,7 +303,7 @@ class DXBuffer : public offloadtest::Buffer {
303303class DXTexture : public offloadtest ::Texture {
304304public:
305305 static bool classof (const offloadtest::Texture *T) {
306- return T->getKind () == GPUAPI::DirectX;
306+ return T->getAPI () == GPUAPI::DirectX;
307307 }
308308
309309 ComPtr<ID3D12Resource> Resource;
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ class MTLFence : public offloadtest::Fence {
119119class MTLBuffer : public offloadtest ::Buffer {
120120public:
121121 static bool classof (const offloadtest::Buffer *B) {
122- return B->getKind () == GPUAPI::Metal;
122+ return B->getAPI () == GPUAPI::Metal;
123123 }
124124
125125 MTL::Buffer *Buf;
@@ -141,7 +141,7 @@ class MTLBuffer : public offloadtest::Buffer {
141141class MTLTexture : public offloadtest ::Texture {
142142public:
143143 static bool classof (const offloadtest::Texture *T) {
144- return T->getKind () == GPUAPI::Metal;
144+ return T->getAPI () == GPUAPI::Metal;
145145 }
146146
147147 MTL::Texture *Tex;
Original file line number Diff line number Diff line change @@ -375,7 +375,7 @@ namespace {
375375class VulkanBuffer : public offloadtest ::Buffer {
376376public:
377377 static bool classof (const offloadtest::Buffer *B) {
378- return B->getKind () == GPUAPI::Vulkan;
378+ return B->getAPI () == GPUAPI::Vulkan;
379379 }
380380
381381 VkDevice Dev; // Needed for clean-up
@@ -399,7 +399,7 @@ class VulkanBuffer : public offloadtest::Buffer {
399399class VulkanTexture : public offloadtest ::Texture {
400400public:
401401 static bool classof (const offloadtest::Texture *T) {
402- return T->getKind () == GPUAPI::Vulkan;
402+ return T->getAPI () == GPUAPI::Vulkan;
403403 }
404404
405405 VkDevice Dev;
You can’t perform that action at this time.
0 commit comments