rename files

This commit is contained in:
Samuliak 2024-07-03 15:26:36 +02:00
parent a08d61ad46
commit 9527c2acdb
7 changed files with 12 additions and 7 deletions

View file

@ -403,12 +403,18 @@ endif()
if(ENABLE_METAL AND APPLE)
set(RENDERER_MTL_INCLUDE_FILES include/renderer_mtl/renderer_mtl.hpp
include/renderer_mtl/mtl_depth_stencil_cache.hpp
include/renderer_mtl/mtl_pipeline_cache.hpp
include/renderer_mtl/mtl_render_target.hpp
include/renderer_mtl/mtl_texture.hpp
include/renderer_mtl/mtl_vertex_buffer_cache.hpp
include/renderer_mtl/pica_to_mtl.hpp
)
set(RENDERER_MTL_SOURCE_FILES src/core/renderer_mtl/metal_cpp_impl.cpp
src/core/renderer_mtl/renderer_mtl.cpp
src/core/renderer_mtl/texture.cpp
src/core/renderer_mtl/etc1.cpp
src/core/renderer_mtl/mtl_texture.cpp
src/core/renderer_mtl/mtl_etc1.cpp
src/host_shaders/metal_shaders.metal
)

View file

@ -2,8 +2,8 @@
#include <QuartzCore/QuartzCore.hpp>
#include "renderer.hpp"
#include "texture.hpp"
#include "render_target.hpp"
#include "mtl_texture.hpp"
#include "mtl_render_target.hpp"
#include "mtl_pipeline_cache.hpp"
#include "mtl_depth_stencil_cache.hpp"
#include "mtl_vertex_buffer_cache.hpp"

View file

@ -1,7 +1,7 @@
#include <algorithm>
#include "colour.hpp"
#include "renderer_mtl/renderer_mtl.hpp"
#include "renderer_mtl/texture.hpp"
#include "renderer_mtl/mtl_texture.hpp"
using namespace Helpers;

View file

@ -1,4 +1,4 @@
#include "renderer_mtl/texture.hpp"
#include "renderer_mtl/mtl_texture.hpp"
#include "colour.hpp"
#include <array>

View file

@ -404,7 +404,6 @@ void RendererMTL::drawVertices(PICA::PrimType primType, std::span<const PICA::Ve
renderCommandEncoder->setVertexBytes(&regs[0x48], 0x200 - 0x48, 0);
renderCommandEncoder->setFragmentBytes(&regs[0x48], 0x200 - 0x48, 0);
// TODO: respect primitive type
renderCommandEncoder->drawPrimitives(toMTLPrimitiveType(primType), NS::UInteger(0), NS::UInteger(vertices.size()));
}