- 添加RHI接口定义(IRHIDevice, ICommandList, IResource等) - 实现D3D12Device, D3D12CommandList, D3D12PipelineState等 - 修复RootSignature参数数量(3->4)与HelloEarth一致 - 修复DSV格式设置(Unknown->D24_UNorm_S8_UInt) - 添加Geometry Shader编译 - 创建XCEngineDemo项目验证RHI功能
21 lines
487 B
C++
21 lines
487 B
C++
#pragma once
|
|
|
|
#include <RHI\RHIDefines.h>
|
|
#include <RHI\IRHIDevice.h>
|
|
|
|
namespace XCEngine {
|
|
namespace RHI {
|
|
|
|
class IShader {
|
|
public:
|
|
virtual ~IShader() = default;
|
|
virtual const ShaderBytecode& GetBytecode() const = 0;
|
|
virtual const char* GetEntryPoint() const = 0;
|
|
virtual const char* GetTarget() const = 0;
|
|
};
|
|
|
|
bool CompileShader(const char* filePath, const char* entryPoint, const char* target, ShaderBytecode& outBytecode);
|
|
|
|
} // namespace RHI
|
|
} // namespace XCEngine
|