From 20f930c8d873282bf1e7fe24540cafdf12c13899 Mon Sep 17 00:00:00 2001 From: Omar Emara Date: Thu, 21 Mar 2024 12:00:30 +0200 Subject: [PATCH] Cleanup: Clarify comment in MemoryBuffer class --- source/blender/compositor/intern/COM_MemoryBuffer.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/blender/compositor/intern/COM_MemoryBuffer.h b/source/blender/compositor/intern/COM_MemoryBuffer.h index 08e9224857a..5dce55136dd 100644 --- a/source/blender/compositor/intern/COM_MemoryBuffer.h +++ b/source/blender/compositor/intern/COM_MemoryBuffer.h @@ -203,8 +203,9 @@ class MemoryBuffer { } /* Equivalent to the GLSL texture() function with bilinear interpolation and extended boundary - * conditions. The coordinates are thus expected to have half-pixels offsets. For float buffers, - * the green and green channels will be zero and the alpha will be one. */ + * conditions. The coordinates are thus expected to have half-pixels offsets. A float4 is always + * returned regardless of the number of channels of the buffer, the remaining channels will be + * initialized with the template float4(0, 0, 0, 1). */ float4 texture_bilinear_extend(float2 coordinates) const { const int2 size = int2(get_width(), get_height());