feat(gx): use caps-defined shader profiles

This commit is contained in:
fallenoak 2023-03-17 17:04:58 -05:00 committed by GitHub
parent 92ba4b66ae
commit 73859890b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 15 additions and 21 deletions

View file

@ -73,7 +73,7 @@ int32_t CM2Cache::Initialize(uint32_t flags) {
// TODO
if (flags & 0x8) {
if (GxCaps().m_vertexShaderTarget > GxShVS_none && GxCaps().m_pixelShaderTarget > GxShPS_none) {
if (GxCaps().m_shaderTargets[GxSh_Vertex] > GxShVS_none && GxCaps().m_shaderTargets[GxSh_Pixel] > GxShPS_none) {
this->m_flags |= 0x8;
}
}