Blender Git Loki

Git Commits -> Revision 4d00e95

Revision 4d00e95 by Stefan Werner (master)
July 5, 2018, 11:53 (GMT)
Cycles: Adding native support for UINT16 textures.

Textures in 16 bit integer format are sometimes used for displacement, bump and normal maps and can be exported by tools like Substance Painter. Without this patch, Cycles would promote those textures to single precision floating point, causing them to take up twice as much memory as needed.

Reviewers: #cycles, brecht, sergey

Reviewed By: #cycles, brecht, sergey

Subscribers: sergey, dingto, #cycles

Tags: #cycles

Differential Revision: https://developer.blender.org/D3523

Commit Details:

Full Hash: 4d00e95ee3ed91f86262bb218f1c5df901da724c
Parent Commit: cd17b32
Lines Changed: +198, -18

1 Added Path:

/intern/cycles/util/util_types_ushort4.h (+36, -0) (View)

12 Modified Paths:

/intern/cycles/device/device_cuda.cpp (+1, -0) (Diff)
/intern/cycles/device/device_memory.h (+12, -0) (Diff)
/intern/cycles/kernel/CMakeLists.txt (+1, -0) (Diff)
/intern/cycles/kernel/kernels/cpu/kernel_cpu_image.h (+28, -4) (Diff)
/intern/cycles/kernel/kernels/cuda/kernel_cuda_image.h (+5, -3) (Diff)
/intern/cycles/kernel/kernels/opencl/kernel_opencl_image.h (+12, -0) (Diff)
/intern/cycles/render/image.cpp (+72, -10) (Diff)
/intern/cycles/util/CMakeLists.txt (+1, -0) (Diff)
/intern/cycles/util/util_half.h (+10, -1) (Diff)
/intern/cycles/util/util_image_impl.h (+16, -0) (Diff)
/intern/cycles/util/util_texture.h (+2, -0) (Diff)
/intern/cycles/util/util_types.h (+2, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021