Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/integrator/pass_accessor.h
| Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | public: | ||||
| * Is ignored for half4 destination (where number of components is implied to be 4). */ | * Is ignored for half4 destination (where number of components is implied to be 4). */ | ||||
| int num_components = 0; | int num_components = 0; | ||||
| /* Offset in pixels from the beginning of pixels storage. | /* Offset in pixels from the beginning of pixels storage. | ||||
| * Allows to get pixels of render buffer into a partial slice of the destination. */ | * Allows to get pixels of render buffer into a partial slice of the destination. */ | ||||
| int offset = 0; | int offset = 0; | ||||
| /* Number of floats per pixel. When zero is the same as `num_components`. | /* Number of floats per pixel. When zero is the same as `num_components`. | ||||
| * NOTE: Is ignored for half4 destination. */ | * | ||||
| * NOTE: Is ignored for half4 destination, as the half4 pixels are always 4-component | |||||
| * half-floats. */ | |||||
| int pixel_stride = 0; | int pixel_stride = 0; | ||||
| /* Row stride in pixel elements: | |||||
| * - For the float destination stride is a number of floats per row. | |||||
| * - For the half4 destination stride is a number of half4 per row. */ | |||||
| int stride = 0; | |||||
| }; | }; | ||||
| class Source { | class Source { | ||||
| public: | public: | ||||
| Source() = default; | Source() = default; | ||||
| Source(const float *pixels, int num_components); | Source(const float *pixels, int num_components); | ||||
| /* CPU-side pointers. only usable by the `PassAccessorCPU`. */ | /* CPU-side pointers. only usable by the `PassAccessorCPU`. */ | ||||
| ▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines | |||||