From 1e4f8d6edfc09052e37ed6352e59bc3db87112d5 Mon Sep 17 00:00:00 2001 From: tfarley Date: Sun, 19 Apr 2015 15:20:01 -0400 Subject: [PATCH] Renamed vertex processor to loader --- src/video_core/CMakeLists.txt | 4 ++-- src/video_core/renderer_opengl/renderer_opengl.cpp | 4 ++-- src/video_core/{vertex_processor.cpp => vertex_loader.cpp} | 6 +++--- src/video_core/{vertex_processor.h => vertex_loader.h} | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) rename src/video_core/{vertex_processor.cpp => vertex_loader.cpp} (97%) rename src/video_core/{vertex_processor.h => vertex_loader.h} (70%) diff --git a/src/video_core/CMakeLists.txt b/src/video_core/CMakeLists.txt index 65298c4ab..d4e95cb7c 100644 --- a/src/video_core/CMakeLists.txt +++ b/src/video_core/CMakeLists.txt @@ -8,7 +8,7 @@ set(SRCS primitive_assembly.cpp rasterizer.cpp utils.cpp - vertex_processor.cpp + vertex_loader.cpp vertex_shader.cpp video_core.cpp ) @@ -29,7 +29,7 @@ set(HEADERS rasterizer.h renderer_base.h utils.h - vertex_processor.h + vertex_loader.h vertex_shader.h video_core.h ) diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index cc3dbdc29..02e450427 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp @@ -12,7 +12,7 @@ #include "common/profiler_reporting.h" #include "video_core/clipper.h" -#include "video_core/vertex_processor.h" +#include "video_core/vertex_loader.h" #include "video_core/video_core.h" #include "video_core/renderer_opengl/renderer_opengl.h" #include "video_core/renderer_opengl/gl_shader_util.h" @@ -347,5 +347,5 @@ void RendererOpenGL::ShutDown() { /// Draw a batch of triangles void RendererOpenGL::DrawBatch(bool is_indexed) { - Pica::VertexProcessor::ProcessBatch(is_indexed, Pica::Clipper::ProcessTriangle); + Pica::VertexLoader::LoadBatch(is_indexed, Pica::Clipper::ProcessTriangle); } diff --git a/src/video_core/vertex_processor.cpp b/src/video_core/vertex_loader.cpp similarity index 97% rename from src/video_core/vertex_processor.cpp rename to src/video_core/vertex_loader.cpp index f42bfce97..8a12a39fb 100644 --- a/src/video_core/vertex_processor.cpp +++ b/src/video_core/vertex_loader.cpp @@ -5,16 +5,16 @@ #include #include "pica.h" -#include "vertex_processor.h" +#include "vertex_loader.h" #include "vertex_shader.h" #include "debug_utils/debug_utils.h" namespace Pica { -namespace VertexProcessor { +namespace VertexLoader { /// Runs the current PICA vertex batch through the shader interpreter, and sends resulting primitives to triangle_handler -void ProcessBatch(bool is_indexed, PrimitiveAssembler::TriangleHandler triangle_handler) { +void LoadBatch(bool is_indexed, PrimitiveAssembler::TriangleHandler triangle_handler) { if (g_debug_context) g_debug_context->OnEvent(DebugContext::Event::IncomingPrimitiveBatch, nullptr); diff --git a/src/video_core/vertex_processor.h b/src/video_core/vertex_loader.h similarity index 70% rename from src/video_core/vertex_processor.h rename to src/video_core/vertex_loader.h index d7bf27770..46559b786 100644 --- a/src/video_core/vertex_processor.h +++ b/src/video_core/vertex_loader.h @@ -8,10 +8,10 @@ namespace Pica { -namespace VertexProcessor { +namespace VertexLoader { /// Runs the current PICA vertex batch through the shader interpreter, and sends resulting primitives to triangle_handler -void ProcessBatch(bool is_indexed, PrimitiveAssembler::TriangleHandler triangle_handler); +void LoadBatch(bool is_indexed, PrimitiveAssembler::TriangleHandler triangle_handler); } // namespace