Loading...
Searching...
No Matches
ShaderSamplerSource.hpp
1#pragma once
2#include <score_plugin_gfx_export.h>
3
4// Forward declarations only: TexturePort.hpp includes this header, and
5// addons build against TexturePort.hpp without libisf on their include path.
6namespace isf
7{
8struct descriptor;
9struct sampler_config;
10}
11
12class QString;
13namespace Gfx
14{
15class TextureInlet;
16
19class SCORE_PLUGIN_GFX_EXPORT ShaderSamplerSource
20{
21public:
22 virtual ~ShaderSamplerSource();
24 virtual const isf::sampler_config*
25 shaderSampler(const TextureInlet& inlet) const noexcept = 0;
26};
27
29SCORE_PLUGIN_GFX_EXPORT
30const isf::sampler_config*
31declaredSampler(const isf::descriptor& desc, const QString& name) noexcept;
32}
Definition ShaderSamplerSource.hpp:20
virtual const isf::sampler_config * shaderSampler(const TextureInlet &inlet) const noexcept=0
Null when the shader declares no sampler for that input.
Binds the rendering pipeline to ossia processes.
Definition AssetTable.cpp:7
const isf::sampler_config * declaredSampler(const isf::descriptor &desc, const QString &name) noexcept
The sampler desc declares for its input named name, or null.
Definition TexturePort.cpp:164