diff options
author | Marek Olšák <[email protected]> | 2012-01-02 02:59:51 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-01-05 18:29:11 +0100 |
commit | 1ba3240b281fcbbf03372a6e2db68292cb8a8907 (patch) | |
tree | a57311a2af64840a44734c03278db57cf9bbdd90 /src/gallium/auxiliary/target-helpers | |
parent | 0950086376b1c8b7fb89eda81ed7f2f06dee58bc (diff) |
u_format: implement fetch_rgba_uint and fetch_rgba_sint for integer formats
Fetching int as float and vice versa is not allowed.
Fetching unsigned int as signed int and vice versa is not allowed either.
Doing conversions like that isn't allowed for samplers in OpenGL.
The three hooks could be consolidated into one fetch hook, which would fetch
uint as uint32, sint as sint32, and everything else as float. The receiving
parameter would be void*. This would be useful for implementing vertex fetches
for shader model 4.0, which has untyped registers.
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/target-helpers')
0 files changed, 0 insertions, 0 deletions