python: Surface clears.
This commit is contained in:
@@ -367,7 +367,7 @@ error1:
|
||||
$self->pipe->surface_fill($self->pipe, dst, x, y, width, height, value);
|
||||
}
|
||||
|
||||
void clear(struct pipe_surface *surface, unsigned value) {
|
||||
void surface_clear(struct pipe_surface *surface, unsigned value = 0) {
|
||||
$self->pipe->clear($self->pipe, surface, value);
|
||||
}
|
||||
|
||||
|
@@ -142,6 +142,8 @@ def test(dev):
|
||||
#fs.dump()
|
||||
ctx.set_fragment_shader(fs)
|
||||
|
||||
ctx.surface_clear(surface, 0x00ff0000)
|
||||
|
||||
if 0:
|
||||
nverts = 4
|
||||
nattrs = 1
|
||||
|
Reference in New Issue
Block a user