gfx/shader: Get-er for currently loaded shader file

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2021-11-25 21:07:56 +01:00
parent 6f7c03fb28
commit e1b7e6eaf2
2 changed files with 7 additions and 0 deletions

View file

@ -620,3 +620,8 @@ obs_source_t* streamfx::gfx::shader::shader::get()
{ {
return _self; return _self;
} }
std::filesystem::path streamfx::gfx::shader::shader::get_shader_file()
{
return _shader_file;
}

View file

@ -117,6 +117,8 @@ namespace streamfx::gfx {
obs_source_t* get(); obs_source_t* get();
std::filesystem::path get_shader_file();
public: public:
void set_size(uint32_t w, uint32_t h); void set_size(uint32_t w, uint32_t h);