VideoCommon: add custom pixel shader constants as a buffer of data to be passed to all backends

This commit is contained in:
iwubcode
2023-09-19 19:27:12 -05:00
parent c86a0a04dd
commit 92accc3ef7
2 changed files with 15 additions and 1 deletions

View File

@ -3,6 +3,8 @@
#pragma once
#include <span>
#include "Common/CommonTypes.h"
#include "VideoCommon/ConstantManager.h"
@ -52,6 +54,10 @@ public:
PixelShaderConstants constants{};
bool dirty = false;
// Constants for custom shaders
std::span<u8> custom_constants;
bool custom_constants_dirty = false;
private:
bool m_fog_range_adjusted_changed = false;
bool m_viewport_changed = false;