mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 13:25:45 +00:00
shader: Add partial rasterizer integration
This commit is contained in:
parent
832f1169d6
commit
33090a74dd
54 changed files with 1929 additions and 568 deletions
|
@ -3,6 +3,8 @@
|
|||
#include <array>
|
||||
|
||||
#include "common/common_types.h"
|
||||
#include "shader_recompiler/stage.h"
|
||||
#include "shader_recompiler/program_header.h"
|
||||
|
||||
namespace Shader {
|
||||
|
||||
|
@ -15,6 +17,18 @@ public:
|
|||
[[nodiscard]] virtual u32 TextureBoundBuffer() = 0;
|
||||
|
||||
[[nodiscard]] virtual std::array<u32, 3> WorkgroupSize() = 0;
|
||||
|
||||
[[nodiscard]] const ProgramHeader& SPH() const noexcept {
|
||||
return sph;
|
||||
}
|
||||
|
||||
[[nodiscard]] Stage ShaderStage() const noexcept {
|
||||
return stage;
|
||||
}
|
||||
|
||||
protected:
|
||||
ProgramHeader sph{};
|
||||
Stage stage{};
|
||||
};
|
||||
|
||||
} // namespace Shader
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue