diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-05-25 23:58:28 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:33 +0200 |
commit | eacf18cce9a05a28f50e916a752c04b0c9337707 (patch) | |
tree | c01a2c6ea1bb7c0aefd21b101c979a03da861e74 /src/video_core/renderer_opengl/gl_compute_pipeline.cpp | |
parent | glasm: Release phi node registers after they are no longer needed (diff) | |
download | yuzu-eacf18cce9a05a28f50e916a752c04b0c9337707.tar yuzu-eacf18cce9a05a28f50e916a752c04b0c9337707.tar.gz yuzu-eacf18cce9a05a28f50e916a752c04b0c9337707.tar.bz2 yuzu-eacf18cce9a05a28f50e916a752c04b0c9337707.tar.lz yuzu-eacf18cce9a05a28f50e916a752c04b0c9337707.tar.xz yuzu-eacf18cce9a05a28f50e916a752c04b0c9337707.tar.zst yuzu-eacf18cce9a05a28f50e916a752c04b0c9337707.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_compute_pipeline.cpp (renamed from src/video_core/renderer_opengl/gl_compute_program.cpp) | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/video_core/renderer_opengl/gl_compute_program.cpp b/src/video_core/renderer_opengl/gl_compute_pipeline.cpp index ce52a0052..700ebd8b8 100644 --- a/src/video_core/renderer_opengl/gl_compute_program.cpp +++ b/src/video_core/renderer_opengl/gl_compute_pipeline.cpp @@ -5,7 +5,7 @@ #include <cstring> #include "common/cityhash.h" -#include "video_core/renderer_opengl/gl_compute_program.h" +#include "video_core/renderer_opengl/gl_compute_pipeline.h" #include "video_core/renderer_opengl/gl_shader_manager.h" namespace OpenGL { @@ -17,20 +17,20 @@ using VideoCommon::ImageId; constexpr u32 MAX_TEXTURES = 64; constexpr u32 MAX_IMAGES = 16; -size_t ComputeProgramKey::Hash() const noexcept { +size_t ComputePipelineKey::Hash() const noexcept { return static_cast<size_t>( Common::CityHash64(reinterpret_cast<const char*>(this), sizeof *this)); } -bool ComputeProgramKey::operator==(const ComputeProgramKey& rhs) const noexcept { +bool ComputePipelineKey::operator==(const ComputePipelineKey& rhs) const noexcept { return std::memcmp(this, &rhs, sizeof *this) == 0; } -ComputeProgram::ComputeProgram(TextureCache& texture_cache_, BufferCache& buffer_cache_, - Tegra::MemoryManager& gpu_memory_, - Tegra::Engines::KeplerCompute& kepler_compute_, - ProgramManager& program_manager_, const Shader::Info& info_, - OGLProgram source_program_, OGLAssemblyProgram assembly_program_) +ComputePipeline::ComputePipeline(TextureCache& texture_cache_, BufferCache& buffer_cache_, + Tegra::MemoryManager& gpu_memory_, + Tegra::Engines::KeplerCompute& kepler_compute_, + ProgramManager& program_manager_, const Shader::Info& info_, + OGLProgram source_program_, OGLAssemblyProgram assembly_program_) : texture_cache{texture_cache_}, buffer_cache{buffer_cache_}, gpu_memory{gpu_memory_}, kepler_compute{kepler_compute_}, program_manager{program_manager_}, info{info_}, source_program{std::move(source_program_)}, assembly_program{std::move(assembly_program_)} { @@ -53,7 +53,7 @@ ComputeProgram::ComputeProgram(TextureCache& texture_cache_, BufferCache& buffer ASSERT(num_images <= MAX_IMAGES); } -void ComputeProgram::Configure() { +void ComputePipeline::Configure() { buffer_cache.SetEnabledComputeUniformBuffers(info.constant_buffer_mask); buffer_cache.UnbindComputeStorageBuffers(); size_t ssbo_index{}; |