Skip to content

Commit bfb16ea

Browse files
committed
Adding SkV2 version of setUniform
Part of kyamagu#320
1 parent 966583d commit bfb16ea

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/skia/RuntimeEffect.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,12 @@ runtime_effect_builder
205205
v = uniform;
206206
},
207207
py::arg("name"), py::arg("uniform"))
208+
.def("setUniform",
209+
[] (SkRuntimeEffectBuilder& builder, std::string_view name, const SkV2& uniform) {
210+
auto v = builder.uniform(name);
211+
v = uniform;
212+
},
213+
py::arg("name"), py::arg("uniform"))
208214
.def("setUniform",
209215
[] (SkRuntimeEffectBuilder& builder, std::string_view name, const SkV3& uniform) {
210216
auto v = builder.uniform(name);

0 commit comments

Comments
 (0)