mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-08 12:01:39 +12:00
metal: initial support
This commit is contained in:
parent
29d9ed7224
commit
f0547d1a71
167 changed files with 28839 additions and 1271 deletions
114
third_party/metal-cpp/Metal/MTLFunctionLog.hpp
vendored
Normal file
114
third_party/metal-cpp/Metal/MTLFunctionLog.hpp
vendored
Normal file
|
@ -0,0 +1,114 @@
|
|||
//-------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
//
|
||||
// Metal/MTLFunctionLog.hpp
|
||||
//
|
||||
// Copyright 2020-2023 Apple Inc.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
//-------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "MTLDefines.hpp"
|
||||
#include "MTLHeaderBridge.hpp"
|
||||
#include "MTLPrivate.hpp"
|
||||
|
||||
#include <Foundation/Foundation.hpp>
|
||||
|
||||
#include "MTLFunctionLog.hpp"
|
||||
|
||||
namespace MTL
|
||||
{
|
||||
_MTL_ENUM(NS::UInteger, FunctionLogType) {
|
||||
FunctionLogTypeValidation = 0,
|
||||
};
|
||||
|
||||
class LogContainer : public NS::Referencing<LogContainer, NS::FastEnumeration>
|
||||
{
|
||||
public:
|
||||
};
|
||||
|
||||
class FunctionLogDebugLocation : public NS::Referencing<FunctionLogDebugLocation>
|
||||
{
|
||||
public:
|
||||
NS::String* functionName() const;
|
||||
|
||||
NS::URL* URL() const;
|
||||
|
||||
NS::UInteger line() const;
|
||||
|
||||
NS::UInteger column() const;
|
||||
};
|
||||
|
||||
class FunctionLog : public NS::Referencing<FunctionLog>
|
||||
{
|
||||
public:
|
||||
MTL::FunctionLogType type() const;
|
||||
|
||||
NS::String* encoderLabel() const;
|
||||
|
||||
class Function* function() const;
|
||||
|
||||
class FunctionLogDebugLocation* debugLocation() const;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
// property: functionName
|
||||
_MTL_INLINE NS::String* MTL::FunctionLogDebugLocation::functionName() const
|
||||
{
|
||||
return Object::sendMessage<NS::String*>(this, _MTL_PRIVATE_SEL(functionName));
|
||||
}
|
||||
|
||||
// property: URL
|
||||
_MTL_INLINE NS::URL* MTL::FunctionLogDebugLocation::URL() const
|
||||
{
|
||||
return Object::sendMessage<NS::URL*>(this, _MTL_PRIVATE_SEL(URL));
|
||||
}
|
||||
|
||||
// property: line
|
||||
_MTL_INLINE NS::UInteger MTL::FunctionLogDebugLocation::line() const
|
||||
{
|
||||
return Object::sendMessage<NS::UInteger>(this, _MTL_PRIVATE_SEL(line));
|
||||
}
|
||||
|
||||
// property: column
|
||||
_MTL_INLINE NS::UInteger MTL::FunctionLogDebugLocation::column() const
|
||||
{
|
||||
return Object::sendMessage<NS::UInteger>(this, _MTL_PRIVATE_SEL(column));
|
||||
}
|
||||
|
||||
// property: type
|
||||
_MTL_INLINE MTL::FunctionLogType MTL::FunctionLog::type() const
|
||||
{
|
||||
return Object::sendMessage<MTL::FunctionLogType>(this, _MTL_PRIVATE_SEL(type));
|
||||
}
|
||||
|
||||
// property: encoderLabel
|
||||
_MTL_INLINE NS::String* MTL::FunctionLog::encoderLabel() const
|
||||
{
|
||||
return Object::sendMessage<NS::String*>(this, _MTL_PRIVATE_SEL(encoderLabel));
|
||||
}
|
||||
|
||||
// property: function
|
||||
_MTL_INLINE MTL::Function* MTL::FunctionLog::function() const
|
||||
{
|
||||
return Object::sendMessage<MTL::Function*>(this, _MTL_PRIVATE_SEL(function));
|
||||
}
|
||||
|
||||
// property: debugLocation
|
||||
_MTL_INLINE MTL::FunctionLogDebugLocation* MTL::FunctionLog::debugLocation() const
|
||||
{
|
||||
return Object::sendMessage<MTL::FunctionLogDebugLocation*>(this, _MTL_PRIVATE_SEL(debugLocation));
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue