X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftest-graphics-program.cpp;h=0bf698ad23ff32e2c6d99857b7bbb872f3bc0908;hb=cb38415e21b0c0b9ee1437e8fb10345e3e636804;hp=9a0afa6739efab6353d1975e7deb17c62ce076e8;hpb=0e72d018e3fcf80e7ea319b0b888915b8d04e5c4;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git 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)