summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-03-05 07:19:07 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-03-05 07:19:07 +0000
commitbdbca67b0e03baec3b9dd803e803d267210e892b (patch)
treeaa20e56029a30178360cd1b17f0c817f9d590daf /Graphics/GraphicsEngine
parentUpdated GL engine factory headers and structures (diff)
downloadDiligentCore-bdbca67b0e03baec3b9dd803e803d267210e892b.tar.gz
DiligentCore-bdbca67b0e03baec3b9dd803e803d267210e892b.zip
Added ShaderFlags parameter to IPipelineState::BindStaticResources
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/interface/PipelineState.h4
-rw-r--r--Graphics/GraphicsEngine/interface/ShaderResourceBinding.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/Graphics/GraphicsEngine/interface/PipelineState.h b/Graphics/GraphicsEngine/interface/PipelineState.h
index 0f6efcf6..f562a2cd 100644
--- a/Graphics/GraphicsEngine/interface/PipelineState.h
+++ b/Graphics/GraphicsEngine/interface/PipelineState.h
@@ -251,9 +251,11 @@ public:
/// Binds resources for all shaders in the pipeline state
+ /// \param [in] ShaderFlags - Flags that specify shader stages, for which resources will be bound.
+ /// Any combination of Diligent::SHADER_TYPE may be used.
/// \param [in] pResourceMapping - Pointer to the resource mapping interface.
/// \param [in] Flags - Additional flags. See Diligent::BIND_SHADER_RESOURCES_FLAGS.
- virtual void BindStaticResources(IResourceMapping* pResourceMapping, Uint32 Flags) = 0;
+ virtual void BindStaticResources(Uint32 ShaderFlags, IResourceMapping* pResourceMapping, Uint32 Flags) = 0;
/// Returns the number of static shader resource variables.
diff --git a/Graphics/GraphicsEngine/interface/ShaderResourceBinding.h b/Graphics/GraphicsEngine/interface/ShaderResourceBinding.h
index d2523685..0afaa1f1 100644
--- a/Graphics/GraphicsEngine/interface/ShaderResourceBinding.h
+++ b/Graphics/GraphicsEngine/interface/ShaderResourceBinding.h
@@ -56,8 +56,8 @@ public:
/// Binds mutable and dynamice resources using the resource mapping
- /// \param [in] ShaderFlags - Flags for the shader stages, for which resources will be bound.
- /// Any combination of Diligent::SHADER_TYPE may be specified.
+ /// \param [in] ShaderFlags - Flags that specify shader stages, for which resources will be bound.
+ /// Any combination of Diligent::SHADER_TYPE may be used.
/// \param [in] pResMapping - Shader resource mapping, where required resources will be looked up
/// \param [in] Flags - Additional flags. See Diligent::BIND_SHADER_RESOURCES_FLAGS.
virtual void BindResources(Uint32 ShaderFlags, IResourceMapping* pResMapping, Uint32 Flags) = 0;