MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / ToStagingUpload

Method ToStagingUpload

Source/Engine/Graphics/GPUBuffer.cpp:99–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99GPUBufferDescription GPUBufferDescription::ToStagingUpload() const
100{
101 auto desc = *this;
102 desc.Usage = GPUResourceUsage::StagingUpload;
103 desc.Flags = GPUBufferFlags::None;
104 desc.InitData = nullptr;
105 return desc;
106}
107
108GPUBufferDescription GPUBufferDescription::ToStagingReadback() const
109{

Callers

nothing calls this directly

Calls 4

DeleteFunction · 0.85
CreateBufferMethod · 0.45
InitMethod · 0.45
ReleaseGPUMethod · 0.45

Tested by

no test coverage detected