mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-25 16:22:47 +01:00
114 lines
3.2 KiB
C++
114 lines
3.2 KiB
C++
//-------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
//
|
|
// 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));
|
|
}
|