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

◆ release()

void MayaFlux::Portal::Graphics::PrimitiveMill::release ( )

Destroy the kernel, pipeline and buffers.

Definition at line 832 of file PrimitiveMill.cpp.

833{
835
836 auto& foundry = get_shader_foundry();
837 auto& press = get_compute_press();
838
840 press.destroy_pipeline(m_pipeline);
842 }
843
844 if (m_shader != INVALID_SHADER) {
845 foundry.destroy_shader(m_shader);
847 }
848
849 m_outputs.clear();
850 m_output_slot = 0;
851 if (m_run_arena) {
852 m_run_arena->release();
853 }
854 if (m_prefix_arena) {
855 m_prefix_arena->release();
856 }
857 m_run_arena.reset();
858 m_prefix_arena.reset();
859 m_prefix.clear();
860 m_run_words.clear();
862 m_milled_count = 0;
864}
std::unique_ptr< SlotArena > m_prefix_arena
std::unique_ptr< SlotArena > m_run_arena
std::vector< std::shared_ptr< Buffers::VKBuffer > > m_outputs
Milled buffers rotated between dispatches, all at m_output_capacity.
void resolve_pending()
Wait on and reclaim every outstanding dispatch.
constexpr ShaderID INVALID_SHADER
MAYAFLUX_API ShaderFoundry & get_shader_foundry()
Get the global shader compiler instance.
constexpr ComputePipelineID INVALID_COMPUTE_PIPELINE
MAYAFLUX_API ComputePress & get_compute_press()
std::shared_ptr< Buffers::TextBuffer > press(std::string_view text, const PressParams &params)
Composite a UTF-8 string into a new TextBuffer.
Definition InkPress.cpp:344

References MayaFlux::Portal::Graphics::get_compute_press(), MayaFlux::Portal::Graphics::get_shader_foundry(), MayaFlux::Portal::Graphics::INVALID_COMPUTE_PIPELINE, MayaFlux::Portal::Graphics::INVALID_SHADER, m_milled_count, m_output_capacity, m_output_slot, m_outputs, m_pipeline, m_prefix, m_prefix_arena, m_push_constant_size, m_run_arena, m_run_words, m_shader, and resolve_pending().

Referenced by ~PrimitiveMill().

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