Place a white shape on black and ask it to fade halfway. The request sounds visual and simple. The GPU, however, receives numbers, and halfway between two stored numbers need not be halfway between the quantities those numbers represent. An sRGB value is encoded. Before a calculation intended to combine light can use it correctly, the renderer must know what the value means. A dark fringe or an unexpectedly heavy transition can begin in this small act of interpretation, long before the finished picture reaches anyone’s eyes.
The difference can be seen without photographing a screen. Consider one normalized color component, where encoded black is 0 and encoded white is 1. The numerical midpoint is 0.5. Under the sRGB decoding relationship, that midpoint corresponds to approximately 0.214 in the linear representation, not 0.5. Conversely, linear 0.5 is encoded at approximately 0.735. The values are mathematical results of the transfer relationship, not measurements of a display. They explain why the arithmetic’s location matters: averaging encoded endpoints and averaging their linear meanings produce different numbers when the result is encoded for presentation.
The curve lives inside the value
The Khronos sRGB texture specification describes conversion from stored sRGB color components into linear components. For a normalized encoded component c at or below 0.04045, the linear value is c/12.92. Above that point, the relationship is ((c + 0.055)/1.055) raised to the power 2.4. This is a piecewise definition, not exactly the instruction to square every component or to apply one universal gamma exponent. The small linear portion near black is part of the relationship and should remain visible in a technically accurate account.
The curve bends away from the diagonal. That bend is what the accompanying figure depicts. The diagonal is a reference for a hypothetical identical encoded and linear value; the curved line is the stated sRGB decoding relationship. The plotted points at encoded 0.5 and linear 0.5 illustrate different questions. No axis is a measured device luminance, and no result is offered as a calibration of a particular screen. The diagram concerns a mathematical representation used in rendering. That narrow subject is enough to explain a substantial visible difference in how a renderer computes a mixture.

