Format RenderApi code

This commit is contained in:
Yoshi Askharoun
2021-07-11 23:04:40 -05:00
parent 9fec520340
commit f793c0c94f
451 changed files with 38065 additions and 38065 deletions
@@ -10,68 +10,68 @@ using System.Runtime.InteropServices;
namespace Microsoft.Iris.Render.Protocols.Splash.Desktop
{
internal class LocalInputCallback : RemoteObject
{
private static ushort[] s_priv_ByteOrder_Msg0_OnInput;
protected LocalInputCallback()
internal class LocalInputCallback : RemoteObject
{
private static ushort[] s_priv_ByteOrder_Msg0_OnInput;
protected LocalInputCallback()
{
}
internal static LocalInputCallback CreateCallbackImpl(
RenderPort port,
RENDERHANDLE callbackInstance)
{
return new LocalInputCallback(port, callbackInstance);
}
protected LocalInputCallback(RenderPort port, RENDERHANDLE handle)
: base(port, handle, false)
{
}
public override bool Equals(object other) => other is LocalInputCallback && this.m_renderHandle == ((RemoteObject)other).m_renderHandle;
public override int GetHashCode() => base.GetHashCode();
internal static RENDERHANDLE BindCallback(RenderPort port) => port.RegisterCallback(new PortCallback(LocalInputCallback.DispatchCallback), out uint _);
private static unsafe void DispatchCallback(
RenderPort port,
IRenderHandleOwner owner,
CallbackMessage* message)
{
if (!(owner is IInputCallback _priv_target) || message->nMsg != 0U)
return;
LocalInputCallback.Dispatch_OnInput(port, _priv_target, (LocalInputCallback.Msg0_OnInput*)message);
}
private static unsafe void Dispatch_OnInput(
RenderPort _priv_port,
IInputCallback _priv_target,
LocalInputCallback.Msg0_OnInput* _priv_pmsg)
{
if (_priv_port.ForeignByteOrder)
MarshalHelper.SwapByteOrder((byte*)_priv_pmsg, ref LocalInputCallback.s_priv_ByteOrder_Msg0_OnInput, typeof(LocalInputCallback.Msg0_OnInput), sizeof(CallbackMessage), 0);
RENDERHANDLE target = _priv_pmsg->target;
Message* pmsgInner;
MarshalHelper.Decode(_priv_port, (Message*)_priv_pmsg, _priv_pmsg->inputInfo, out pmsgInner);
_priv_target.OnInput(target, pmsgInner);
}
[Conditional("DEBUG")]
private static unsafe void OnInvalidCallback(CallbackMessage* message, string category)
{
}
[ComVisible(false)]
private struct Msg0_OnInput
{
public uint _priv_size;
public uint _priv_msgid;
public RENDERHANDLE _priv_idObjectSubject;
public RENDERHANDLE target;
public BLOBREF inputInfo;
}
}
internal static LocalInputCallback CreateCallbackImpl(
RenderPort port,
RENDERHANDLE callbackInstance)
{
return new LocalInputCallback(port, callbackInstance);
}
protected LocalInputCallback(RenderPort port, RENDERHANDLE handle)
: base(port, handle, false)
{
}
public override bool Equals(object other) => other is LocalInputCallback && this.m_renderHandle == ((RemoteObject) other).m_renderHandle;
public override int GetHashCode() => base.GetHashCode();
internal static RENDERHANDLE BindCallback(RenderPort port) => port.RegisterCallback(new PortCallback(LocalInputCallback.DispatchCallback), out uint _);
private static unsafe void DispatchCallback(
RenderPort port,
IRenderHandleOwner owner,
CallbackMessage* message)
{
if (!(owner is IInputCallback _priv_target) || message->nMsg != 0U)
return;
LocalInputCallback.Dispatch_OnInput(port, _priv_target, (LocalInputCallback.Msg0_OnInput*) message);
}
private static unsafe void Dispatch_OnInput(
RenderPort _priv_port,
IInputCallback _priv_target,
LocalInputCallback.Msg0_OnInput* _priv_pmsg)
{
if (_priv_port.ForeignByteOrder)
MarshalHelper.SwapByteOrder((byte*) _priv_pmsg, ref LocalInputCallback.s_priv_ByteOrder_Msg0_OnInput, typeof (LocalInputCallback.Msg0_OnInput), sizeof (CallbackMessage), 0);
RENDERHANDLE target = _priv_pmsg->target;
Message* pmsgInner;
MarshalHelper.Decode(_priv_port, (Message*) _priv_pmsg, _priv_pmsg->inputInfo, out pmsgInner);
_priv_target.OnInput(target, pmsgInner);
}
[Conditional("DEBUG")]
private static unsafe void OnInvalidCallback(CallbackMessage* message, string category)
{
}
[ComVisible(false)]
private struct Msg0_OnInput
{
public uint _priv_size;
public uint _priv_msgid;
public RENDERHANDLE _priv_idObjectSubject;
public RENDERHANDLE target;
public BLOBREF inputInfo;
}
}
}