| 73 | } |
| 74 | |
| 75 | static 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 | |
| 89 | void modifySharpenPass(ID3D11DeviceContext *const context) |
| 90 | { |
no outgoing calls
no test coverage detected