Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2019-10-16 15:59:18 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-10-30 17:15:56 +0300
commitf3059723771b90337b126a87a58b1ada981a21b1 (patch)
tree5443b7fe777d60f47ad1ca41a8dcd8e43977cffc /intern/opensubdiv/opensubdiv_capi_type.h
parent05ee67a7c82b1c35add60cbf719f370b28538ac9 (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.h7
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