Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/buffers.h
| Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | public: | ||||
| /* If only some light path types should be denoised, an additional pass is needed. */ | /* If only some light path types should be denoised, an additional pass is needed. */ | ||||
| bool denoising_clean_pass; | bool denoising_clean_pass; | ||||
| /* functions */ | /* functions */ | ||||
| BufferParams(); | BufferParams(); | ||||
| void get_offset_stride(int& offset, int& stride); | void get_offset_stride(int& offset, int& stride); | ||||
| bool modified(const BufferParams& params); | bool modified(const BufferParams& params); | ||||
| void add_pass(PassType type); | |||||
| int get_passes_size(); | int get_passes_size(); | ||||
| int get_denoising_offset(); | int get_denoising_offset(); | ||||
| }; | }; | ||||
| /* Render Buffers */ | /* Render Buffers */ | ||||
| class RenderBuffers { | class RenderBuffers { | ||||
| public: | public: | ||||
| Show All 9 Lines | public: | ||||
| ~RenderBuffers(); | ~RenderBuffers(); | ||||
| void reset(BufferParams& params); | void reset(BufferParams& params); | ||||
| void zero(); | void zero(); | ||||
| bool copy_from_device(); | bool copy_from_device(); | ||||
| bool get_pass_rect(PassType type, float exposure, int sample, int components, float *pixels); | bool get_pass_rect(PassType type, float exposure, int sample, int components, float *pixels); | ||||
| bool get_denoising_pass_rect(int offset, float exposure, int sample, int components, float *pixels); | bool get_denoising_pass_rect(int offset, float exposure, int sample, int components, float *pixels); | ||||
| bool set_pass_rect(PassType type, int components, float *pixels); | |||||
| }; | }; | ||||
| /* Display Buffer | /* Display Buffer | ||||
| * | * | ||||
| * The buffer used for drawing during render, filled by converting the render | * The buffer used for drawing during render, filled by converting the render | ||||
| * buffers to byte of half float storage */ | * buffers to byte of half float storage */ | ||||
| class DisplayBuffer { | class DisplayBuffer { | ||||
| Show All 22 Lines | public: | ||||
| bool draw_ready(); | bool draw_ready(); | ||||
| }; | }; | ||||
| /* Render Tile | /* Render Tile | ||||
| * Rendering task on a buffer */ | * Rendering task on a buffer */ | ||||
| class RenderTile { | class RenderTile { | ||||
| public: | public: | ||||
| typedef enum { PATH_TRACE, DENOISE } Task; | typedef enum { PATH_TRACE, BAKE, DENOISE } Task; | ||||
| Task task; | Task task; | ||||
| int x, y, w, h; | int x, y, w, h; | ||||
| int start_sample; | int start_sample; | ||||
| int num_samples; | int num_samples; | ||||
| int sample; | int sample; | ||||
| int resolution; | int resolution; | ||||
| int offset; | int offset; | ||||
| Show All 14 Lines | |||||