VideoCommon: update custom pipeline action to support a variety of texture samplers (2D, 2D array, and cube maps)

This commit is contained in:
iwubcode
2023-12-17 23:37:23 -06:00
parent acd76918d7
commit ae758f489a
4 changed files with 220 additions and 161 deletions

View File

@ -11,6 +11,7 @@
#include "Common/CommonTypes.h"
#include "Common/Matrix.h"
#include "Common/SmallVector.h"
#include "VideoCommon/Assets/TextureAsset.h"
#include "VideoCommon/PixelShaderGen.h"
@ -18,7 +19,7 @@ namespace GraphicsModActionData
{
struct DrawStarted
{
u32 texture_unit;
const Common::SmallVector<u32, 8>& texture_units;
bool* skip;
std::optional<CustomPixelShader>* custom_pixel_shader;
std::span<u8>* material_uniform_buffer;