diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-12-11 20:47:22 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-12-11 20:47:22 +0000 |
| commit | 525f71e32f7bf07c67ffcb84de6eb7de1a192bb3 (patch) | |
| tree | 599293e33555d772b7b4159fab408f52f0860a86 /Graphics/GraphicsEngine | |
| parent | Added Samplers test (diff) | |
| download | DiligentCore-525f71e32f7bf07c67ffcb84de6eb7de1a192bb3.tar.gz DiligentCore-525f71e32f7bf07c67ffcb84de6eb7de1a192bb3.zip | |
Added static sampler tests
Diffstat (limited to 'Graphics/GraphicsEngine')
| -rw-r--r-- | Graphics/GraphicsEngine/interface/Shader.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngine/interface/Shader.h b/Graphics/GraphicsEngine/interface/Shader.h index 91cc215b..9294abd3 100644 --- a/Graphics/GraphicsEngine/interface/Shader.h +++ b/Graphics/GraphicsEngine/interface/Shader.h @@ -246,6 +246,16 @@ enum SHADER_RESOURCE_TYPE : Uint8 /// Shader resource description struct ShaderResourceDesc { + ShaderResourceDesc() noexcept {} + + ShaderResourceDesc(const char* _Name, + SHADER_RESOURCE_TYPE _Type, + Uint32 _ArraySize) noexcept : + Name{_Name}, + Type{_Type}, + ArraySize{_ArraySize} + {} + // clang-format off /// Shader resource name const char* Name = nullptr; |
