X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftest-graphics-program.cpp;h=0bf698ad23ff32e2c6d99857b7bbb872f3bc0908;hp=9a0afa6739efab6353d1975e7deb17c62ce076e8;hb=100f0f8554f97295dd52e01a91ef2b868eba3554;hpb=e3f2e46c5c880268d52dae3b0d25645a848a57da diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-graphics-program.cpp b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-graphics-program.cpp index 9a0afa6..0bf698a 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-graphics-program.cpp +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-graphics-program.cpp @@ -18,13 +18,16 @@ namespace Dali { -TestGraphicsProgramImpl::TestGraphicsProgramImpl(TestGlAbstraction& gl, const Graphics::ProgramCreateInfo& createInfo, Property::Array& vertexFormats) +TestGraphicsProgramImpl::TestGraphicsProgramImpl(TestGlAbstraction& gl, const Graphics::ProgramCreateInfo& createInfo, Property::Array& vertexFormats, std::vector& customUniforms) : mGl(gl), mCreateInfo(createInfo), - mReflection(gl, vertexFormats) + mReflection(gl, vertexFormats, createInfo, customUniforms) { mId = mGl.CreateProgram(); - mGl.LinkProgram(1); // Ensure active sampler uniforms are set + + // Ensure active sampler uniforms are set + mGl.SetCustomUniforms(customUniforms); + mGl.LinkProgram(mId); } bool TestGraphicsProgramImpl::GetParameter(uint32_t parameterId, void* outData) @@ -33,9 +36,9 @@ bool TestGraphicsProgramImpl::GetParameter(uint32_t parameterId, void* outData) return true; } -TestGraphicsProgram::TestGraphicsProgram(TestGlAbstraction& gl, const Graphics::ProgramCreateInfo& createInfo, Property::Array& vertexFormats) +TestGraphicsProgram::TestGraphicsProgram(TestGlAbstraction& gl, const Graphics::ProgramCreateInfo& createInfo, Property::Array& vertexFormats, std::vector& customUniforms) { - mImpl = new TestGraphicsProgramImpl(gl, createInfo, vertexFormats); + mImpl = new TestGraphicsProgramImpl(gl, createInfo, vertexFormats, customUniforms); } TestGraphicsProgram::TestGraphicsProgram(TestGraphicsProgramImpl* impl)