Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/workbench/workbench_engine.c
| Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | |||||
| void workbench_engine_init(void *ved) | void workbench_engine_init(void *ved) | ||||
| { | { | ||||
| WORKBENCH_Data *vedata = ved; | WORKBENCH_Data *vedata = ved; | ||||
| WORKBENCH_StorageList *stl = vedata->stl; | WORKBENCH_StorageList *stl = vedata->stl; | ||||
| WORKBENCH_TextureList *txl = vedata->txl; | WORKBENCH_TextureList *txl = vedata->txl; | ||||
| workbench_shader_library_ensure(); | workbench_shader_library_ensure(); | ||||
| if (!stl->wpd) { | workbench_private_data_alloc(stl); | ||||
| stl->wpd = MEM_callocN(sizeof(*stl->wpd), __func__); | |||||
| stl->wpd->taa_sample_len_previous = -1; | |||||
| stl->wpd->view_updated = true; | |||||
| } | |||||
| WORKBENCH_PrivateData *wpd = stl->wpd; | WORKBENCH_PrivateData *wpd = stl->wpd; | ||||
| workbench_private_data_init(wpd); | workbench_private_data_init(wpd); | ||||
| workbench_update_world_ubo(wpd); | workbench_update_world_ubo(wpd); | ||||
| if (txl->dummy_image_tx == NULL) { | if (txl->dummy_image_tx == NULL) { | ||||
| const float fpixel[4] = {1.0f, 0.0f, 1.0f, 1.0f}; | const float fpixel[4] = {1.0f, 0.0f, 1.0f, 1.0f}; | ||||
| txl->dummy_image_tx = DRW_texture_create_2d(1, 1, GPU_RGBA8, 0, fpixel); | txl->dummy_image_tx = DRW_texture_create_2d(1, 1, GPU_RGBA8, 0, fpixel); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 595 Lines • Show Last 20 Lines | |||||