diff options
Diffstat (limited to 'src/gallium/auxiliary/cso_cache/cso_context.h')
-rw-r--r-- | src/gallium/auxiliary/cso_cache/cso_context.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/cso_cache/cso_context.h b/src/gallium/auxiliary/cso_cache/cso_context.h index e8f5a9f77bf..20ab4ef1aaa 100644 --- a/src/gallium/auxiliary/cso_cache/cso_context.h +++ b/src/gallium/auxiliary/cso_cache/cso_context.h @@ -203,6 +203,19 @@ void cso_restore_sampler_views(struct cso_context *cso, unsigned shader_stage); +/* constant buffers */ + +void cso_set_constant_buffer(struct cso_context *cso, unsigned shader_stage, + unsigned index, struct pipe_constant_buffer *cb); +void cso_set_constant_buffer_resource(struct cso_context *cso, + unsigned shader_stage, + unsigned index, + struct pipe_resource *buffer); +void cso_save_constant_buffer_slot0(struct cso_context *cso, + unsigned shader_stage); +void cso_restore_constant_buffer_slot0(struct cso_context *cso, + unsigned shader_stage); + /* drawing */ |