Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a dependent texture read?

I've been reading papers on computer graphics, and every so often I come across the term "dependent texture read" or "dependent texture fetch" used in the context of querying textures in shader code. What is a dependent texture read, and what is the difference between this and a "normal" texture read?

like image 314
May Oakes Avatar asked Sep 05 '25 13:09

May Oakes


1 Answers

The accepted answer (and the one below it) incorrectly restricts dependent texture reads to using the output of another texture read. That is incorrect.

A dependent texture read is any texture read with coordinates that are not the exact coordinates passed into the fragment shader of a program. Even a swizzle will cause a dependent texture read.

This is taken directly from Apple's OpenGL ES programming guide.

like image 53
benthehutt Avatar answered Sep 09 '25 15:09

benthehutt