MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / DisableCBuffers

Method DisableCBuffers

GTE/Graphics/GL46/GL46Engine.cpp:378–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376}
377
378void GL46Engine::DisableCBuffers(Shader const* shader, GLuint program)
379{
380 int32_t const index = ConstantBuffer::shaderDataLookup;
381 for (auto const& cb : shader->GetData(index))
382 {
383 auto const blockIndex = cb.bindPoint;
384 if (GL_INVALID_INDEX != static_cast<uint32_t>(blockIndex))
385 {
386 auto const unit = mUniformUnitMap.GetUnit(program, blockIndex);
387 glBindBufferBase(GL_UNIFORM_BUFFER, unit, 0);
388 mUniformUnitMap.ReleaseUnit(unit);
389 }
390 }
391}
392
393void GL46Engine::EnableTBuffers(Shader const*, GLuint)
394{

Callers

nothing calls this directly

Calls 4

glBindBufferBaseFunction · 0.85
GetUnitMethod · 0.80
ReleaseUnitMethod · 0.80
GetDataMethod · 0.45

Tested by

no test coverage detected