aboutsummaryrefslogtreecommitdiff
path: root/evc/src/refsampler.rs
diff options
context:
space:
mode:
Diffstat (limited to 'evc/src/refsampler.rs')
-rw-r--r--evc/src/refsampler.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/evc/src/refsampler.rs b/evc/src/refsampler.rs
index db0ab6f..b27ceae 100644
--- a/evc/src/refsampler.rs
+++ b/evc/src/refsampler.rs
@@ -13,6 +13,7 @@ pub struct Sampler<'a> {
}
impl Sampler<'_> {
+ #[inline]
pub fn sample(&self, p: Vec2<f32>) -> Pixel {
self.frame
.sample(self.translation + self.transform.transform(p))