mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 06:39:46 -06:00
D3D: also uses VideoCommon constant buffer handling
As now both backends uses the VideoCommon one, the old setting API was removed.
This commit is contained in:
@ -355,12 +355,6 @@ void PixelShaderManager::SetConstants(u32 components)
|
||||
nMaterialsChanged = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if(dirty && g_ActiveConfig.backend_info.APIType != API_OPENGL)
|
||||
{
|
||||
g_renderer->SetMultiPSConstant4fv(0, sizeof(constants)/16, (float*) &constants);
|
||||
dirty = false;
|
||||
}
|
||||
}
|
||||
|
||||
void PixelShaderManager::SetPSTextureDims(int texid)
|
||||
|
@ -115,10 +115,6 @@ public:
|
||||
static unsigned int GetPrevPixelFormat() { return prev_efb_format; }
|
||||
static void StorePixelFormat(unsigned int new_format) { prev_efb_format = new_format; }
|
||||
|
||||
// TODO: doesn't belong here
|
||||
virtual void SetMultiPSConstant4fv(unsigned int const_number, unsigned int count, const float *f) = 0;
|
||||
virtual void SetMultiVSConstant4fv(unsigned int const_number, unsigned int count, const float *f) = 0;
|
||||
|
||||
protected:
|
||||
|
||||
static void CalculateTargetScale(int x, int y, int &scaledX, int &scaledY);
|
||||
|
@ -517,12 +517,6 @@ void VertexShaderManager::SetConstants()
|
||||
SetMultiVSConstant4fv(C_PROJECTION, 4, correctedMtx.data);
|
||||
}
|
||||
}
|
||||
|
||||
if(dirty && g_ActiveConfig.backend_info.APIType != API_OPENGL)
|
||||
{
|
||||
dirty = false;
|
||||
g_renderer->SetMultiVSConstant4fv(0, sizeof(constants)/16, (float*) &constants);
|
||||
}
|
||||
}
|
||||
|
||||
void VertexShaderManager::InvalidateXFRange(int start, int end)
|
||||
|
Reference in New Issue
Block a user