Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/image/image_instance_data.hh
| Show All 15 Lines | |||||
| #include "image_usage.hh" | #include "image_usage.hh" | ||||
| #include "image_wrappers.hh" | #include "image_wrappers.hh" | ||||
| #include "DRW_render.h" | #include "DRW_render.h" | ||||
| /** | /** | ||||
| * \brief max allowed textures to use by the ScreenSpaceDrawingMode. | * \brief max allowed textures to use by the ScreenSpaceDrawingMode. | ||||
| * | * | ||||
| * 4 textures are used to reduce uploading screen space textures when translating the image. | * 1 texture is used to reduce uploading screen space textures when translating the image. | ||||
| */ | */ | ||||
| constexpr int SCREEN_SPACE_DRAWING_MODE_TEXTURE_LEN = 1; | constexpr int SCREEN_SPACE_DRAWING_MODE_TEXTURE_LEN = 1; | ||||
| struct IMAGE_InstanceData { | struct IMAGE_InstanceData { | ||||
| struct Image *image; | struct Image *image; | ||||
| /** Usage data of the previous time, to identify changes that require a full update. */ | /** Usage data of the previous time, to identify changes that require a full update. */ | ||||
| ImageUsage last_usage; | ImageUsage last_usage; | ||||
| ▲ Show 20 Lines • Show All 93 Lines • Show Last 20 Lines | |||||