Now imagine mixing black and white with equal weights in linear space. Their linear components are 0 and 1, so the mixture is 0.5. Encoding that result gives approximately 0.735. If the program instead averages the encoded endpoints and then treats 0.5 as the encoded final result, its represented linear value is about 0.214. The two operations differ because a nonlinear transformation does not generally commute with averaging. This is the whole arithmetic of the example. It does not require a claim about which mixture a particular observer will call perceptually halfway under every viewing condition.
The word brightness is therefore too generous if left unexplained. A renderer may use linear color values in a specified working representation; perception involves more than a single component and a transfer curve. Here, half means half of the represented linear quantity in the explicitly chosen example. It does not guarantee a universal subjective judgment or an absolute physical luminance in a room. Preserving this distinction keeps a useful graphics calculation from turning into an unsupported assertion about every image, display, and viewer. The GPU calculation has a defined domain, which is precisely why its result can be checked.
Sampling is already a calculation
A texture sample can combine nearby texels through filtering. If the texels represent encoded color, combining the encoded values directly differs from decoding the relevant color values before the intended linear combination. The API’s defined sRGB format behavior exists to handle that interpretation within the supported texture path. The program must choose the correct format and use the applicable rules. A file containing color-like bytes does not automatically make any arbitrary numeric texture an sRGB texture. The representation selected by the application tells the GPU how to interpret those bytes during operations that support the conversion.
The Vulkan format documentation makes format semantics part of the graphics interface. An sRGB format is not merely a naming preference for an otherwise identical image. The format affects how supported operations interpret color components. A renderer therefore needs a consistent account of its stored data, sampled values, intermediate calculations, and final encoding. This is not a demand that every image in a project be labeled sRGB. It is a demand that the label agree with what the values actually represent. A correct label attached to the wrong content creates a different error from a correct conversion.
Many textures are not color photographs at all. A normal map, a roughness field, a mask, or another numerical input may store quantities for which the color transfer relationship is inappropriate. Automatically decoding such a value as if it were an encoded light component changes the data used by the shader. A number intended to be 0.5 can become approximately 0.214 under the transformation, which is a substantial change in an input parameter. Whether a particular channel requires a color interpretation is a question about its meaning. The image’s visual appearance in a file viewer cannot settle that meaning by itself.
Alpha adds another kind of number to a familiar set of channels. A color texture can contain RGB components with an sRGB interpretation while its alpha component follows its own specified treatment. Alpha often participates in coverage or opacity-related operations rather than serving as another encoded color component. Applying the RGB transfer curve indiscriminately to every channel can therefore alter the intended compositing relationship. The exact API format behavior matters. An RGBA container does not establish that all four components represent the same physical or mathematical quantity, even though they sit side by side in memory and in editing interfaces.
Compositing has a further convention to preserve: straight and premultiplied alpha express different relationships between stored RGB and alpha. Converting color representation does not automatically repair a mismatch between those conventions. A renderer can get its transfer handling right and still combine values according to the wrong alpha interpretation. Dark or bright edges then have more than one plausible explanation. The useful investigation asks which operation produced the edge and which representation it expected. Calling every fringe a gamma problem can hide an independent error in how color and alpha were associated before compositing.
A blending operation intended to combine represented light needs an appropriate linear context, followed by the correct encoding for its destination when required. The graphics API and attachment formats determine the supported behavior at that boundary. A shader that manually encodes values while the output path also encodes them can apply the transformation twice. A path that assumes another stage will perform the conversion can omit it instead. Both errors can occur in code with individually familiar operations. The problem is the composition of operations, not the mere presence of a function with gamma in its name.
Intermediate images make the composition harder to see. A rendering pipeline can store one pass, sample it in another, and finally write a presentation target. If a stored intermediate is linear, reading it as encoded color introduces an unwanted transformation. If it is encoded, treating it as linear introduces a different one. The values need a continuing meaning across passes. A screenshot of the final image cannot disclose every intermediate format choice, which is why inspecting the relevant resource definitions can be more informative than adjusting the final shader until one scene looks acceptable by eye.
Artistic operations complicate any blanket rule to do all arithmetic in one representation. A physically motivated mixture of light and an effect designed to manipulate encoded values are different operations with different intended outcomes. The correct question is what the effect is supposed to compute. A deliberate stylization can use a representation as part of its design, provided the pipeline still knows how to interpret the result. This does not contradict the black-and-white example. That example explicitly asked for an equal linear mixture. Changing the desired operation changes the criterion by which the output should be judged.
The distinction also survives higher numerical precision. Storing more bits can reduce quantization error within a representation, but does not turn a nonlinear average into the intended linear average. A floating-point value can still contain an encoded component, and an integer texture can still be interpreted through a documented conversion. Precision and meaning are separate decisions. Increasing one while leaving the other wrong can produce a more precise version of the wrong calculation. This is why a renderer’s resource formats and shader assumptions deserve to be read together rather than ranked by bit depth alone.
Another calculation makes the placement of a fade explicit. Start with encoded component 0.5, whose decoded value is approximately 0.214. Multiplying the encoded number by one half gives 0.25, which decodes to approximately 0.0509. Multiplying the decoded linear value by one half instead gives approximately 0.107, which encodes to approximately 0.361. The same multiplication symbol therefore describes different operations depending on the representation in which it is applied. These are further formula-derived values, not sampled pixels from a real scene. A shader implementing a specified linear fade needs the second relationship; an effect intentionally manipulating encoded values can deliberately choose another meaning.
The example also explains why applying an adjustment until one screenshot looks right is a weak substitute for specifying the operation. A change can compensate accidentally for an earlier conversion error in one image while producing a different error in another pass. Defining the representation and intended arithmetic gives the code a checkable target. The test can then compare computed values with the mathematical relationship, rather than rely entirely on a visual preference whose causes remain mixed.
The conceptual cover suggests neighboring pools of light rather than a literal GPU. Its purpose is to make a visual question worth asking; the transfer plot supplies the exact mathematical relationship. Neither image claims a captured scene, a display test, or a vendor-specific performance advantage. The GPU’s role is to execute the chosen operations with the semantics provided by the graphics interface. Whether a particular implementation is faster at a pass would require a separate performance experiment. Correct color interpretation and fast execution are both valuable, but one does not establish the other.
Return to the fading white shape. Halfway is now a request with enough detail to be implemented: choose the relevant color representation, perform the intended combination there, and preserve the meaning when storing or presenting the result. The number 0.5 has not become wrong. It has acquired a question that must accompany it. Is it an encoded component, a linear mixture, an alpha value, or another parameter? A renderer becomes more reliable when those meanings remain distinct. The visible difference begins with a quiet fact about arithmetic: the middle of the stored numbers is not necessarily the middle of the light they describe.
Sources checked on October 22, 2026. Numerical values come from the stated transfer formula; no monitor, image-quality comparison, or GPU benchmark was measured.



