@@ -85,9 +85,18 @@ pub struct ExternalTextureParams {
85
85
/// to RGBA.
86
86
/// This is ignored when `num_planes` is 1.
87
87
pub yuv_conversion_matrix : [ f32 ; 16 ] ,
88
- /// 3x2 column-major matrix with which to multiply texture coordinates
89
- /// prior to sampling from the external texture.
88
+ /// 3x2 column-major matrix with which to multiply normalized texture
89
+ /// coordinates prior to sampling from the external texture. This may
90
+ /// scale, translate, flip, and rotate in 90-degree increments, but the
91
+ /// result of transforming the rectangle (0,0)..(1,1) must be an
92
+ /// axis-aligned rectangle that falls within the bounds of (0,0)..(1,1).
90
93
pub sample_transform : [ f32 ; 6 ] ,
94
+ /// 3x2 column-major matrix with which to multiply unnormalized texture
95
+ /// coordinates prior to loading from the external texture. This may scale,
96
+ /// translate, flip, and rotate in 90-degree increments, but the result of
97
+ /// transforming the rectangle (0,0)..(texture_size - 1) must be an
98
+ /// axis-aligned rectangle that falls within the bounds of
99
+ /// (0,0)..(texture_size - 1).
91
100
pub load_transform : [ f32 ; 6 ] ,
92
101
/// Size of the external texture. This value should be returned by size
93
102
/// queries in shader code. Note that this may not match the dimensions of
0 commit comments