Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/workbench/workbench_engine.c
| Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | |||||
| #define WORKBENCH_ENGINE "BLENDER_WORKBENCH" | #define WORKBENCH_ENGINE "BLENDER_WORKBENCH" | ||||
| 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_private_data_alloc(stl); | workbench_private_data_alloc(stl); | ||||
| 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 597 Lines • Show Last 20 Lines | |||||