Skip to content

Commit d1fa558

Browse files
authored
Fix warning with Sampler Resource Kind on Metal (#676)
This PR #650 Added a new ResourceKind::Sampler that we don't have any handling for on Metal. This change fixes the warning but does not add an implementation.
1 parent 1c53a59 commit d1fa558

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/API/MTL/MTLDevice.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,8 @@ class MTLDevice : public offloadtest::Device {
289289
Desc = MTL::TextureDescriptor::texture2DDescriptor(Format, Width,
290290
Height, false);
291291
break;
292+
case ResourceKind::Sampler:
293+
llvm_unreachable("Not implemented yet.");
292294
case ResourceKind::StructuredBuffer:
293295
case ResourceKind::RWStructuredBuffer:
294296
case ResourceKind::ByteAddressBuffer:

0 commit comments

Comments
 (0)