From 854fb9130b8030bc9ff94304285eacaa3120cd14 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Thu, 11 Oct 2018 09:03:03 -0700 Subject: Fixed https://github.com/DiligentGraphics/DiligentCore/issues/2 (make '_sampler' suffix configurable through shader creation attributes) --- Graphics/GraphicsEngine/interface/Shader.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Graphics/GraphicsEngine') 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; -- cgit v1.2.3