diff --git a/source/blender/imbuf/IMB_rasterizer.hh b/source/blender/imbuf/IMB_rasterizer.hh index a137631ef9f..9da1fb24eda 100644 --- a/source/blender/imbuf/IMB_rasterizer.hh +++ b/source/blender/imbuf/IMB_rasterizer.hh @@ -93,10 +93,11 @@ template< typename Data> class VertexOutInterface { public: - using Self = VertexOutInterface; + using DataType = Data; + using Self = VertexOutInterface; /** Coordinate of a vertex inside the image buffer. (0..image_buffer.x, 0..image_buffer.y). */ float2 coord; - Data data; + DataType data; Self &operator+=(const Self &other) { @@ -243,8 +244,10 @@ class Rasterizer { using RasterlineType = Rasterline; using VertexInputType = typename VertexShader::VertexInputType; using VertexOutputType = typename VertexShader::VertexOutputType; + using InterfaceData = typename VertexShader::VertexOutputType::DataType; using FragmentInputType = typename FragmentShader::FragmentInputType; using FragmentOutputType = typename FragmentShader::FragmentOutputType; + static_assert(std::is_same_v); private: VertexShader vertex_shader_; ~