diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-04-20 13:47:06 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-04-20 14:32:36 +0300 |
commit | 7cbb8f20a4b479380dac1d2a2f7c7f85ede408be (patch) | |
tree | 3c5b5a91f2cdc2eb285cfa41886053366337ff11 /source/blender/makesdna/DNA_userdef_types.h | |
parent | ed0c9654ddfdcbe19d8094d4b4a43f0f06d9ee5c (diff) |
GPU: automatically draw images with GLSL shader depending on resolution
This adds a new "Automatic" image display method which uses GLSL shaders for
most images. It only does CPU side color management for higher res images
where sending big float buffers to the GPU is likely to be a bottleneck or
cause memory usage problem.
Automatic is the default now, previously it was 2D Texture.
Diffstat (limited to 'source/blender/makesdna/DNA_userdef_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_userdef_types.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_userdef_types.h b/source/blender/makesdna/DNA_userdef_types.h index c831c14eeaf..60ca9e097a8 100644 --- a/source/blender/makesdna/DNA_userdef_types.h +++ b/source/blender/makesdna/DNA_userdef_types.h @@ -1103,10 +1103,9 @@ typedef enum eMultiSample_Type { /** #UserDef.image_draw_method */ typedef enum eImageDrawMethod { - /* IMAGE_DRAW_METHOD_AUTO = 0, */ /* Currently unused */ + IMAGE_DRAW_METHOD_AUTO = 0, IMAGE_DRAW_METHOD_GLSL = 1, IMAGE_DRAW_METHOD_2DTEXTURE = 2, - IMAGE_DRAW_METHOD_DRAWPIXELS = 3, } eImageDrawMethod; /** #UserDef.virtual_pixel */ |