Cleanup: Clarify comment in MemoryBuffer class

This commit is contained in:
Omar Emara
2024-03-21 12:00:30 +02:00
parent bc74bbef0b
commit 20f930c8d8

View File

@@ -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());