Helper functions used to convert from a image dimension into a integer representing the
number of components needed for the coordinates vector (1 means scalar instead of vector)
Inject builtins into the declaration
Injects the builtins into declaration that can used either float or doubles
Injects the builtins into declaration that need doubles
Injects the builtins into declaration that donβt need any special variations
Helper function to cast a expression holding a sampled image to a
depth image.
Helper function to generate the image components for texture/image builtins