mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 05:38:50 +00:00
VideoCommon: add custom pixel shader constants as a buffer of data to be passed to all backends
This commit is contained in:
parent
c86a0a04dd
commit
92accc3ef7
2 changed files with 15 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue