mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
feat(gx): remove placeholder gx caps (#45)
This commit is contained in:
parent
0e0b57fce9
commit
907c3faf8f
14 changed files with 57 additions and 61 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue