9bce79a2b0e6752faa905350f8c21525b0626d1a
[platform/core/uifw/dali-toolkit.git] / automated-tests / src / dali-toolkit / dali-toolkit-test-utils / test-graphics-reflection.cpp
1 /*
2  * Copyright (c) 2021 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #include "test-graphics-reflection.h"
18
19 namespace Dali
20 {
21 TestGraphicsReflection::TestGraphicsReflection(TestGlAbstraction& gl)
22 : mGl(gl)
23 {
24 }
25
26 uint32_t TestGraphicsReflection::GetVertexAttributeLocation(const std::string& name) const
27 {
28   return 0u;
29 }
30
31 Dali::Graphics::VertexInputAttributeFormat TestGraphicsReflection::GetVertexAttributeFormat(uint32_t location) const
32 {
33   return Dali::Graphics::VertexInputAttributeFormat{};
34 }
35
36 std::string TestGraphicsReflection::GetVertexAttributeName(uint32_t location) const
37 {
38   return 0u;
39 }
40
41 std::vector<uint32_t> TestGraphicsReflection::GetVertexAttributeLocations() const
42 {
43   return std::vector<uint32_t>{};
44 }
45
46 uint32_t TestGraphicsReflection::GetUniformBlockCount() const
47 {
48   return 0u;
49 }
50
51 uint32_t TestGraphicsReflection::GetUniformBlockBinding(uint32_t index) const
52 {
53   return 0u;
54 }
55
56 uint32_t TestGraphicsReflection::GetUniformBlockSize(uint32_t index) const
57 {
58   return 0u;
59 }
60
61 bool TestGraphicsReflection::GetUniformBlock(uint32_t index, Dali::Graphics::UniformBlockInfo& out) const
62 {
63   return true;
64 }
65
66 std::vector<uint32_t> TestGraphicsReflection::GetUniformBlockLocations() const
67 {
68   return std::vector<uint32_t>{};
69 }
70
71 std::string TestGraphicsReflection::GetUniformBlockName(uint32_t blockIndex) const
72 {
73   return std::string{};
74 }
75
76 uint32_t TestGraphicsReflection::GetUniformBlockMemberCount(uint32_t blockIndex) const
77 {
78   return 0u;
79 }
80
81 std::string TestGraphicsReflection::GetUniformBlockMemberName(uint32_t blockIndex, uint32_t memberLocation) const
82 {
83   return std::string{};
84 }
85
86 uint32_t TestGraphicsReflection::GetUniformBlockMemberOffset(uint32_t blockIndex, uint32_t memberLocation) const
87 {
88   return 0u;
89 }
90
91 bool TestGraphicsReflection::GetNamedUniform(const std::string& name, Dali::Graphics::UniformInfo& out) const
92 {
93   return true;
94 }
95
96 std::vector<Dali::Graphics::UniformInfo> TestGraphicsReflection::GetSamplers() const
97 {
98   return std::vector<Dali::Graphics::UniformInfo>{};
99 }
100
101 Graphics::ShaderLanguage TestGraphicsReflection::GetLanguage() const
102 {
103   return Graphics::ShaderLanguage::GLSL_3_1;
104 }
105
106 } // namespace Dali