2 * Copyright (c) 2021 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #include "test-graphics-reflection.h"
21 TestGraphicsReflection::TestGraphicsReflection(TestGlAbstraction& gl)
26 uint32_t TestGraphicsReflection::GetVertexAttributeLocation(const std::string& name) const
31 Dali::Graphics::VertexInputAttributeFormat TestGraphicsReflection::GetVertexAttributeFormat(uint32_t location) const
33 return Dali::Graphics::VertexInputAttributeFormat{};
36 std::string TestGraphicsReflection::GetVertexAttributeName(uint32_t location) const
41 std::vector<uint32_t> TestGraphicsReflection::GetVertexAttributeLocations() const
43 return std::vector<uint32_t>{};
46 uint32_t TestGraphicsReflection::GetUniformBlockCount() const
51 uint32_t TestGraphicsReflection::GetUniformBlockBinding(uint32_t index) const
56 uint32_t TestGraphicsReflection::GetUniformBlockSize(uint32_t index) const
61 bool TestGraphicsReflection::GetUniformBlock(uint32_t index, Dali::Graphics::UniformBlockInfo& out) const
66 std::vector<uint32_t> TestGraphicsReflection::GetUniformBlockLocations() const
68 return std::vector<uint32_t>{};
71 std::string TestGraphicsReflection::GetUniformBlockName(uint32_t blockIndex) const
76 uint32_t TestGraphicsReflection::GetUniformBlockMemberCount(uint32_t blockIndex) const
81 std::string TestGraphicsReflection::GetUniformBlockMemberName(uint32_t blockIndex, uint32_t memberLocation) const
86 uint32_t TestGraphicsReflection::GetUniformBlockMemberOffset(uint32_t blockIndex, uint32_t memberLocation) const
91 bool TestGraphicsReflection::GetNamedUniform(const std::string& name, Dali::Graphics::UniformInfo& out) const
96 std::vector<Dali::Graphics::UniformInfo> TestGraphicsReflection::GetSamplers() const
98 return std::vector<Dali::Graphics::UniformInfo>{};
101 Graphics::ShaderLanguage TestGraphicsReflection::GetLanguage() const
103 return Graphics::ShaderLanguage::GLSL_3_1;