diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-10-11 16:03:03 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-10-11 16:03:03 +0000 |
| commit | 854fb9130b8030bc9ff94304285eacaa3120cd14 (patch) | |
| tree | 16d9f0eecd88d9f1aec3ef57d268db48ccaa631b /Graphics/GraphicsEngine | |
| parent | Updated readme (diff) | |
| download | DiligentCore-854fb9130b8030bc9ff94304285eacaa3120cd14.tar.gz DiligentCore-854fb9130b8030bc9ff94304285eacaa3120cd14.zip | |
Fixed https://github.com/DiligentGraphics/DiligentCore/issues/2 (make '_sampler' suffix configurable through shader creation attributes)
Diffstat (limited to 'Graphics/GraphicsEngine')
| -rw-r--r-- | Graphics/GraphicsEngine/interface/Shader.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngine/interface/Shader.h b/Graphics/GraphicsEngine/interface/Shader.h index 2dcf65c5..06914040 100644 --- a/Graphics/GraphicsEngine/interface/Shader.h +++ b/Graphics/GraphicsEngine/interface/Shader.h @@ -256,6 +256,11 @@ struct ShaderCreationAttribs /// This member is ignored if ByteCode is not null const ShaderMacro *Macros = nullptr; + /// Defines the suffix added to the texture variable name to get corresponding + /// sampler name. For example, for default value "_sampler", a texture named + /// "tex" will be combined with sampler named "tex_sampler". + const Char* CombinedSamplerSuffix = "_sampler"; + /// Shader description. See Diligent::ShaderDesc. ShaderDesc Desc; |
