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

@ -444,7 +444,7 @@ void CGxDevice::IRsSync(int32_t force) {
}
void CGxDevice::IShaderLoad(CGxShader* shaders[], EGxShTarget target, const char* a4, const char* a5, int32_t permutations) {
int32_t profile = this->m_shaderProfiles[target];
int32_t profile = this->m_caps.m_shaderTargets[target];
if (!profile) {
return;