Got RenderApi project to compile

This commit is contained in:
Yoshi Askharoun
2021-07-11 23:41:18 -05:00
parent dfb03d2ec5
commit c2a463bd0e
45 changed files with 96 additions and 91 deletions
@@ -34,7 +34,7 @@ namespace Microsoft.Iris.Render.Protocols.Splash.Rendering
public override int GetHashCode() => base.GetHashCode();
internal static RENDERHANDLE BindCallback(RenderPort port) => port.RegisterCallback(new PortCallback(DispatchCallback), out uint _);
internal static unsafe RENDERHANDLE BindCallback(RenderPort port) => port.RegisterCallback(new PortCallback(DispatchCallback), out uint _);
private static unsafe void DispatchCallback(
RenderPort port,
@@ -39,7 +39,7 @@ namespace Microsoft.Iris.Render.Protocols.Splash.Rendering
public override int GetHashCode() => base.GetHashCode();
internal static RENDERHANDLE BindCallback(RenderPort port) => port.RegisterCallback(new PortCallback(DispatchCallback), out uint _);
internal static unsafe RENDERHANDLE BindCallback(RenderPort port) => port.RegisterCallback(new PortCallback(DispatchCallback), out uint _);
private static unsafe void DispatchCallback(
RenderPort port,
@@ -38,7 +38,7 @@ namespace Microsoft.Iris.Render.Protocols.Splash.Rendering
public override int GetHashCode() => base.GetHashCode();
internal static RENDERHANDLE BindCallback(RenderPort port) => port.RegisterCallback(new PortCallback(DispatchCallback), out uint _);
internal static unsafe RENDERHANDLE BindCallback(RenderPort port) => port.RegisterCallback(new PortCallback(DispatchCallback), out uint _);
private static unsafe void DispatchCallback(
RenderPort port,
@@ -35,7 +35,7 @@ namespace Microsoft.Iris.Render.Protocols.Splash.Rendering
public override int GetHashCode() => base.GetHashCode();
internal static RENDERHANDLE BindCallback(RenderPort port) => port.RegisterCallback(new PortCallback(DispatchCallback), out uint _);
internal static unsafe RENDERHANDLE BindCallback(RenderPort port) => port.RegisterCallback(new PortCallback(DispatchCallback), out uint _);
private static unsafe void DispatchCallback(
RenderPort port,
@@ -35,14 +35,14 @@ namespace Microsoft.Iris.Render.Protocols.Splash.Rendering
public override int GetHashCode() => base.GetHashCode();
internal static RENDERHANDLE BindCallback(RenderPort port) => port.RegisterCallback(new PortCallback(DispatchCallback), out uint _);
internal static unsafe RENDERHANDLE BindCallback(RenderPort port) => port.RegisterCallback(new PortCallback(DispatchCallback), out uint _);
private static unsafe void DispatchCallback(
RenderPort port,
IRenderHandleOwner owner,
CallbackMessage* message)
{
if (!(owner is IVideoPoolCallback _priv_target))
if (owner is not IVideoPoolCallback _priv_target)
return;
switch (message->nMsg)
{
@@ -25,7 +25,8 @@ namespace Microsoft.Iris.Render.Protocols.Splash.Rendering.Nt
RemoteDs8SoundDevice remoteDs8SoundDevice = new RemoteDs8SoundDevice(port, _priv_owner);
uint num = (uint)sizeof(RemoteDs8SoundDevice.Msg4_Create);
// ISSUE: untyped stack allocation
RemoteDs8SoundDevice.Msg4_Create* msg4CreatePtr = (RemoteDs8SoundDevice.Msg4_Create*)__untypedstackalloc(1 * (int)num);
byte* bytes = stackalloc byte[(int)num];
RemoteDs8SoundDevice.Msg4_Create* msg4CreatePtr = (Msg4_Create*)bytes;
msg4CreatePtr->_priv_size = num;
msg4CreatePtr->_priv_msgid = 4U;
msg4CreatePtr->hwnd = hwnd;
@@ -37,7 +37,7 @@ namespace Microsoft.Iris.Render.Protocols.Splash.Rendering.Nt
RemoteGdiDevice remoteGdiDevice = new RemoteGdiDevice(port, _priv_owner);
uint num = (uint)sizeof(RemoteGdiDevice.Msg23_Create);
// ISSUE: untyped stack allocation
byte* pMem = (byte*)__untypedstackalloc(1 * (int)num);
byte* pMem = stackalloc byte[(int)num];
RemoteGdiDevice.Msg23_Create* msg23CreatePtr = (RemoteGdiDevice.Msg23_Create*)pMem;
msg23CreatePtr->_priv_size = num;
msg23CreatePtr->_priv_msgid = 23U;
@@ -26,7 +26,7 @@ namespace Microsoft.Iris.Render.Protocols.Splash.Rendering.Nt
RemoteGdiSprite remoteGdiSprite = new RemoteGdiSprite(port, _priv_owner);
uint num = (uint)sizeof(RemoteGdiSprite.Msg22_Create);
// ISSUE: untyped stack allocation
byte* pMem = (byte*)__untypedstackalloc(1 * (int)num);
byte* pMem = stackalloc byte[(int)num];
RemoteGdiSprite.Msg22_Create* msg22CreatePtr = (RemoteGdiSprite.Msg22_Create*)pMem;
msg22CreatePtr->_priv_size = num;
msg22CreatePtr->_priv_msgid = 22U;
@@ -33,7 +33,7 @@ namespace Microsoft.Iris.Render.Protocols.Splash.Rendering.Nt
RemoteNtDevice remoteNtDevice = new RemoteNtDevice(port, _priv_owner);
uint num = (uint)sizeof(RemoteNtDevice.Msg19_Create);
// ISSUE: untyped stack allocation
byte* pMem = (byte*)__untypedstackalloc(1 * (int)num);
byte* pMem = stackalloc byte[(int)num];
RemoteNtDevice.Msg19_Create* msg19CreatePtr = (RemoteNtDevice.Msg19_Create*)pMem;
msg19CreatePtr->_priv_size = num;
msg19CreatePtr->_priv_msgid = 19U;
@@ -26,7 +26,7 @@ namespace Microsoft.Iris.Render.Protocols.Splash.Rendering.Nt
RemoteWinSoundDevice remoteWinSoundDevice = new RemoteWinSoundDevice(port, _priv_owner);
uint num = (uint)sizeof(RemoteWinSoundDevice.Msg4_Create);
// ISSUE: untyped stack allocation
byte* pMem = (byte*)__untypedstackalloc(1 * (int)num);
byte* pMem = stackalloc byte[(int)num];
RemoteWinSoundDevice.Msg4_Create* msg4CreatePtr = (RemoteWinSoundDevice.Msg4_Create*)pMem;
msg4CreatePtr->_priv_size = num;
msg4CreatePtr->_priv_msgid = 4U;
@@ -67,7 +67,7 @@ namespace Microsoft.Iris.Render.Protocols.Splash.Rendering
RemoteAnimation remoteAnimation = new RemoteAnimation(port, _priv_owner);
uint num = (uint)sizeof(RemoteAnimation.Msg43_Create);
// ISSUE: untyped stack allocation
byte* pMem = (byte*)__untypedstackalloc(1 * (int)num);
byte* pMem = stackalloc byte[(int)num];
RemoteAnimation.Msg43_Create* msg43CreatePtr = (RemoteAnimation.Msg43_Create*)pMem;
msg43CreatePtr->_priv_size = num;
msg43CreatePtr->_priv_msgid = 43U;
@@ -38,7 +38,7 @@ namespace Microsoft.Iris.Render.Protocols.Splash.Rendering
RemoteAnimationInputProvider animationInputProvider = new RemoteAnimationInputProvider(port, _priv_owner);
uint num = (uint)sizeof(RemoteAnimationInputProvider.Msg10_Create);
// ISSUE: untyped stack allocation
byte* pMem = (byte*)__untypedstackalloc(1 * (int)num);
byte* pMem = stackalloc byte[(int)num];
RemoteAnimationInputProvider.Msg10_Create* msg10CreatePtr = (RemoteAnimationInputProvider.Msg10_Create*)pMem;
msg10CreatePtr->_priv_size = num;
msg10CreatePtr->_priv_msgid = 10U;
@@ -30,7 +30,7 @@ namespace Microsoft.Iris.Render.Protocols.Splash.Rendering
RemoteAnimationManager animationManager = new RemoteAnimationManager(port, _priv_owner);
uint num = (uint)sizeof(RemoteAnimationManager.Msg3_Create);
// ISSUE: untyped stack allocation
byte* pMem = (byte*)__untypedstackalloc(1 * (int)num);
byte* pMem = stackalloc byte[(int)num];
RemoteAnimationManager.Msg3_Create* msg3CreatePtr = (RemoteAnimationManager.Msg3_Create*)pMem;
msg3CreatePtr->_priv_size = num;
msg3CreatePtr->_priv_msgid = 3U;
@@ -32,7 +32,7 @@ namespace Microsoft.Iris.Render.Protocols.Splash.Rendering
RemoteCamera remoteCamera = new RemoteCamera(port, _priv_owner);
uint num = (uint)sizeof(RemoteCamera.Msg5_Create);
// ISSUE: untyped stack allocation
byte* pMem = (byte*)__untypedstackalloc(1 * (int)num);
byte* pMem = stackalloc byte[(int)num];
RemoteCamera.Msg5_Create* msg5CreatePtr = (RemoteCamera.Msg5_Create*)pMem;
msg5CreatePtr->_priv_size = num;
msg5CreatePtr->_priv_msgid = 5U;
@@ -40,7 +40,7 @@ namespace Microsoft.Iris.Render.Protocols.Splash.Rendering
RemoteDx9EffectResource dx9EffectResource = new RemoteDx9EffectResource(port, _priv_owner);
uint num = (uint)sizeof(RemoteDx9EffectResource.Msg10_Create);
// ISSUE: untyped stack allocation
byte* pMem = (byte*)__untypedstackalloc(1 * (int)num);
byte* pMem = stackalloc byte[(int)num];
RemoteDx9EffectResource.Msg10_Create* msg10CreatePtr = (RemoteDx9EffectResource.Msg10_Create*)pMem;
msg10CreatePtr->_priv_size = num;
msg10CreatePtr->_priv_msgid = 10U;
@@ -26,7 +26,7 @@ namespace Microsoft.Iris.Render.Protocols.Splash.Rendering
RemoteDx9Sprite remoteDx9Sprite = new RemoteDx9Sprite(port, _priv_owner);
uint num = (uint)sizeof(RemoteDx9Sprite.Msg22_Create);
// ISSUE: untyped stack allocation
byte* pMem = (byte*)__untypedstackalloc(1 * (int)num);
byte* pMem = stackalloc byte[(int)num];
RemoteDx9Sprite.Msg22_Create* msg22CreatePtr = (RemoteDx9Sprite.Msg22_Create*)pMem;
msg22CreatePtr->_priv_size = num;
msg22CreatePtr->_priv_msgid = 22U;
@@ -27,7 +27,7 @@ namespace Microsoft.Iris.Render.Protocols.Splash.Rendering
RemoteExternalAnimationInput externalAnimationInput = new RemoteExternalAnimationInput(port, _priv_owner);
uint num = (uint)sizeof(RemoteExternalAnimationInput.Msg0_Create);
// ISSUE: untyped stack allocation
byte* pMem = (byte*)__untypedstackalloc(1 * (int)num);
byte* pMem = stackalloc byte[(int)num];
RemoteExternalAnimationInput.Msg0_Create* msg0CreatePtr = (RemoteExternalAnimationInput.Msg0_Create*)pMem;
msg0CreatePtr->_priv_size = num;
msg0CreatePtr->_priv_msgid = 0U;
@@ -27,7 +27,7 @@ namespace Microsoft.Iris.Render.Protocols.Splash.Rendering
RemoteNullDevice remoteNullDevice = new RemoteNullDevice(port, _priv_owner);
uint num = (uint)sizeof(RemoteNullDevice.Msg8_Create);
// ISSUE: untyped stack allocation
byte* pMem = (byte*)__untypedstackalloc(1 * (int)num);
byte* pMem = stackalloc byte[(int)num];
RemoteNullDevice.Msg8_Create* msg8CreatePtr = (RemoteNullDevice.Msg8_Create*)pMem;
msg8CreatePtr->_priv_size = num;
msg8CreatePtr->_priv_msgid = 8U;
@@ -29,7 +29,7 @@ namespace Microsoft.Iris.Render.Protocols.Splash.Rendering
RemoteRenderCaps remoteRenderCaps = new RemoteRenderCaps(port, _priv_owner);
uint num = (uint)sizeof(RemoteRenderCaps.Msg1_Create);
// ISSUE: untyped stack allocation
byte* pMem = (byte*)__untypedstackalloc(1 * (int)num);
byte* pMem = stackalloc byte[(int)num];
RemoteRenderCaps.Msg1_Create* msg1CreatePtr = (RemoteRenderCaps.Msg1_Create*)pMem;
msg1CreatePtr->_priv_size = num;
msg1CreatePtr->_priv_msgid = 1U;
@@ -28,7 +28,7 @@ namespace Microsoft.Iris.Render.Protocols.Splash.Rendering
RemoteVisualContainer remoteVisualContainer = new RemoteVisualContainer(port, _priv_owner);
uint num = (uint)sizeof(RemoteVisualContainer.Msg19_Create);
// ISSUE: untyped stack allocation
byte* pMem = (byte*)__untypedstackalloc(1 * (int)num);
byte* pMem = stackalloc byte[(int)num];
RemoteVisualContainer.Msg19_Create* msg19CreatePtr = (RemoteVisualContainer.Msg19_Create*)pMem;
msg19CreatePtr->_priv_size = num;
msg19CreatePtr->_priv_msgid = 19U;

Some files were not shown because too many files have changed in this diff Show More