Split builtin depth-style concrete passes

This commit is contained in:
2026-04-05 19:27:19 +08:00
parent 1de8091b77
commit 8904c3f5c6
4 changed files with 57 additions and 37 deletions

View File

@@ -0,0 +1,25 @@
#include "Rendering/Passes/BuiltinDepthOnlyPass.h"
#include "Resources/BuiltinResources.h"
namespace XCEngine {
namespace Rendering {
namespace Passes {
BuiltinDepthOnlyPass::BuiltinDepthOnlyPass()
: BuiltinDepthStylePassBase(
BuiltinMaterialPass::DepthOnly,
Resources::GetBuiltinDepthOnlyShaderPath()) {
}
RHI::InputLayoutDesc BuiltinDepthOnlyPass::BuildInputLayout() {
return BuildCommonInputLayout();
}
const char* BuiltinDepthOnlyPass::GetName() const {
return "BuiltinDepthOnlyPass";
}
} // namespace Passes
} // namespace Rendering
} // namespace XCEngine