MCPcopy Create free account
hub / github.com/aliasIsolation/aliasIsolation / updateConstantBuffer

Function updateConstantBuffer

src/dll/post.cpp:75–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75static void updateConstantBuffer(ID3D11DeviceContext *context, ID3D11Buffer *constantBuffer, void *data,
76 unsigned sizeBytes)
77{
78 ZoneScopedN(__FUNCTION__);
79
80 D3D11_MAPPED_SUBRESOURCE mapped = {};
81 context->Map(constantBuffer, 0, D3D11_MAP_WRITE_NO_OVERWRITE, 0, &mapped);
82 if (mapped.pData)
83 {
84 memcpy(mapped.pData, data, sizeBytes);
85 }
86 context->Unmap(constantBuffer, 0);
87}
88
89void modifySharpenPass(ID3D11DeviceContext *const context)
90{

Callers 2

modifySharpenPassFunction · 0.85
caOnDrawFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected