fix(RHI): 添加 OpenGL 源文件到 CMakeLists 并修复编译错误
- 添加 OpenGL RHI 所有源文件到 engine/CMakeLists.txt - 修复 OpenGLPipelineState 结构体重定义问题 - 修复 BufferDesc/TextureDesc/ShaderCompileDesc API 不匹配 - 添加 OpenGLShader 缺少的基类纯虚函数实现 - 修复 HashMap 迭代器支持和 ResourceManager API 调用
This commit is contained in:
@@ -6,7 +6,7 @@ using namespace XCEngine::RHI;
|
||||
TEST_F(OpenGLTestFixture, PipelineState_SetDepthStencilState) {
|
||||
OpenGLPipelineState pipeline;
|
||||
|
||||
DepthStencilState state;
|
||||
OpenGLDepthStencilState state;
|
||||
state.depthTestEnable = true;
|
||||
state.depthWriteEnable = true;
|
||||
state.depthFunc = ComparisonFunc::Less;
|
||||
@@ -26,7 +26,7 @@ TEST_F(OpenGLTestFixture, PipelineState_SetDepthStencilState) {
|
||||
TEST_F(OpenGLTestFixture, PipelineState_SetBlendState) {
|
||||
OpenGLPipelineState pipeline;
|
||||
|
||||
BlendState state;
|
||||
OpenGLBlendState state;
|
||||
state.blendEnable = true;
|
||||
state.srcBlend = BlendFactor::SrcAlpha;
|
||||
state.dstBlend = BlendFactor::InvSrcAlpha;
|
||||
|
||||
Reference in New Issue
Block a user