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

Method MapForWrite

GTE/Graphics/DX11/DX11Engine.cpp:187–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187D3D11_MAPPED_SUBRESOURCE DX11Engine::MapForWrite(std::shared_ptr<Resource> const& resource, uint32_t sri)
188{
189 if (!resource->GetData())
190 {
191 resource->CreateStorage();
192 }
193
194 DX11Resource* dxResource = static_cast<DX11Resource*>(Bind(resource));
195 return dxResource->MapForWrite(mImmediate, sri);
196}
197
198void DX11Engine::Unmap(std::shared_ptr<Resource> const& resource, uint32_t sri)
199{

Callers

nothing calls this directly

Calls 2

CreateStorageMethod · 0.80
GetDataMethod · 0.45

Tested by

no test coverage detected