feat(gx): remove placeholder gx caps (#45)

This commit is contained in:
fallenoak 2023-03-09 22:29:33 -06:00 committed by GitHub
parent 0e0b57fce9
commit 907c3faf8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 57 additions and 61 deletions

View file

@ -206,7 +206,7 @@ int32_t CGxDeviceGLL::DeviceCreate(long (*windowProc)(void*, uint32_t, uint32_t,
GLDevice::SetOption(GLDevice::eUseHybridShader, true);
this->ISetCaps();
this->ISetCaps(format);
// TODO
// CGxDevice::Log(this, this + 604);
@ -662,12 +662,36 @@ void CGxDeviceGLL::ISceneBegin() {
// TODO GameMovie::ReadFrame(this);
}
void CGxDeviceGLL::ISetCaps() {
// TODO
void CGxDeviceGLL::ISetCaps(const CGxFormat& format) {
// TODO fill in proper implementation
this->m_caps.m_pixelCenterOnEdge = 1;
this->m_caps.m_texelCenterOnEdge = 1;
this->m_caps.m_colorFormat = GxCF_rgba;
this->m_caps.m_generateMipMaps = 1;
this->m_caps.m_texFmtDxt1 = 1;
this->m_caps.m_texFmtDxt3 = 1;
this->m_caps.m_texFmtDxt5 = 1;
this->m_caps.m_vertexShaderTarget = GxShVS_arbvp1;
this->m_caps.m_pixelShaderTarget = GxShPS_arbfp1;
this->m_caps.m_texFilterAnisotropic = 1;
this->m_caps.m_maxTexAnisotropy = 16;
this->m_caps.m_texTarget[GxTex_2d] = 1;
this->m_caps.m_texTarget[GxTex_CubeMap] = 1;
this->m_caps.m_texTarget[GxTex_Rectangle] = 1;
this->m_caps.m_texTarget[GxTex_NonPow2] = 1;
this->m_caps.m_texMaxSize[GxTex_2d] = 4096;
this->m_caps.m_texMaxSize[GxTex_CubeMap] = 4096;
this->m_caps.m_texMaxSize[GxTex_Rectangle] = 4096;
this->m_caps.m_texMaxSize[GxTex_NonPow2] = 4096;
// TODO
}