New answers tagged

2 votes
Accepted

Why must texture samplers be uniform variables in GLSL?

Why can't I just select the texture unit directly into the shader source You can: ...
user avatar
  • 8,101
3 votes
Accepted

Is there a cost to querying a texture size inside a GLSL shader?

In order for the GPU to work with textures through samplers, the driver needs to know the textures dimensions, and a good implementation will be able to access those dimension much more easily/quickly ...
user avatar
  • 2,115
1 vote
Accepted

Having trouble understanding advection from GPU gems fluid dynamics example

The cells with zero velocity are boundaries (walls) of the simulation domain. You will need to handle the boundary conditions explicitly. The advection itself cannot do much for you. From the context ...
user avatar

Top 50 recent answers are included