Extract stroke preview live pass
This commit is contained in:
@@ -75,6 +75,31 @@ void execute_legacy_stroke_preview_final_composite(
|
||||
draw_plane();
|
||||
}
|
||||
|
||||
template <
|
||||
typename ClearTarget,
|
||||
typename ComputeFrames,
|
||||
typename BeforeFrame,
|
||||
typename SetupSampleShader,
|
||||
typename DrawSample,
|
||||
typename CopyPreviewResult>
|
||||
void execute_legacy_stroke_preview_live_pass(
|
||||
ClearTarget&& clear_target,
|
||||
ComputeFrames&& compute_frames,
|
||||
BeforeFrame&& before_frame,
|
||||
SetupSampleShader&& setup_sample_shader,
|
||||
DrawSample&& draw_sample,
|
||||
CopyPreviewResult&& copy_preview_result)
|
||||
{
|
||||
auto frames = compute_frames();
|
||||
clear_target();
|
||||
for (auto& frame : frames) {
|
||||
before_frame(frame);
|
||||
setup_sample_shader(frame);
|
||||
draw_sample(frame);
|
||||
}
|
||||
copy_preview_result();
|
||||
}
|
||||
|
||||
template <typename BindPreviewTexture, typename CopyFramebufferToTexture>
|
||||
void copy_legacy_stroke_preview_texture(
|
||||
BindPreviewTexture&& bind_preview_texture,
|
||||
|
||||
Reference in New Issue
Block a user