mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
Fix compile warnings/errors in metal-cpp.h
renderdoc/driver/metal/official/metal-cpp.h:15062:121: error: 'const' type qualifier on return type has no effect [-Werror,-Wignored-qualifiers]
This commit is contained in:
committed by
Baldur Karlsson
parent
066870652c
commit
b633ec78f8
@@ -14574,7 +14574,7 @@ public:
|
||||
|
||||
class Buffer* newBuffer(const void* pointer, NS::UInteger length, MTL::ResourceOptions options);
|
||||
|
||||
class Buffer* newBuffer(const void* pointer, NS::UInteger length, MTL::ResourceOptions options, const void (^deallocator)(void*, NS::UInteger));
|
||||
class Buffer* newBuffer(const void* pointer, NS::UInteger length, MTL::ResourceOptions options, void (^deallocator)(void*, NS::UInteger));
|
||||
|
||||
class DepthStencilState* newDepthStencilState(const class DepthStencilDescriptor* descriptor);
|
||||
|
||||
@@ -15059,7 +15059,7 @@ _MTL_INLINE MTL::Buffer* MTL::Device::newBuffer(const void* pointer, NS::UIntege
|
||||
return Object::sendMessage<MTL::Buffer*>(this, _MTL_PRIVATE_SEL(newBufferWithBytes_length_options_), pointer, length, options);
|
||||
}
|
||||
|
||||
_MTL_INLINE MTL::Buffer* MTL::Device::newBuffer(const void* pointer, NS::UInteger length, MTL::ResourceOptions options, const void (^deallocator)(void*, NS::UInteger))
|
||||
_MTL_INLINE MTL::Buffer* MTL::Device::newBuffer(const void* pointer, NS::UInteger length, MTL::ResourceOptions options, void (^deallocator)(void*, NS::UInteger))
|
||||
{
|
||||
return Object::sendMessage<MTL::Buffer*>(this, _MTL_PRIVATE_SEL(newBufferWithBytesNoCopy_length_options_deallocator_), pointer, length, options, deallocator);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user