diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-03 01:36:25 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-13 22:33:05 +0100 |
commit | 7acebd7eb67032e51dd2985d847e40c216944f92 (patch) | |
tree | 659db2e0083a821853ac099da7385e1074504e29 /src/video_core/renderer_vulkan/vk_shader_decompiler.h | |
parent | gl_rasterizer: Implement transform feedback bindings (diff) | |
download | yuzu-7acebd7eb67032e51dd2985d847e40c216944f92.tar yuzu-7acebd7eb67032e51dd2985d847e40c216944f92.tar.gz yuzu-7acebd7eb67032e51dd2985d847e40c216944f92.tar.bz2 yuzu-7acebd7eb67032e51dd2985d847e40c216944f92.tar.lz yuzu-7acebd7eb67032e51dd2985d847e40c216944f92.tar.xz yuzu-7acebd7eb67032e51dd2985d847e40c216944f92.tar.zst yuzu-7acebd7eb67032e51dd2985d847e40c216944f92.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_shader_decompiler.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/video_core/renderer_vulkan/vk_shader_decompiler.h b/src/video_core/renderer_vulkan/vk_shader_decompiler.h index f5dc14d9e..ffea4709e 100644 --- a/src/video_core/renderer_vulkan/vk_shader_decompiler.h +++ b/src/video_core/renderer_vulkan/vk_shader_decompiler.h @@ -15,6 +15,7 @@ #include "common/common_types.h" #include "video_core/engines/maxwell_3d.h" #include "video_core/engines/shader_type.h" +#include "video_core/shader/registry.h" #include "video_core/shader/shader_ir.h" namespace Vulkan { @@ -91,17 +92,9 @@ struct Specialization final { u32 shared_memory_size{}; // Graphics specific - Maxwell::PrimitiveTopology primitive_topology{}; std::optional<float> point_size{}; std::array<Maxwell::VertexAttribute::Type, Maxwell::NumVertexAttributes> attribute_types{}; bool ndc_minus_one_to_one{}; - - // Tessellation specific - struct { - Maxwell::TessellationPrimitive primitive{}; - Maxwell::TessellationSpacing spacing{}; - bool clockwise{}; - } tessellation; }; // Old gcc versions don't consider this trivially copyable. // static_assert(std::is_trivially_copyable_v<Specialization>); @@ -114,6 +107,8 @@ struct SPIRVShader { ShaderEntries GenerateShaderEntries(const VideoCommon::Shader::ShaderIR& ir); std::vector<u32> Decompile(const VKDevice& device, const VideoCommon::Shader::ShaderIR& ir, - Tegra::Engines::ShaderType stage, const Specialization& specialization); + Tegra::Engines::ShaderType stage, + const VideoCommon::Shader::Registry& registry, + const Specialization& specialization); } // namespace Vulkan |