diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-10-07 14:15:22 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-10-07 14:15:22 +0300 |
commit | 9dec9eee0d38b32ba4254b624c7a27dc22fc4302 (patch) | |
tree | 73adcf69f613510d85919d05478f96e30ec53249 /source/blender/draw/intern/draw_shader_shared.h | |
parent | bae22ac7b48062b94e9061e6bf1a7a756e919ed3 (diff) |
Cleanup: DRW: Rename ViewInfos to ViewMatrices
This makes sense now that the struct only contains matrices.
Diffstat (limited to 'source/blender/draw/intern/draw_shader_shared.h')
-rw-r--r-- | source/blender/draw/intern/draw_shader_shared.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/draw/intern/draw_shader_shared.h b/source/blender/draw/intern/draw_shader_shared.h index bf055daea3d..37899e36d8a 100644 --- a/source/blender/draw/intern/draw_shader_shared.h +++ b/source/blender/draw/intern/draw_shader_shared.h @@ -8,7 +8,7 @@ # include "draw_defines.h" typedef struct ViewCullingData ViewCullingData; -typedef struct ViewInfos ViewInfos; +typedef struct ViewMatrices ViewMatrices; typedef struct ObjectMatrices ObjectMatrices; typedef struct ObjectInfos ObjectInfos; typedef struct ObjectBounds ObjectBounds; @@ -60,14 +60,13 @@ struct ViewCullingData { }; BLI_STATIC_ASSERT_ALIGN(ViewCullingData, 16) -struct ViewInfos { - /* View matrices */ +struct ViewMatrices { float4x4 viewmat; float4x4 viewinv; float4x4 winmat; float4x4 wininv; }; -BLI_STATIC_ASSERT_ALIGN(ViewInfos, 16) +BLI_STATIC_ASSERT_ALIGN(ViewMatrices, 16) /* Do not override old definitions if the shader uses this header but not shader info. */ #ifdef USE_GPU_SHADER_CREATE_INFO |