diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-04-25 05:17:09 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-04-25 05:17:09 +0000 |
| commit | f3698c9127d6e384eabe779b8fb3519c94e0babb (patch) | |
| tree | 9e24ffe8d89b58d464766d7c03ecabe4fe62d466 /Graphics/GraphicsEngineOpenGL | |
| parent | Added slerp; updated Quaternion in math lib (diff) | |
| download | DiligentCore-f3698c9127d6e384eabe779b8fb3519c94e0babb.tar.gz DiligentCore-f3698c9127d6e384eabe779b8fb3519c94e0babb.zip | |
Added IShaderResourceVariable::IsBound method (updated API version to 240024)
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
| -rw-r--r-- | Graphics/GraphicsEngineOpenGL/include/GLProgramResources.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/include/GLProgramResources.h b/Graphics/GraphicsEngineOpenGL/include/GLProgramResources.h index 0e076db6..b0ebfa06 100644 --- a/Graphics/GraphicsEngineOpenGL/include/GLProgramResources.h +++ b/Graphics/GraphicsEngineOpenGL/include/GLProgramResources.h @@ -128,6 +128,12 @@ namespace Diligent return VariableIndex; } + virtual bool IsBound(Uint32 ArrayIndex) const override final + { + VERIFY(ArrayIndex < ArraySize, "Array index (", ArrayIndex, ") is out of range"); + return pResources[ArrayIndex] != nullptr; + } + virtual ShaderResourceDesc GetResourceDesc()const override final { ShaderResourceDesc ResourceDesc; |
