fix(RHI): 修复 OpenGL 测试接口不匹配问题
- 修复 RHIDeviceInfo 缺少 majorVersion/minorVersion - 修复 OpenGLTexture 使用 GetTextureType 替代 GetType - 修复 OpenGLSampler 使用 OpenGLSamplerDesc - 修复 BlendFactor::OneMinusSrcAlpha -> InvSrcAlpha - 修复 OpenGLRenderTargetViewDesc/OpenGLDepthStencilViewDesc 重定义问题 - 恢复 OpenGL 测试文件到 CMakeLists
This commit is contained in:
@@ -30,7 +30,7 @@ OpenGLRenderTargetView::~OpenGLRenderTargetView() {
|
||||
Shutdown();
|
||||
}
|
||||
|
||||
bool OpenGLRenderTargetView::Initialize(unsigned int texture, const RenderTargetViewDesc& desc) {
|
||||
bool OpenGLRenderTargetView::Initialize(unsigned int texture, const OpenGLRenderTargetViewDesc& desc) {
|
||||
m_texture = texture;
|
||||
m_mipLevel = desc.mipLevel;
|
||||
m_type = desc.type;
|
||||
@@ -69,7 +69,7 @@ bool OpenGLRenderTargetView::Initialize(unsigned int texture, const RenderTarget
|
||||
}
|
||||
|
||||
bool OpenGLRenderTargetView::Initialize(unsigned int texture, int mipLevel) {
|
||||
RenderTargetViewDesc desc;
|
||||
OpenGLRenderTargetViewDesc desc;
|
||||
desc.type = RenderTargetType::Texture2D;
|
||||
desc.mipLevel = mipLevel;
|
||||
return Initialize(texture, desc);
|
||||
|
||||
Reference in New Issue
Block a user