We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f26512 commit a23f8bbCopy full SHA for a23f8bb
1 file changed
crates/processing_pyo3/src/graphics.rs
@@ -139,7 +139,7 @@ impl PyBlendMode {
139
/// - `filter` — `Sampler.LINEAR` (smooth) or `Sampler.NEAREST` (pixelated).
140
/// - `wrap` — `Sampler.CLAMP` (default), `Sampler.REPEAT`, or `Sampler.MIRROR`.
141
/// Use `wrap_x`/`wrap_y` to set each axis independently.
142
-#[pyclass]
+#[pyclass(from_py_object)]
143
#[derive(Clone)]
144
pub struct Sampler {
145
pub(crate) filter: u8,
0 commit comments