2 ms·
GPUs don't know whether the texture even has alpha data. All the GPU knows is that there is an image with 4 channels (and the data type of those channels), but
by wongarsu 11y ago
GPUs don't know whether the texture even has alpha data. All the GPU knows is that there is an image with 4 channels (and the data type of those channels), but it's the shader that gives meaning to those channels. Having three colour channels and one alpha channel is a common case, but you can also use the four channels for entirely different purposes, like 4 grayscale images, or encoding 4d coordinates as "image".