Metal is impossible to debug, thanks apple

This commit is contained in:
Dynamitos
2024-04-14 11:35:37 +02:00
parent f5eb12a5de
commit dc2f0eac30
14 changed files with 325 additions and 138 deletions
+5 -1
View File
@@ -1,6 +1,6 @@
#pragma once
#include "Graphics/Command.h"
#include "Metal/MTLCommandBuffer.hpp"
#include "Buffer.h"
#include "RenderPass.h"
#include "Resources.h"
@@ -10,6 +10,8 @@ DECLARE_REF(CommandQueue)
DECLARE_REF(ComputeCommand)
DECLARE_REF(RenderCommand)
DECLARE_REF(Graphics)
DECLARE_REF(IndexBuffer)
DECLARE_REF(GraphicsPipeline)
class Command
{
public:
@@ -56,6 +58,8 @@ public:
virtual void drawMesh(uint32 groupX, uint32 groupY, uint32 groupZ) override;
private:
MTL::RenderCommandEncoder* encoder;
PIndexBuffer boundIndexBuffer;
PGraphicsPipeline boundPipeline;
};
DEFINE_REF(RenderCommand)
class ComputeCommand : public Gfx::ComputeCommand