render: move take_render_ops to GfxFramebuffer
This commit is contained in:
parent
074347c71d
commit
5778c49679
3 changed files with 8 additions and 8 deletions
|
|
@ -113,6 +113,8 @@ pub enum ResetStatus {
|
|||
pub trait GfxFramebuffer: Debug {
|
||||
fn as_any(&self) -> &dyn Any;
|
||||
|
||||
fn take_render_ops(&self) -> Vec<GfxApiOpt>;
|
||||
|
||||
fn clear(&self);
|
||||
|
||||
fn clear_with(&self, r: f32, g: f32, b: f32, a: f32);
|
||||
|
|
@ -167,8 +169,6 @@ pub trait GfxTexture: Debug {
|
|||
}
|
||||
|
||||
pub trait GfxContext: Debug {
|
||||
fn take_render_ops(&self) -> Vec<GfxApiOpt>;
|
||||
|
||||
fn reset_status(&self) -> Option<ResetStatus>;
|
||||
|
||||
fn supports_external_texture(&self) -> bool;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue