Move SPIR-V emission functions to their own header

This commit is contained in:
ReinUsesLisp
2021-05-03 20:53:00 -03:00
committed by ameerj
parent ee61ec2c39
commit bed090807a
26 changed files with 637 additions and 579 deletions

View File

@ -9,6 +9,7 @@
#include <sirit/sirit.h>
#include "shader_recompiler/backend/bindings.h"
#include "shader_recompiler/frontend/ir/program.h"
#include "shader_recompiler/profile.h"
#include "shader_recompiler/shader_info.h"
@ -17,14 +18,6 @@ namespace Shader::Backend::SPIRV {
using Sirit::Id;
struct Bindings {
u32 unified{};
u32 uniform_buffer{};
u32 storage_buffer{};
u32 texture{};
u32 image{};
};
class VectorTypes {
public:
void Define(Sirit::Module& sirit_ctx, Id base_type, std::string_view name);