Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/workbench/workbench_private.h
| Show First 20 Lines • Show All 158 Lines • ▼ Show 20 Lines | typedef struct WORKBENCH_PassList { | ||||
| struct DRWPass *dof_dilate_v_ps; | struct DRWPass *dof_dilate_v_ps; | ||||
| struct DRWPass *dof_blur1_ps; | struct DRWPass *dof_blur1_ps; | ||||
| struct DRWPass *dof_blur2_ps; | struct DRWPass *dof_blur2_ps; | ||||
| struct DRWPass *dof_resolve_ps; | struct DRWPass *dof_resolve_ps; | ||||
| struct DRWPass *volume_ps; | struct DRWPass *volume_ps; | ||||
| struct DRWPass *aa_accum_ps; | struct DRWPass *aa_accum_ps; | ||||
| struct DRWPass *aa_accum_replace_ps; | |||||
| struct DRWPass *aa_edge_ps; | struct DRWPass *aa_edge_ps; | ||||
| struct DRWPass *aa_weight_ps; | struct DRWPass *aa_weight_ps; | ||||
| struct DRWPass *aa_resolve_ps; | struct DRWPass *aa_resolve_ps; | ||||
| } WORKBENCH_PassList; | } WORKBENCH_PassList; | ||||
| typedef struct WORKBENCH_Data { | typedef struct WORKBENCH_Data { | ||||
| void *engine_type; | void *engine_type; | ||||
| WORKBENCH_FramebufferList *fbl; | WORKBENCH_FramebufferList *fbl; | ||||
| ▲ Show 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | typedef struct WORKBENCH_PrivateData { | ||||
| /* Temporal Antialiasing */ | /* Temporal Antialiasing */ | ||||
| /** Total number of samples to after which TAA stops accumulating samples. */ | /** Total number of samples to after which TAA stops accumulating samples. */ | ||||
| int taa_sample_len; | int taa_sample_len; | ||||
| /** Total number of samples of the previous TAA. When changed TAA will be reset. */ | /** Total number of samples of the previous TAA. When changed TAA will be reset. */ | ||||
| int taa_sample_len_previous; | int taa_sample_len_previous; | ||||
| /** Current TAA sample index in [0..taa_sample_len[ range. */ | /** Current TAA sample index in [0..taa_sample_len[ range. */ | ||||
| int taa_sample; | int taa_sample; | ||||
| /** Inverse of taa_sample to divide the accumulation buffer. */ | /** Weight accumulated. */ | ||||
| float taa_sample_inv; | float taa_weight_accum; | ||||
| /** Samples weight for this iteration. */ | |||||
| float taa_weights[9]; | |||||
| /** Sum of taa_weights. */ | |||||
| float taa_weights_sum; | |||||
| /** If the view has been updated and TAA needs to be reset. */ | /** If the view has been updated and TAA needs to be reset. */ | ||||
| bool view_updated; | bool view_updated; | ||||
| /** True if the history buffer contains relevant data and false if it could contain garbage. */ | /** True if the history buffer contains relevant data and false if it could contain garbage. */ | ||||
| bool valid_history; | bool valid_history; | ||||
| /** View */ | /** View */ | ||||
| struct DRWView *view; | struct DRWView *view; | ||||
| /** Last projection matrix to see if view is still valid. */ | /** Last projection matrix to see if view is still valid. */ | ||||
| float last_mat[4][4]; | float last_mat[4][4]; | ||||
| ▲ Show 20 Lines • Show All 248 Lines • Show Last 20 Lines | |||||