mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
feat(gx): use caps-defined shader profiles
This commit is contained in:
parent
92ba4b66ae
commit
73859890b1
7 changed files with 15 additions and 21 deletions
|
|
@ -24,11 +24,11 @@ void CWorld::Initialize() {
|
|||
|
||||
// TODO
|
||||
|
||||
if (GxCaps().m_pixelShaderTarget > GxShPS_none) {
|
||||
if (GxCaps().m_shaderTargets[GxSh_Pixel] > GxShPS_none) {
|
||||
CWorld::s_enables |= Enables::Enable_PixelShader;
|
||||
}
|
||||
|
||||
if (GxCaps().m_vertexShaderTarget > GxShVS_none) {
|
||||
if (GxCaps().m_shaderTargets[GxSh_Vertex] > GxShVS_none) {
|
||||
CWorld::s_enables2 |= Enables2::Enable_VertexShader;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue