MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ record_closing_barrier()

void MayaFlux::Yantra::GpuDispatchRecorder::record_closing_barrier ( Portal::Graphics::CommandBufferID cmd_id)
static

Record the barrier every submission of Yantra dispatch work ends with.

Orders every later command, and host reads after completion, behind the compute and transfer writes recorded so far.

Definition at line 84 of file GpuResourceManager.cpp.

85{
87 cmd_id,
88 vk::AccessFlagBits2::eShaderWrite | vk::AccessFlagBits2::eTransferWrite,
89 vk::AccessFlagBits2::eMemoryRead | vk::AccessFlagBits2::eMemoryWrite | vk::AccessFlagBits2::eHostRead,
90 vk::PipelineStageFlagBits2::eComputeShader | vk::PipelineStageFlagBits2::eTransfer,
91 vk::PipelineStageFlagBits2::eAllCommands | vk::PipelineStageFlagBits2::eHost);
92}
void memory_barrier(CommandBufferID cmd_id, vk::AccessFlags2 src_access, vk::AccessFlags2 dst_access, vk::PipelineStageFlags2 src_stage, vk::PipelineStageFlags2 dst_stage)
Insert a global memory barrier covering every buffer and image.
MAYAFLUX_API ShaderFoundry & get_shader_foundry()
Get the global shader compiler instance.

References MayaFlux::Portal::Graphics::get_shader_foundry(), and MayaFlux::Portal::Graphics::ShaderFoundry::memory_barrier().

Referenced by MayaFlux::Yantra::GpuResourceManager::dispatch_async(), MayaFlux::Yantra::GpuResourceManager::finish_commands(), and submit().

Here is the call graph for this function:
Here is the caller graph for this function: