mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
OGL: Add some basic state tracking
We would want to improve the granularity here in the future, but for now, this should avoid any performance loss from switching to the VideoCommon shader cache.
This commit is contained in:
@ -154,12 +154,15 @@ private:
|
||||
void CheckForSurfaceChange();
|
||||
void CheckForSurfaceResize();
|
||||
|
||||
void ApplyBlendingState(const BlendingState& state);
|
||||
void ApplyRasterizationState(const RasterizationState& state);
|
||||
void ApplyDepthState(const DepthState& state);
|
||||
void ApplyBlendingState(const BlendingState state, bool force = false);
|
||||
void ApplyRasterizationState(const RasterizationState state, bool force = false);
|
||||
void ApplyDepthState(const DepthState state, bool force = false);
|
||||
void UploadUtilityUniforms(const void* uniforms, u32 uniforms_size);
|
||||
|
||||
std::array<const AbstractTexture*, 8> m_bound_textures{};
|
||||
const OGLPipeline* m_graphics_pipeline = nullptr;
|
||||
RasterizationState m_current_rasterization_state = {};
|
||||
DepthState m_current_depth_state = {};
|
||||
BlendingState m_current_blend_state = {};
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user