Thin Windows entry, preview shell, and platform legacy state
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "pch.h"
|
||||
|
||||
#include "legacy_node_stroke_preview_sample_services.h"
|
||||
#include "legacy_node_stroke_preview_runtime_services.h"
|
||||
|
||||
namespace pp::panopainter {
|
||||
|
||||
@@ -57,4 +58,41 @@ glm::vec4 execute_legacy_node_stroke_preview_sample_pass(
|
||||
return result.dirty_bounds;
|
||||
}
|
||||
|
||||
glm::vec4 execute_legacy_node_stroke_preview_sample_pass(
|
||||
RTT& preview_rtt,
|
||||
std::array<vertex_t, 4>& vertices,
|
||||
DynamicShape& brush_shape,
|
||||
Texture2D& blend_tex,
|
||||
bool copy_stroke_destination)
|
||||
{
|
||||
return execute_legacy_node_stroke_preview_sample_pass(
|
||||
LegacyNodeStrokePreviewSamplePassRequest {
|
||||
.target_size = { static_cast<float>(preview_rtt.getWidth()), static_cast<float>(preview_rtt.getHeight()) },
|
||||
.vertices = vertices,
|
||||
.brush_shape = brush_shape,
|
||||
.copy_stroke_destination = copy_stroke_destination,
|
||||
.bind_destination_texture = [&] {
|
||||
bind_legacy_node_stroke_preview_destination_texture(blend_tex);
|
||||
},
|
||||
.copy_framebuffer_to_destination_texture = [](
|
||||
int src_x,
|
||||
int src_y,
|
||||
int dst_x,
|
||||
int dst_y,
|
||||
int width,
|
||||
int height) {
|
||||
copy_legacy_node_stroke_preview_destination_texture_region(
|
||||
src_x,
|
||||
src_y,
|
||||
dst_x,
|
||||
dst_y,
|
||||
width,
|
||||
height);
|
||||
},
|
||||
.unbind_destination_texture = [&] {
|
||||
unbind_legacy_node_stroke_preview_destination_texture(blend_tex);
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
} // namespace pp::panopainter
|
||||
|
||||
Reference in New Issue
Block a user