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

Method CopyCpuToGpu

GTE/Graphics/GL46/GL46Engine.cpp:1095–1104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1093}
1094
1095bool GL46Engine::CopyCpuToGpu(std::shared_ptr<Buffer> const& buffer)
1096{
1097 if (!buffer->GetData())
1098 {
1099 buffer->CreateStorage();
1100 }
1101
1102 auto glBuffer = static_cast<GL46Buffer*>(Bind(buffer));
1103 return glBuffer->CopyCpuToGpu();
1104}
1105
1106bool GL46Engine::CopyCpuToGpu(std::shared_ptr<TextureSingle> const& texture)
1107{

Callers 9

UpdateFacesMethod · 0.45
OnIdleMethod · 0.45
OnMouseClickMethod · 0.45
DrawPathMethod · 0.45
OnIdleMethod · 0.45
OnIdleMethod · 0.45
OnIdleMethod · 0.45
OnIdleMethod · 0.45
OnCharPressMethod · 0.45

Calls 2

CreateStorageMethod · 0.80
GetDataMethod · 0.45

Tested by 1

DrawPathMethod · 0.36