mirror of
https://github.com/ZuneDev/Xune.git
synced 2026-07-27 13:13:10 -07:00
Got RenderApi project to compile
This commit is contained in:
+1
-1
@@ -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,
|
||||
|
||||
+1
-1
@@ -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,
|
||||
|
||||
+1
-1
@@ -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,
|
||||
|
||||
+1
-1
@@ -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,
|
||||
|
||||
+2
-2
@@ -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)
|
||||
{
|
||||
|
||||
+2
-1
@@ -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;
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
+1
-1
@@ -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
Reference in New Issue
Block a user