This commit is contained in:
2024-10-21 19:45:33 +02:00
parent 0304834008
commit 7a3e5f37fa
22 changed files with 121 additions and 68 deletions

View File

@@ -7,7 +7,7 @@
namespace mlx
{
void GraphicPipeline::Init(const GraphicPipelineDescriptor& descriptor, std::string_view debug_name)
void GraphicPipeline::Init(const GraphicPipelineDescriptor& descriptor, [[maybe_unused]] std::string_view debug_name)
{
MLX_PROFILE_FUNCTION();
if(!descriptor.vertex_shader || !descriptor.fragment_shader)

View File

@@ -14,7 +14,7 @@ namespace mlx
Vec4f position;
};
void Render2DPass::Init(Renderer& renderer)
void Render2DPass::Init()
{
MLX_PROFILE_FUNCTION();

View File

@@ -7,7 +7,7 @@
namespace mlx
{
void FinalPass::Init(Renderer& renderer)
void FinalPass::Init()
{
MLX_PROFILE_FUNCTION();
ShaderLayout vertex_shader_layout(

View File

@@ -7,8 +7,8 @@ namespace mlx
{
void RenderPasses::Init(Renderer& renderer)
{
m_2Dpass.Init(renderer);
m_final.Init(renderer);
m_2Dpass.Init();
m_final.Init();
func::function<void(const EventBase&)> functor = [this, renderer](const EventBase& event)
{
if(event.What() == Event::ResizeEventCode)