mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
python: Raw tile access to surface.
This commit is contained in:
parent
00cd96b68f
commit
3aea28b9b1
1 changed files with 11 additions and 0 deletions
|
|
@ -55,6 +55,7 @@
|
|||
%}
|
||||
|
||||
%include "carrays.i"
|
||||
%array_class(unsigned char, ByteArray);
|
||||
%array_class(int, IntArray);
|
||||
%array_class(float, FloatArray);
|
||||
|
||||
|
|
@ -405,6 +406,16 @@ error1:
|
|||
// gets mapped to pipe_surface_unmap automatically
|
||||
void unmap( void );
|
||||
|
||||
void
|
||||
get_tile_raw(unsigned x, unsigned y, unsigned w, unsigned h, unsigned char *p, unsigned stride) {
|
||||
pipe_get_tile_raw($self, x, y, w, h, p, stride);
|
||||
}
|
||||
|
||||
void
|
||||
put_tile_raw(unsigned x, unsigned y, unsigned w, unsigned h, const unsigned char *p, unsigned stride) {
|
||||
pipe_put_tile_raw($self, x, y, w, h, p, stride);
|
||||
}
|
||||
|
||||
void
|
||||
get_tile_rgba(unsigned x, unsigned y, unsigned w, unsigned h, float *p) {
|
||||
pipe_get_tile_rgba($self, x, y, w, h, p);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue