mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
VideoCommon: add custom pixel shader constants as a buffer of data to be passed to all backends
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user