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

Method CopyGpuToCpu

GTE/Graphics/GL46/GL46Engine.cpp:1150–1159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1148}
1149
1150bool GL46Engine::CopyGpuToCpu(std::shared_ptr<Buffer> const& buffer)
1151{
1152 if (!buffer->GetData())
1153 {
1154 buffer->CreateStorage();
1155 }
1156
1157 auto glBuffer = static_cast<GL46Buffer*>(Bind(buffer));
1158 return glBuffer->CopyGpuToCpu();
1159}
1160
1161bool GL46Engine::CopyGpuToCpu(std::shared_ptr<TextureSingle> const& texture)
1162{

Callers 15

UpdateFacesMethod · 0.45
SolveSystemInternalMethod · 0.45
FindRootsGPUMethod · 0.45
ExecuteMethod · 0.45
GenerateWeightsMethod · 0.45
ComputeMethod · 0.45
OnIdleMethod · 0.45
OnIdleMethod · 0.45
OnIdleMethod · 0.45
OnIdleMethod · 0.45
ExecuteMethod · 0.45
OnIdleMethod · 0.45

Calls 2

CreateStorageMethod · 0.80
GetDataMethod · 0.45

Tested by 3

GenerateWeightsMethod · 0.36
ComputeMethod · 0.36
TestSubnormalsMethod · 0.36