diff options
author | Brian Paul <[email protected]> | 2010-03-05 16:50:48 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-03-05 16:50:48 -0700 |
commit | 7f4b5c5387a3a8e3c5f31f0badc943c43857683a (patch) | |
tree | e872e438efef31aa0c8732a4cfbed66097855f6a /src | |
parent | 6bc644fe62adad6656be3f29c118045fc5630510 (diff) |
gallivm: added methods for getting texture depth, num mipmap levels
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_sample.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample.h b/src/gallium/auxiliary/gallivm/lp_bld_sample.h index 2120775d108..5ba0925bb69 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_sample.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_sample.h @@ -100,6 +100,18 @@ struct lp_sampler_dynamic_state LLVMBuilderRef builder, unsigned unit); + /** Obtain the base texture depth. */ + LLVMValueRef + (*depth)( struct lp_sampler_dynamic_state *state, + LLVMBuilderRef builder, + unsigned unit); + + /** Obtain the number of mipmap levels (minus one). */ + LLVMValueRef + (*last_level)( struct lp_sampler_dynamic_state *state, + LLVMBuilderRef builder, + unsigned unit); + LLVMValueRef (*stride)( struct lp_sampler_dynamic_state *state, LLVMBuilderRef builder, |