diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-10-16 15:59:18 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-10-30 17:15:56 +0300 |
commit | f3059723771b90337b126a87a58b1ada981a21b1 (patch) | |
tree | 5443b7fe777d60f47ad1ca41a8dcd8e43977cffc /intern/opensubdiv/opensubdiv_capi_type.h | |
parent | 05ee67a7c82b1c35add60cbf719f370b28538ac9 (diff) |
OpenSubdiv: Initial implementation of batched evaluation
The idea is to give multiple coordinates to evaluator and evaluate them
all at once, avoiding any possible overhead.
Diffstat (limited to 'intern/opensubdiv/opensubdiv_capi_type.h')
-rw-r--r-- | intern/opensubdiv/opensubdiv_capi_type.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/intern/opensubdiv/opensubdiv_capi_type.h b/intern/opensubdiv/opensubdiv_capi_type.h index 35eeb71dede..e759c5f43b0 100644 --- a/intern/opensubdiv/opensubdiv_capi_type.h +++ b/intern/opensubdiv/opensubdiv_capi_type.h @@ -58,6 +58,13 @@ typedef enum OpenSubdiv_FVarLinearInterpolation { OSD_FVAR_LINEAR_INTERPOLATION_ALL, } OpenSubdiv_FVarLinearInterpolation; +typedef struct OpenSubdiv_PatchCoord { + int ptex_face; + + // Parametric location on patch. + float u, v; +} OpenSubdiv_PatchCoord; + #ifdef __cplusplus } #endif |