1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-03 22:24:13 +01:00

[d3d11] Rename EmitCsChunkExternal for consistency

This commit is contained in:
Philip Rebohle 2024-10-02 12:11:35 +02:00 committed by Philip Rebohle
parent c678e8c803
commit 172d3450d1
4 changed files with 7 additions and 7 deletions

View File

@ -890,7 +890,7 @@ namespace dxvk {
}
void D3D11ImmediateContext::EmitCsChunkExternal(
void D3D11ImmediateContext::InjectCsChunk(
DxvkCsChunkRef&& Chunk,
bool Synchronize) {
// Do not update the sequence number when emitting a chunk

View File

@ -97,17 +97,17 @@ namespace dxvk {
return m_multithread.AcquireLock();
}
void EmitCsChunkExternal(
void InjectCsChunk(
DxvkCsChunkRef&& Chunk,
bool Synchronize);
template<typename Fn>
void InjectCsCommand(
void InjectCs(
Fn&& Command) {
auto chunk = AllocCsChunk();
chunk->push(std::move(Command));
EmitCsChunkExternal(std::move(chunk), false);
InjectCsChunk(std::move(chunk), false);
}
private:

View File

@ -2778,7 +2778,7 @@ namespace dxvk {
feedback = ctx->ensureImageCompatibility(cImage, usageInfo);
});
m_device->GetContext()->EmitCsChunkExternal(std::move(chunk), true);
m_device->GetContext()->InjectCsChunk(std::move(chunk), true);
if (!feedback) {
Logger::err(str::format("Failed to lock image:"
@ -2802,7 +2802,7 @@ namespace dxvk {
ctx->ensureBufferAddress(cBuffer);
});
m_device->GetContext()->EmitCsChunkExternal(std::move(chunk), true);
m_device->GetContext()->InjectCsChunk(std::move(chunk), true);
}

View File

@ -613,7 +613,7 @@ namespace dxvk {
// Initialize the image so that we can use it. Clearing
// to black prevents garbled output for the first frame.
m_parent->GetContext()->InjectCsCommand([
m_parent->GetContext()->InjectCs([
cSwapImage = m_swapImage
] (DxvkContext* ctx) {
ctx->initImage(cSwapImage,