Blender V5.0
gpu_shader_cxx_matrix.hh File Reference

Go to the source code of this file.

Classes

struct  MatBase< C, R >
struct  MatOp< C, R >
struct  MatBase< 2, R >
struct  MatBase< 3, R >
struct  MatBase< 4, R >

Macros

#define RET

Matrix Types

#define RESHAPE(mat_to, mat_from, ...)
using float2x2 = MatBase<2, 2>
using float2x3 = MatBase<2, 3>
using float2x4 = MatBase<2, 4>
using float3x2 = MatBase<3, 2>
using float3x3 = MatBase<3, 3>
using float3x4 = MatBase<3, 4>
using float4x2 = MatBase<4, 2>
using float4x3 = MatBase<4, 3>
using float4x4 = MatBase<4, 4>

Macro Definition Documentation

◆ RESHAPE

#define RESHAPE ( mat_to,
mat_from,
... )
Value:
mat_to to_##mat_to(mat_from m) \
{ \
return mat_to(__VA_ARGS__); \
}

Definition at line 97 of file gpu_shader_cxx_matrix.hh.

◆ RET

#define RET
Value:
{ \
return {}; \
}

C++ stubs for shading language.

IMPORTANT: Please ask the module team if you need some feature that are not listed in this file.

Definition at line 16 of file gpu_shader_cxx_matrix.hh.

Referenced by MatOp< C, R >::operator*, MatOp< C, R >::operator*(), MatOp< C, R >::operator*, MatOp< C, R >::operator+(), and MatOp< C, R >::operator-().

Typedef Documentation

◆ float2x2

using float2x2 = MatBase<2, 2>

Definition at line 86 of file gpu_shader_cxx_matrix.hh.

◆ float2x3

using float2x3 = MatBase<2, 3>

Definition at line 87 of file gpu_shader_cxx_matrix.hh.

◆ float2x4

using float2x4 = MatBase<2, 4>

Definition at line 88 of file gpu_shader_cxx_matrix.hh.

◆ float3x2

using float3x2 = MatBase<3, 2>

Definition at line 89 of file gpu_shader_cxx_matrix.hh.

◆ float3x3

using float3x3 = MatBase<3, 3>

Definition at line 90 of file gpu_shader_cxx_matrix.hh.

◆ float3x4

using float3x4 = MatBase<3, 4>

Definition at line 91 of file gpu_shader_cxx_matrix.hh.

◆ float4x2

using float4x2 = MatBase<4, 2>

Definition at line 92 of file gpu_shader_cxx_matrix.hh.

◆ float4x3

using float4x3 = MatBase<4, 3>

Definition at line 93 of file gpu_shader_cxx_matrix.hh.

◆ float4x4

using float4x4 = MatBase<4, 4>

Definition at line 94 of file gpu_shader_cxx_matrix.hh.