small fixes

This commit is contained in:
ohyzha
2024-08-22 13:29:03 +03:00
parent 42e35e6a54
commit f7f4897aff
9 changed files with 35 additions and 18 deletions

View File

@@ -60,8 +60,10 @@ namespace OpenVulkano::Scene
ShaderProgram(ShaderProgramType type, const std::string& name) : type(type), name(name) {}
ShaderProgram(const ShaderProgram& program) = default;
ShaderProgram& operator=(const ShaderProgram& program) = default;
ShaderProgram(ShaderProgram&& program) noexcept : type(program.type), name(std::move(program.name)) {}
ShaderProgram(ShaderProgram&& program) noexcept = default;
ShaderProgram& operator=(ShaderProgram&& program) noexcept = default;
[[nodiscard]] std::string GetShaderNameOpenGL() const
{