fidl_fuchsia_gpu_magmaTrait PrimaryProxyInterface
Source pub trait PrimaryProxyInterface: Send + Sync {
type FlushResponseFut: Future<Output = Result<(), Error>> + Send;
type IsPerformanceCounterAccessAllowedResponseFut: Future<Output = Result<bool, Error>> + Send;
Show 22 methods
// Required methods
fn import_object2(
&self,
object: Handle,
object_type: ObjectType,
object_id: u64,
) -> Result<(), Error>;
fn import_object(
&self,
payload: PrimaryImportObjectRequest,
) -> Result<(), Error>;
fn release_object(
&self,
object_id: u64,
object_type: ObjectType,
) -> Result<(), Error>;
fn create_context(&self, context_id: u32) -> Result<(), Error>;
fn destroy_context(&self, context_id: u32) -> Result<(), Error>;
fn execute_command(
&self,
context_id: u32,
resources: &[BufferRange],
command_buffers: &[CommandBuffer],
wait_semaphores: &[u64],
signal_semaphores: &[u64],
flags: CommandBufferFlags,
) -> Result<(), Error>;
fn execute_immediate_commands(
&self,
context_id: u32,
command_data: &[u8],
semaphores: &[u64],
) -> Result<(), Error>;
fn execute_inline_commands(
&self,
context_id: u32,
commands: &[InlineCommand],
) -> Result<(), Error>;
fn flush(&self) -> Self::FlushResponseFut;
fn map_buffer(&self, payload: &PrimaryMapBufferRequest) -> Result<(), Error>;
fn unmap_buffer(
&self,
payload: &PrimaryUnmapBufferRequest,
) -> Result<(), Error>;
fn buffer_range_op2(
&self,
op: BufferOp,
range: &BufferRange,
) -> Result<(), Error>;
fn enable_flow_control(&self) -> Result<(), Error>;
fn enable_performance_counter_access(
&self,
access_token: Event,
) -> Result<(), Error>;
fn is_performance_counter_access_allowed(
&self,
) -> Self::IsPerformanceCounterAccessAllowedResponseFut;
fn enable_performance_counters(&self, counters: &[u64]) -> Result<(), Error>;
fn create_performance_counter_buffer_pool(
&self,
pool_id: u64,
event_channel: ServerEnd<PerformanceCounterEventsMarker>,
) -> Result<(), Error>;
fn release_performance_counter_buffer_pool(
&self,
pool_id: u64,
) -> Result<(), Error>;
fn add_performance_counter_buffer_offsets_to_pool(
&self,
pool_id: u64,
offsets: &[BufferRange],
) -> Result<(), Error>;
fn remove_performance_counter_buffer_from_pool(
&self,
pool_id: u64,
buffer_id: u64,
) -> Result<(), Error>;
fn dump_performance_counters(
&self,
pool_id: u64,
trigger_id: u32,
) -> Result<(), Error>;
fn clear_performance_counters(&self, counters: &[u64]) -> Result<(), Error>;
}