Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8243158: Lanai - Interpolation constants should be mapped from Affine…
…TransformOp
  • Loading branch information
aghaisas committed Apr 20, 2020
1 parent 79f176b commit d991baed46d6e1fe7e0813a96cedd1cca9912574
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/java.desktop/macosx/native/libawt_lwawt/awt/common.h
@@ -65,8 +65,10 @@ struct TxtVertex {
float txtpos[2];
};

#define INTERPOLATION_NEAREST_NEIGHBOR 0
#define INTERPOLATION_BILINEAR 1
// These values are mapped from AffineTransformOp
#define INTERPOLATION_NEAREST_NEIGHBOR 1
#define INTERPOLATION_BILINEAR 2
// #define INTERPOLATION_BICUBIC 3
// NOTE: Metal samplers doesn't supports bicubic interpolation
// see table 2.7 from https://developer.apple.com/metal/Metal-Shading-Language-Specification.pdf
// (probably we need to implement separate fragment shader with bicubic interpolation)

0 comments on commit d991bae

Please sign in to comment.