History

FInally bringing all the shader compilation related fuinctions in the Backend in the same cpp, making specialized version based on the Backend

Sam Cake committed 9 years ago

Commit 29545f01 parent 3b3857725 files · +1026 −621Browse files

Showing the changes to libraries/render-utils/src/GeometryCache.cpp (1 of 25 files). Show all

Unified · Split

libraries/render-utils/src/GeometryCache.cpp+1−1
@@ -1686,7 +1686,7 @@ void GeometryCache::useGridPipeline(gpu::Batch& batch, GridBuffer gridBuffer, bo · 1685 unmodified lines
1686 auto ps = gpu::Shader::createPixel(std::string(grid_frag));1686 auto ps = gpu::Shader::createPixel(std::string(grid_frag));
1687 auto program = gpu::Shader::createProgram(vs, ps);1687 auto program = gpu::Shader::createProgram(vs, ps);
1688 gpu::Shader::makeProgram((*program));1688 gpu::Shader::makeProgram((*program));
1689 _gridSlot = program->getBuffers().findLocation("gridBuffer");1689 _gridSlot = program->getUniformBuffers().findLocation("gridBuffer");
1690 1690
1691 auto stateLayered = std::make_shared<gpu::State>();1691 auto stateLayered = std::make_shared<gpu::State>();
1692 stateLayered->setBlendFunction(true, gpu::State::SRC_ALPHA, gpu::State::BLEND_OP_ADD, gpu::State::INV_SRC_ALPHA);1692 stateLayered->setBlendFunction(true, gpu::State::SRC_ALPHA, gpu::State::BLEND_OP_ADD, gpu::State::INV_SRC_ALPHA);