add some v2 graphics api adapters and opcodes

This commit is contained in:
bunnie 2025-03-03 02:10:24 +08:00
parent 2b36849683
commit 2957cce789

View file

@ -12,6 +12,8 @@ impl Gid {
pub fn new(id: [u32; 4]) -> Self { Gid { gid: id } }
pub fn gid(&self) -> [u32; 4] { self.gid }
pub fn dummy() -> Self { Gid { gid: [0xdead, 0xbeef, 0xdead, 0xbeef] } }
}
impl Hash for Gid {
fn hash<H>(&self, state: &mut H)
@ -89,6 +91,10 @@ pub enum GfxOpcode {
/// Handle Camera IRQs
CamIrq,
/// V2 API for claiming ownership of screen for modal operation
AcquireModal,
ReleaseModal,
/// Gutter for invalid calls
InvalidCall,