mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-16 21:27:49 +00:00
Implement convert legacy to generic
This commit is contained in:
parent
25324b011f
commit
dbfa89c40b
6 changed files with 108 additions and 1 deletions
|
@ -50,6 +50,7 @@ namespace {
|
|||
using Shader::Backend::SPIRV::EmitSPIRV;
|
||||
using Shader::Maxwell::MergeDualVertexPrograms;
|
||||
using Shader::Maxwell::TranslateProgram;
|
||||
using Shader::Maxwell::ConvertLegacyToGeneric;
|
||||
using VideoCommon::ComputeEnvironment;
|
||||
using VideoCommon::FileEnvironment;
|
||||
using VideoCommon::GenericEnvironment;
|
||||
|
@ -543,6 +544,7 @@ std::unique_ptr<GraphicsPipeline> PipelineCache::CreateGraphicsPipeline(
|
|||
infos[stage_index] = &program.info;
|
||||
|
||||
const auto runtime_info{MakeRuntimeInfo(programs, key, program, previous_stage)};
|
||||
ConvertLegacyToGeneric(program, runtime_info);
|
||||
const std::vector<u32> code{EmitSPIRV(profile, runtime_info, program, binding)};
|
||||
device.SaveShader(code);
|
||||
modules[stage_index] = BuildShader(device, code);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue