summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_compute_pipeline.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-05-25 23:58:28 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:33 +0200
commiteacf18cce9a05a28f50e916a752c04b0c9337707 (patch)
treec01a2c6ea1bb7c0aefd21b101c979a03da861e74 /src/video_core/renderer_opengl/gl_compute_pipeline.h
parentglasm: Release phi node registers after they are no longer needed (diff)
downloadyuzu-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.h (renamed from src/video_core/renderer_opengl/gl_compute_program.h)28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/video_core/renderer_opengl/gl_compute_program.h b/src/video_core/renderer_opengl/gl_compute_pipeline.h
index ddb00dc1d..e3b94e2f3 100644
--- a/src/video_core/renderer_opengl/gl_compute_program.h
+++ b/src/video_core/renderer_opengl/gl_compute_pipeline.h
@@ -30,30 +30,30 @@ namespace OpenGL {
class ProgramManager;
-struct ComputeProgramKey {
+struct ComputePipelineKey {
u64 unique_hash;
u32 shared_memory_size;
std::array<u32, 3> workgroup_size;
size_t Hash() const noexcept;
- bool operator==(const ComputeProgramKey&) const noexcept;
+ bool operator==(const ComputePipelineKey&) const noexcept;
- bool operator!=(const ComputeProgramKey& rhs) const noexcept {
+ bool operator!=(const ComputePipelineKey& rhs) const noexcept {
return !operator==(rhs);
}
};
-static_assert(std::has_unique_object_representations_v<ComputeProgramKey>);
-static_assert(std::is_trivially_copyable_v<ComputeProgramKey>);
-static_assert(std::is_trivially_constructible_v<ComputeProgramKey>);
+static_assert(std::has_unique_object_representations_v<ComputePipelineKey>);
+static_assert(std::is_trivially_copyable_v<ComputePipelineKey>);
+static_assert(std::is_trivially_constructible_v<ComputePipelineKey>);
-class ComputeProgram {
+class ComputePipeline {
public:
- explicit 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_);
+ explicit 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_);
void Configure();
@@ -76,8 +76,8 @@ private:
namespace std {
template <>
-struct hash<OpenGL::ComputeProgramKey> {
- size_t operator()(const OpenGL::ComputeProgramKey& k) const noexcept {
+struct hash<OpenGL::ComputePipelineKey> {
+ size_t operator()(const OpenGL::ComputePipelineKey& k) const noexcept {
return k.Hash();
}
};