diff options
author | Martin Peres <[email protected]> | 2015-04-27 19:25:34 +0300 |
---|---|---|
committer | Martin Peres <[email protected]> | 2015-08-20 14:07:46 +0300 |
commit | 58a8689717a5965919934d1b4b44b4eef0a6bf64 (patch) | |
tree | 74c4a0500c67591d410dbacfc0e230ee8b3fc3fc /src/glsl/ir_uniform.h | |
parent | 3d93f65ef2dbecbf615ee8041d92354ae660d71b (diff) |
glsl: add support for the imageSize builtin
The code is heavily inspired from Francisco Jerez's code supporting the
image_load_store extension.
Backends willing to support this builtin should handle
__intrinsic_image_size.
v2: Based on the review of Ilia Mirkin
- Enable the extension for GLES 3.1
- Fix indentation
- Fix the return type (float to int, number of components for CubeImages)
- Add a warning related to GLES 3.1
v3: Based on the review of Francisco Jerez
- Refactor the code to share both add_image_function and _image with the other
image-related functions
v4: Based on Topi Pohjolainen's comments
- Do not add parenthesis for the return value
v5: based on Francisco Jerez's comments:
- Fix a few indent issues
- Reduce the size of a condition by testing the dimension and array properties
instead of enumerating all the formats.
Signed-off-by: Martin Peres <[email protected]>
Reviewed-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'src/glsl/ir_uniform.h')
0 files changed, 0 insertions, 0 deletions