resources: move shader loader internals into detail

This commit is contained in:
2026-04-07 12:19:17 +08:00
parent fb8ef25ff3
commit 247571b815
12 changed files with 21 additions and 21 deletions

View File

@@ -388,16 +388,16 @@ add_library(XCEngine STATIC
${CMAKE_CURRENT_SOURCE_DIR}/src/Resources/Shader/Shader.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/Resources/Shader/ShaderLoader.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/Resources/Shader/ShaderIR.h
${CMAKE_CURRENT_SOURCE_DIR}/src/Resources/Shader/ShaderFileUtils.h
${CMAKE_CURRENT_SOURCE_DIR}/src/Resources/Shader/ShaderFileUtils.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/Resources/Shader/ShaderRuntimeBuildUtils.h
${CMAKE_CURRENT_SOURCE_DIR}/src/Resources/Shader/ShaderRuntimeBuildUtils.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/Resources/Shader/ShaderAuthoringLoader.h
${CMAKE_CURRENT_SOURCE_DIR}/src/Resources/Shader/ShaderAuthoringLoader.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/Resources/Shader/ShaderManifestLoader.h
${CMAKE_CURRENT_SOURCE_DIR}/src/Resources/Shader/ShaderManifestLoader.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/Resources/Shader/ShaderArtifactLoader.h
${CMAKE_CURRENT_SOURCE_DIR}/src/Resources/Shader/ShaderArtifactLoader.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/Resources/Shader/Detail/ShaderFileUtils.h
${CMAKE_CURRENT_SOURCE_DIR}/src/Resources/Shader/Detail/ShaderFileUtils.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/Resources/Shader/Detail/ShaderRuntimeBuildUtils.h
${CMAKE_CURRENT_SOURCE_DIR}/src/Resources/Shader/Detail/ShaderRuntimeBuildUtils.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/Resources/Shader/Detail/ShaderAuthoringLoader.h
${CMAKE_CURRENT_SOURCE_DIR}/src/Resources/Shader/Detail/ShaderAuthoringLoader.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/Resources/Shader/Detail/ShaderManifestLoader.h
${CMAKE_CURRENT_SOURCE_DIR}/src/Resources/Shader/Detail/ShaderManifestLoader.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/Resources/Shader/Detail/ShaderArtifactLoader.h
${CMAKE_CURRENT_SOURCE_DIR}/src/Resources/Shader/Detail/ShaderArtifactLoader.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/Resources/Shader/ShaderSourceUtils.h
${CMAKE_CURRENT_SOURCE_DIR}/src/Resources/Shader/ShaderSourceUtils.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/Resources/Shader/ShaderAuthoringParser.h

View File

@@ -1,8 +1,8 @@
#include "ShaderAuthoringLoader.h"
#include "ShaderAuthoringParser.h"
#include "../ShaderAuthoringParser.h"
#include "ShaderRuntimeBuildUtils.h"
#include "ShaderSourceUtils.h"
#include "../ShaderSourceUtils.h"
#include <unordered_set>

View File

@@ -2,7 +2,7 @@
#include "ShaderFileUtils.h"
#include "ShaderRuntimeBuildUtils.h"
#include "ShaderSourceUtils.h"
#include "../ShaderSourceUtils.h"
#include <cctype>
#include <filesystem>

View File

@@ -1,8 +1,8 @@
#include "ShaderRuntimeBuildUtils.h"
#include "ShaderAuthoringParser.h"
#include "../ShaderAuthoringParser.h"
#include "ShaderFileUtils.h"
#include "ShaderSourceUtils.h"
#include "../ShaderSourceUtils.h"
#include <memory>

View File

@@ -1,6 +1,6 @@
#pragma once
#include "ShaderIR.h"
#include "../ShaderIR.h"
#include <XCEngine/Core/IO/IResourceLoader.h>
#include <XCEngine/Resources/Shader/Shader.h>

View File

@@ -1,11 +1,11 @@
#include <XCEngine/Resources/Shader/ShaderLoader.h>
#include "ShaderArtifactLoader.h"
#include "ShaderAuthoringLoader.h"
#include "Detail/ShaderArtifactLoader.h"
#include "Detail/ShaderAuthoringLoader.h"
#include "ShaderAuthoringParser.h"
#include "ShaderFileUtils.h"
#include "ShaderManifestLoader.h"
#include "ShaderRuntimeBuildUtils.h"
#include "Detail/ShaderFileUtils.h"
#include "Detail/ShaderManifestLoader.h"
#include "Detail/ShaderRuntimeBuildUtils.h"
#include <XCEngine/Core/Asset/ResourceTypes.h>
#include <XCEngine/Resources/BuiltinResources.h>