Blender V5.0
eevee_camera_shared.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
12
13#ifndef GPU_SHADER
14namespace blender::eevee {
15#endif
16
25
26static inline bool is_panoramic(eCameraType type)
27{
28 return type > CAMERA_ORTHO;
29}
30
31struct CameraData {
32 /* View Matrices of the camera, not from any view! */
49 float clip_near;
50 float clip_far;
54 float _pad0;
55 float _pad1;
56 float _pad2;
57
59
60#ifdef __cplusplus
61 /* Small constructor to allow detecting new buffers. */
63#endif
64};
65BLI_STATIC_ASSERT_ALIGN(CameraData, 16)
66
67#ifndef GPU_SHADER
68} // namespace blender::eevee
69#endif
#define BLI_STATIC_ASSERT_ALIGN(st, align)
Definition BLI_assert.h:86
int32_t bool32_t
static bool is_panoramic(eCameraType type)
MatBase< float, 4, 4 > float4x4
VecBase< float, 2 > float2