summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/python/st_device.h
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-08-10 18:52:00 +0100
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-08-12 11:34:40 +0100
commita304d271185af935974850055da74ec8263b00e2 (patch)
treee9bb1f947ea408e60ccd2c0828529c394bb49e13 /src/gallium/state_trackers/python/st_device.h
parente5a606883f24980dd8e2378c25e6fb3b8f1937ce (diff)
python: Allow writing to buffers.
Diffstat (limited to 'src/gallium/state_trackers/python/st_device.h')
-rw-r--r--src/gallium/state_trackers/python/st_device.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/python/st_device.h b/src/gallium/state_trackers/python/st_device.h
index 2d95c2da73..5b7adbe1a0 100644
--- a/src/gallium/state_trackers/python/st_device.h
+++ b/src/gallium/state_trackers/python/st_device.h
@@ -38,6 +38,13 @@ struct pipe_context;
struct st_winsys;
+struct st_buffer {
+ struct st_device *st_dev;
+
+ struct pipe_buffer *buffer;
+};
+
+
struct st_context {
struct st_device *st_dev;
@@ -65,6 +72,13 @@ struct st_device {
};
+struct st_buffer *
+st_buffer_create(struct st_device *st_dev,
+ unsigned alignment, unsigned usage, unsigned size);
+
+void
+st_buffer_destroy(struct st_buffer *st_buf);
+
struct st_context *
st_context_create(struct st_device *st_dev);