Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/integrator/path_trace_display.h
| Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | public: | ||||
| * `update_begin()`. | * `update_begin()`. | ||||
| * | * | ||||
| * Most portable implementation, which must be supported by all platforms. Might not be the most | * Most portable implementation, which must be supported by all platforms. Might not be the most | ||||
| * efficient one. | * efficient one. | ||||
| */ | */ | ||||
| /* Copy buffer of rendered pixels of a given size into a given position of the texture. | /* Copy buffer of rendered pixels of a given size into a given position of the texture. | ||||
| * | * | ||||
| * This function does not acquire a lock. The reason for this is is to allow use of this function | * This function does not acquire a lock. The reason for this is to allow use of this function | ||||
| * for partial updates from different devices. In this case the caller will acquire the lock | * for partial updates from different devices. In this case the caller will acquire the lock | ||||
| * once, update all the slices and release | * once, update all the slices and release | ||||
| * the lock once. This will ensure that draw() will never use partially updated texture. */ | * the lock once. This will ensure that draw() will never use partially updated texture. */ | ||||
| void copy_pixels_to_texture( | void copy_pixels_to_texture( | ||||
| const half4 *rgba_pixels, int texture_x, int texture_y, int pixels_width, int pixels_height); | const half4 *rgba_pixels, int texture_x, int texture_y, int pixels_width, int pixels_height); | ||||
| /* -------------------------------------------------------------------- | /* -------------------------------------------------------------------- | ||||
| * Texture buffer mapping. | * Texture buffer mapping. | ||||
| ▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines | |||||