Skip to content

Commit eaaa062

Browse files
blakdragan7csmartdaltonblakdragan7luigi-rosso
committed
feat(Image sampler filters) Adds Image filter options for rendering images (#9309) 930facea3f
* added filter type to draw batch * c++ implementation of ImageSamplerOptions * image sampler options now pushes correct for RiveRenderPaint * wip * OpenGL uses correct sample options * now only one filter option that accounts for mip map * d3d now uses sampler states options * better way to get the filter option * added mirror and inverse mirror options * started using helper functions for retreiving sampler optiojnhs * workaround for vulkn semaphore issue * wip * added filter type to draw batch * c++ implementation of ImageSamplerOptions * image sampler options now pushes correct for RiveRenderPaint * wip * OpenGL uses correct sample options * now only one filter option that accounts for mip map * d3d now uses sampler states options * better way to get the filter option * added mirror and inverse mirror options * started using helper functions for retreiving sampler optiojnhs * workaround for vulkn semaphore issue * wip * undo deleting empty descriptor * properly packed image options * removed uneeded checks * more unit tests * unreal image_filter_options integration, gm for image filters * properly implement new draw functions for cgrender * finish mege conflicts * merge vulkan sampler options * cherry-picked vulkan imp into branch * initial metal * clang-format * d3d12 image filter options * fixed d3d * clang-format * fixed mip filter for metal * made every filter option act as similiar as possible * addressed pr changes * fixed tests * empty commit to fix github * fix: webgl renderers * started addressing PR comments * metal change for pr * more pr stuff * final PR address * shader update per PR request * rhi updat e * added gm requested in pr * made d3d12 work with more then 2000 sampler changes per flush * pr comments Co-authored-by: Chris Dalton <chris@rive.app> Co-authored-by: Jonathon Copeland <jcopela4@gmail.com> Co-authored-by: Luigi Rosso <luigi.rosso@gmail.com>
1 parent 898f382 commit eaaa062

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.rive_head

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6a3aa2cbfdd1517b5667c74fed781ea8d68a0a0f
1+
930facea3f5481383d740439212b0ba7f1df5c0f

rive-rs/src/ffi.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ extern "C"
401401
rustPaint->paint());
402402
}
403403
void drawImage(const RenderImage* image,
404+
const rive::ImageSampler options,
404405
BlendMode blend_mode,
405406
float opacity) override
406407
{
@@ -411,6 +412,7 @@ extern "C"
411412
opacity);
412413
}
413414
void drawImageMesh(const RenderImage* image,
415+
const rive::ImageSampler options,
414416
rcp<RenderBuffer> vertices_f32,
415417
rcp<RenderBuffer> uvCoords_f32,
416418
rcp<RenderBuffer> indices_u16,

submodules/rive-cpp

0 commit comments

Comments
 (0)