diff options
| author | azhirnov <zh1dron@gmail.com> | 2021-01-15 23:56:25 +0000 |
|---|---|---|
| committer | azhirnov <zh1dron@gmail.com> | 2021-01-15 23:56:25 +0000 |
| commit | 8a3b697948704337d08af7bea93627f5e647899e (patch) | |
| tree | 852d3b0f7ea9fa9fa0ffcf2df81a5a5472371183 /Tests/IncludeTest | |
| parent | IBufferSuballocation: added SetUserData()/GetUserData() methods (diff) | |
| download | DiligentCore-8a3b697948704337d08af7bea93627f5e647899e.tar.gz DiligentCore-8a3b697948704337d08af7bea93627f5e647899e.zip | |
added pipeline resource signature (wip)
Diffstat (limited to 'Tests/IncludeTest')
| -rw-r--r-- | Tests/IncludeTest/GraphicsEngine/PipelineResourceSignatureH_test.c | 42 | ||||
| -rw-r--r-- | Tests/IncludeTest/GraphicsEngine/PipelineResourceSignatureH_test.cpp | 28 |
2 files changed, 70 insertions, 0 deletions
diff --git a/Tests/IncludeTest/GraphicsEngine/PipelineResourceSignatureH_test.c b/Tests/IncludeTest/GraphicsEngine/PipelineResourceSignatureH_test.c new file mode 100644 index 00000000..dc65e598 --- /dev/null +++ b/Tests/IncludeTest/GraphicsEngine/PipelineResourceSignatureH_test.c @@ -0,0 +1,42 @@ +/* + * Copyright 2019-2021 Diligent Graphics LLC + * Copyright 2015-2019 Egor Yusov + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * In no event and under no legal theory, whether in tort (including negligence), + * contract, or otherwise, unless required by applicable law (such as deliberate + * and grossly negligent acts) or agreed to in writing, shall any Contributor be + * liable for any damages, including any direct, indirect, special, incidental, + * or consequential damages of any character arising as a result of this License or + * out of the use or inability to use the software (including but not limited to damages + * for loss of goodwill, work stoppage, computer failure or malfunction, or any and + * all other commercial damages or losses), even if such Contributor has been advised + * of the possibility of such damages. + */ + +#include "DiligentCore/Graphics/GraphicsEngine/interface/PipelineResourceSignature.h" + +void TestPipelineResourceSignature(struct IPipelineResourceSignature* pSign) +{ + PipelineResourceSignature_CreateShaderResourceBinding(pSign, (struct IShaderResourceBinding**)NULL, true); + + struct IShaderResourceVariable* pVar1 = PipelineResourceSignature_GetStaticVariableByName(SHADER_TYPE_UNKNOWN, "name"); + void(pVar1); + + struct IShaderResourceVariable* pVar2 = PipelineResourceSignature_GetStaticVariableByIndex(SHADER_TYPE_UNKNOWN, 0); + void(pVar2); + + Uint32 Count = PipelineResourceSignature_GetStaticVariableCount(pSign, SHADER_TYPE_UNKNOWN); + void(Count); +} diff --git a/Tests/IncludeTest/GraphicsEngine/PipelineResourceSignatureH_test.cpp b/Tests/IncludeTest/GraphicsEngine/PipelineResourceSignatureH_test.cpp new file mode 100644 index 00000000..9246a313 --- /dev/null +++ b/Tests/IncludeTest/GraphicsEngine/PipelineResourceSignatureH_test.cpp @@ -0,0 +1,28 @@ +/* + * Copyright 2019-2021 Diligent Graphics LLC + * Copyright 2015-2019 Egor Yusov + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * In no event and under no legal theory, whether in tort (including negligence), + * contract, or otherwise, unless required by applicable law (such as deliberate + * and grossly negligent acts) or agreed to in writing, shall any Contributor be + * liable for any damages, including any direct, indirect, special, incidental, + * or consequential damages of any character arising as a result of this License or + * out of the use or inability to use the software (including but not limited to damages + * for loss of goodwill, work stoppage, computer failure or malfunction, or any and + * all other commercial damages or losses), even if such Contributor has been advised + * of the possibility of such damages. + */ + +#include "DiligentCore/Graphics/GraphicsEngine/interface/PipelineResourceSignature.h" |
