diff options
author | Ethan-Hall <Ethan1080> | 2022-03-23 17:45:32 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-03-23 22:06:12 +0300 |
commit | 4e56e738a8f35228873d6e84d9e9f8b0e7a74a59 (patch) | |
tree | 1cf9e7c59aa6cd2ad55ba953df0a6ef323527ab0 /intern/cycles/util/types_float4.h | |
parent | d67f9820b8f8376084adf5ad964c580c0944027f (diff) |
Cycles: optimize CPU texture sampler interpolation
Use templates to optimize the CPU texture sampler to interpolate using
float for single component datatypes instead of using float4 for all types.
Differential Revision: https://developer.blender.org/D14424
Diffstat (limited to 'intern/cycles/util/types_float4.h')
-rw-r--r-- | intern/cycles/util/types_float4.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/util/types_float4.h b/intern/cycles/util/types_float4.h index 68ba787dac0..0e84dfa3d64 100644 --- a/intern/cycles/util/types_float4.h +++ b/intern/cycles/util/types_float4.h @@ -45,6 +45,7 @@ ccl_device_inline float4 make_float4(const int4 &i); ccl_device_inline void print_float4(const char *label, const float4 &a); #endif /* __KERNEL_GPU__ */ +ccl_device_inline float4 make_float4(float f); CCL_NAMESPACE_END #endif /* __UTIL_TYPES_FLOAT4_H__ */ |