2024-04-09 16:41:12 +02:00
|
|
|
#pragma once
|
|
|
|
|
#include "Graphics/Enums.h"
|
2024-04-14 11:35:37 +02:00
|
|
|
#include "Metal/MTLStageInputOutputDescriptor.hpp"
|
2024-04-10 08:43:56 +02:00
|
|
|
#include "Resources.h"
|
2024-04-09 16:41:12 +02:00
|
|
|
|
|
|
|
|
namespace Seele
|
|
|
|
|
{
|
|
|
|
|
namespace Metal
|
|
|
|
|
{
|
2024-04-17 14:33:06 +02:00
|
|
|
constexpr uint64 METAL_VERTEXBUFFER_OFFSET = 6;// something about metal vertex fetch
|
|
|
|
|
constexpr uint64 METAL_VERTEXATTRIBUTE_OFFSET = 11;
|
|
|
|
|
|
2024-04-09 16:41:12 +02:00
|
|
|
MTL::PixelFormat cast(Gfx::SeFormat format);
|
|
|
|
|
Gfx::SeFormat cast(MTL::PixelFormat format);
|
2024-04-10 08:43:56 +02:00
|
|
|
MTL::LoadAction cast(Gfx::SeAttachmentLoadOp loadOp);
|
|
|
|
|
Gfx::SeAttachmentLoadOp cast(MTL::LoadAction loadOp);
|
|
|
|
|
MTL::StoreAction cast(Gfx::SeAttachmentStoreOp storeOp);
|
|
|
|
|
Gfx::SeAttachmentStoreOp cast(MTL::StoreAction storeOp);
|
2024-04-13 23:51:38 +02:00
|
|
|
MTL::BindingAccess cast(Gfx::SeDescriptorAccessTypeFlags access);
|
|
|
|
|
Gfx::SeDescriptorAccessTypeFlags cast(MTL::BindingAccess access);
|
|
|
|
|
MTL::SamplerBorderColor cast(Gfx::SeBorderColor color);
|
|
|
|
|
Gfx::SeBorderColor cast(MTL::SamplerBorderColor color);
|
|
|
|
|
MTL::CompareFunction cast(Gfx::SeCompareOp compare);
|
|
|
|
|
Gfx::SeCompareOp cast(MTL::CompareFunction compare);
|
|
|
|
|
MTL::SamplerMinMagFilter cast(Gfx::SeFilter filter);
|
|
|
|
|
Gfx::SeFilter cast(MTL::SamplerMinMagFilter filter);
|
|
|
|
|
MTL::SamplerMipFilter cast(Gfx::SeSamplerMipmapMode filter);
|
|
|
|
|
Gfx::SeSamplerMipmapMode cast(MTL::SamplerMipFilter filter);
|
|
|
|
|
MTL::SamplerAddressMode cast(Gfx::SeSamplerAddressMode mode);
|
|
|
|
|
Gfx::SeSamplerAddressMode cast(MTL::SamplerAddressMode mode);
|
2024-04-14 11:35:37 +02:00
|
|
|
MTL::PrimitiveTopologyClass cast(Gfx::SePrimitiveTopology topology);
|
|
|
|
|
Gfx::SePrimitiveTopology cast(MTL::PrimitiveTopologyClass topology);
|
|
|
|
|
MTL::IndexType cast(Gfx::SeIndexType indexType);
|
|
|
|
|
Gfx::SeIndexType cast(MTL::IndexType indexType);
|
2024-04-09 16:41:12 +02:00
|
|
|
}
|
|
|
|
|
}
|