12 const auto& uniforms = handle.Uniforms;
13 const auto& size = buffer.GetSize();
14 const float sizeRaw[2] = {
static_cast<float>(size.x),
static_cast<float>(size.y) };
15 if(srcBufferTexture ==
nullptr)
return;
17 if(uniforms.SourceBuffer >= 0)
18 srcBufferTexture->Bind(uniforms.SourceBuffer, layout);
19 if(uniforms.SourceBufferSize >= 0)
20 glUniform2fv(uniforms.SourceBufferSize, 1, sizeRaw);