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
16861686 auto ps = gpu::Shader::createPixel(std::string(grid_frag));
16871687 auto program = gpu::Shader::createProgram(vs, ps);
16881688 gpu::Shader::makeProgram((*program));
1689− _gridSlot = program->getBuffers().findLocation("gridBuffer");
1689+ _gridSlot = program->getUniformBuffers().findLocation("gridBuffer");
16901690
16911691 auto stateLayered = std::make_shared<gpu::State>();
16921692 stateLayered->setBlendFunction(true, gpu::State::SRC_ALPHA, gpu::State::BLEND_OP_ADD, gpu::State::INV_SRC_ALPHA);