src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (158)
133DUCE.ResourceType resourceType,
134ref DUCE.ResourceHandle hResource
140DUCE.ResourceHandle original,
142ref DUCE.ResourceHandle duplicate
213DUCE.ResourceHandle hResource,
245DUCE.ResourceHandle hResource,
477internal bool CreateOrAddRefOnChannel(object instance, ref DUCE.ResourceHandle handle, DUCE.ResourceType resourceType)
511internal DUCE.ResourceHandle DuplicateHandle(
512DUCE.ResourceHandle original,
513DUCE.Channel targetChannel
516DUCE.ResourceHandle duplicate = DUCE.ResourceHandle.Null;
538internal bool ReleaseOnChannel(DUCE.ResourceHandle handle)
568internal uint GetRefCount(DUCE.ResourceHandle handle)
782DUCE.ResourceHandle imageHandle,
799DUCE.ResourceHandle mediaHandle,
904public static readonly Resource Null = new Resource(DUCE.ResourceHandle.Null);
906private DUCE.ResourceHandle _handle;
916public Resource(DUCE.ResourceHandle h)
927public bool CreateOrAddRefOnChannel(object instance, Channel channel, DUCE.ResourceType type)
955_handle = DUCE.ResourceHandle.Null;
980public DUCE.ResourceHandle Handle { get { return _handle; } }
1266public Entry(object k, DUCE.ResourceHandle v)
1273public DUCE.ResourceHandle _value;
1328public void Set(object key, DUCE.ResourceHandle value)
1361_head._value = DUCE.ResourceHandle.Null;
1425public bool Get(object key, out DUCE.ResourceHandle value)
1429value = DUCE.ResourceHandle.Null;
1517public bool CreateOrAddRefOnChannel(object instance, Channel channel, DUCE.ResourceType type)
1520DUCE.ResourceHandle handle;
1542public DUCE.ResourceHandle DuplicateHandle(Channel sourceChannel, Channel targetChannel)
1545DUCE.ResourceHandle duplicate = DUCE.ResourceHandle.Null;
1547DUCE.ResourceHandle handle = DUCE.ResourceHandle.Null;
1584DUCE.ResourceHandle handle;
1603public DUCE.ResourceHandle GetHandle(Channel channel)
1605DUCE.ResourceHandle h;
1642public DUCE.Channel GetChannel(int index)
1644return _map.Get(index) as DUCE.Channel;
1652DUCE.ResourceHandle handle;
1667DUCE.ResourceHandle hCompositionNode,
1668DUCE.ResourceHandle hTransform,
1671DUCE.MILCMD_VISUAL_SETTRANSFORM command;
1681sizeof(DUCE.MILCMD_VISUAL_SETTRANSFORM)
1688DUCE.ResourceHandle hCompositionNode,
1689DUCE.ResourceHandle hEffect,
1692DUCE.MILCMD_VISUAL_SETEFFECT command;
1702sizeof(DUCE.MILCMD_VISUAL_SETEFFECT)
1709DUCE.ResourceHandle hCompositionNode,
1710DUCE.ResourceHandle hCacheMode,
1713DUCE.MILCMD_VISUAL_SETCACHEMODE command;
1723sizeof(DUCE.MILCMD_VISUAL_SETCACHEMODE)
1729DUCE.ResourceHandle hCompositionNode,
1734DUCE.MILCMD_VISUAL_SETOFFSET command;
1744sizeof(DUCE.MILCMD_VISUAL_SETOFFSET)
1750DUCE.ResourceHandle hCompositionNode,
1751DUCE.ResourceHandle hContent,
1754DUCE.MILCMD_VISUAL_SETCONTENT command;
1764sizeof(DUCE.MILCMD_VISUAL_SETCONTENT)
1770DUCE.ResourceHandle hCompositionNode,
1774DUCE.MILCMD_VISUAL_SETALPHA command;
1784sizeof(DUCE.MILCMD_VISUAL_SETALPHA)
1790DUCE.ResourceHandle hCompositionNode,
1791DUCE.ResourceHandle hAlphaMaskBrush,
1794DUCE.MILCMD_VISUAL_SETALPHAMASK command;
1804sizeof(DUCE.MILCMD_VISUAL_SETALPHAMASK)
1810DUCE.ResourceHandle hCompositionNode,
1814DUCE.MILCMD_VISUAL_SETSCROLLABLEAREACLIP command;
1833sizeof(DUCE.MILCMD_VISUAL_SETSCROLLABLEAREACLIP)
1839DUCE.ResourceHandle hCompositionNode,
1840DUCE.ResourceHandle hClip,
1843DUCE.MILCMD_VISUAL_SETCLIP command;
1853sizeof(DUCE.MILCMD_VISUAL_SETCLIP)
1859DUCE.ResourceHandle hCompositionNode,
1863DUCE.MILCMD_VISUAL_SETRENDEROPTIONS command;
1873sizeof(DUCE.MILCMD_VISUAL_SETRENDEROPTIONS)
1879DUCE.ResourceHandle hCompositionNode,
1880DUCE.ResourceHandle hChild,
1883DUCE.MILCMD_VISUAL_REMOVECHILD command;
1893sizeof(DUCE.MILCMD_VISUAL_REMOVECHILD)
1899DUCE.ResourceHandle hCompositionNode,
1902DUCE.MILCMD_VISUAL_REMOVEALLCHILDREN command;
1911sizeof(DUCE.MILCMD_VISUAL_REMOVEALLCHILDREN)
1917DUCE.ResourceHandle hCompositionNode,
1918DUCE.ResourceHandle hChild,
1922DUCE.MILCMD_VISUAL_INSERTCHILDAT command;
1934sizeof(DUCE.MILCMD_VISUAL_INSERTCHILDAT)
1940DUCE.ResourceHandle hCompositionNode,
1948DUCE.MILCMD_VISUAL_SETGUIDELINECOLLECTION command;
1966sizeof(DUCE.MILCMD_VISUAL_SETGUIDELINECOLLECTION)
1996sizeof(DUCE.MILCMD_VISUAL_SETGUIDELINECOLLECTION),
2018DUCE.ResourceHandle hCompositionNode,
2019DUCE.ResourceHandle hCamera,
2024DUCE.MILCMD_VIEWPORT3DVISUAL_SETCAMERA command;
2032sizeof(DUCE.MILCMD_VIEWPORT3DVISUAL_SETCAMERA)
2038DUCE.ResourceHandle hCompositionNode,
2044DUCE.MILCMD_VIEWPORT3DVISUAL_SETVIEWPORT command;
2052sizeof(DUCE.MILCMD_VIEWPORT3DVISUAL_SETVIEWPORT)
2058DUCE.ResourceHandle hCompositionNode,
2059DUCE.ResourceHandle hVisual3D,
2064DUCE.MILCMD_VIEWPORT3DVISUAL_SET3DCHILD command;
2072sizeof(DUCE.MILCMD_VIEWPORT3DVISUAL_SET3DCHILD)
2081DUCE.ResourceHandle hCompositionNode,
2082DUCE.ResourceHandle hChild,
2087DUCE.MILCMD_VISUAL3D_REMOVECHILD command;
2095sizeof(DUCE.MILCMD_VISUAL3D_REMOVECHILD)
2101DUCE.ResourceHandle hCompositionNode,
2106DUCE.MILCMD_VISUAL3D_REMOVEALLCHILDREN command;
2113sizeof(DUCE.MILCMD_VISUAL3D_REMOVEALLCHILDREN)
2119DUCE.ResourceHandle hCompositionNode,
2120DUCE.ResourceHandle hChild,
2126DUCE.MILCMD_VISUAL3D_INSERTCHILDAT command;
2136sizeof(DUCE.MILCMD_VISUAL3D_INSERTCHILDAT)
2142DUCE.ResourceHandle hCompositionNode,
2143DUCE.ResourceHandle hContent,
2148DUCE.MILCMD_VISUAL3D_SETCONTENT command;
2156sizeof(DUCE.MILCMD_VISUAL3D_SETCONTENT)
2162DUCE.ResourceHandle hCompositionNode,
2163DUCE.ResourceHandle hTransform,
2168DUCE.MILCMD_VISUAL3D_SETTRANSFORM command;
2176sizeof(DUCE.MILCMD_VISUAL3D_SETTRANSFORM)
2188DUCE.ResourceHandle hCompositionTarget,
2198DUCE.MILCMD_HWNDTARGET_CREATE command;
2260command.hBitmap = DUCE.ResourceHandle.Null;
2274sizeof(DUCE.MILCMD_HWNDTARGET_CREATE),
2281DUCE.ResourceHandle hCompositionTarget,
2287DUCE.MILCMD_HWNDTARGET_DPICHANGED command;
2299sizeof(DUCE.MILCMD_HWNDTARGET_DPICHANGED),
2305DUCE.ResourceHandle hCompositionTarget,
2312DUCE.MILCMD_GENERICTARGET_CREATE command;
2326sizeof(DUCE.MILCMD_GENERICTARGET_CREATE),
2333DUCE.ResourceHandle hCompositionTarget,
2338DUCE.MILCMD_TARGET_SETCLEARCOLOR command;
2351sizeof(DUCE.MILCMD_TARGET_SETCLEARCOLOR)
2357DUCE.ResourceHandle hCompositionTarget,
2362DUCE.MILCMD_TARGET_SETFLAGS command;
2372sizeof(DUCE.MILCMD_TARGET_SETFLAGS)
2379DUCE.ResourceHandle hCompositionTarget,
2380DUCE.ResourceHandle hRoot,
2384DUCE.MILCMD_TARGET_SETROOT command;
2394sizeof(DUCE.MILCMD_TARGET_SETROOT)
2414DUCE.MILCMD_TARGET_UPDATEWINDOWSETTINGS command;
2440sizeof(DUCE.MILCMD_TARGET_UPDATEWINDOWSETTINGS)
2446DUCE.ResourceHandle hCompositionTarget,
2451DUCE.MILCMD_TARGET_INVALIDATE command;
2461sizeof(DUCE.MILCMD_TARGET_INVALIDATE),
2480var command = new DUCE.MILCMD_PARTITION_NOTIFYPOLICYCHANGEFORNONINTERACTIVEMODE
2490sizeof(DUCE.MILCMD_PARTITION_NOTIFYPOLICYCHANGEFORNONINTERACTIVEMODE),
2501DUCE.ResourceHandle hEtwEvent,
2506DUCE.MILCMD_ETWEVENTRESOURCE command;
2516sizeof(DUCE.MILCMD_ETWEVENTRESOURCE)
2528DUCE.ResourceHandle AddRefOnChannel(Channel channel);
2532DUCE.Channel GetChannel(int index);
2536DUCE.ResourceHandle GetHandle(Channel channel);
2544DUCE.ResourceHandle Get3DHandle(Channel channel);
2552DUCE.Channel channel);
System\Windows\Media\HostVisual.cs (28)
119internal override void FreeContent(DUCE.Channel channel)
221DUCE.ResourceHandle targetsHandle = DUCE.ResourceHandle.Null;
225targetsHandle = _target._contentRoot.DuplicateHandle(_target.OutOfBandChannel, (DUCE.Channel)channel);
250private void EnsureHostedVisualConnected(DUCE.Channel channel)
265DUCE.ResourceHandle targetsHandle = DUCE.ResourceHandle.Null;
310targetsHandle = (DUCE.ResourceHandle)returnValue;
325DUCE.CompositionNode.InsertChildAt(
385(DUCE.Channel)ide.Key,
397DUCE.Channel channel,
450DoPendingDisconnect((DUCE.Channel)arg);
466private bool DoPendingDisconnect(DUCE.Channel channel)
514private void Disconnect(DUCE.Channel channel,
516DUCE.ResourceHandle hostHandle,
517DUCE.ResourceHandle targetHandle,
518DUCE.MultiChannelResource contentRoot)
522DUCE.CompositionNode.RemoveChild(
574private Dictionary<DUCE.Channel, Dispatcher> _connectedChannels = new Dictionary<DUCE.Channel, Dispatcher>();
590public DUCE.Channel Channel { get; private set; }
593public DUCE.ResourceHandle HostHandle { get; private set; }
594public DUCE.ResourceHandle TargetHandle { get; private set; }
595public DUCE.MultiChannelResource ContentRoot { get; private set; }
599DUCE.Channel channel,
602DUCE.ResourceHandle hostHandle,
603DUCE.ResourceHandle targetHandle,
604DUCE.MultiChannelResource contentRoot,
System\Windows\Media\LinearGradientBrush.cs (20)
132private void ManualUpdateResource(DUCE.Channel channel, bool skipOnChannelCheck)
143DUCE.ResourceHandle hTransform;
148hTransform = DUCE.ResourceHandle.Null;
152hTransform = ((DUCE.IResource)vTransform).GetHandle(channel);
154DUCE.ResourceHandle hRelativeTransform;
159hRelativeTransform = DUCE.ResourceHandle.Null;
163hRelativeTransform = ((DUCE.IResource)vRelativeTransform).GetHandle(channel);
165DUCE.ResourceHandle hOpacityAnimations = GetAnimationResourceHandle(OpacityProperty, channel);
166DUCE.ResourceHandle hStartPointAnimations = GetAnimationResourceHandle(StartPointProperty, channel);
167DUCE.ResourceHandle hEndPointAnimations = GetAnimationResourceHandle(EndPointProperty, channel);
171DUCE.MILCMD_LINEARGRADIENTBRUSH data;
175DUCE.CopyBytes((byte*)&data.Opacity, (byte*)&tempOpacity, 8);
184DUCE.CopyBytes((byte*)&data.StartPoint, (byte*)&tempStartPoint, 16);
187DUCE.CopyBytes((byte*)&data.EndPoint, (byte*)&tempEndPoint, 16);
193data.GradientStopsSize = (UInt32)(sizeof(DUCE.MIL_GRADIENTSTOP)*count);
197sizeof(DUCE.MILCMD_LINEARGRADIENTBRUSH),
198sizeof(DUCE.MIL_GRADIENTSTOP)*count
203DUCE.MIL_GRADIENTSTOP stopCmd;
207DUCE.CopyBytes((byte*)&stopCmd.Position,(byte*)&temp, sizeof(double));
212sizeof(DUCE.MIL_GRADIENTSTOP)
System\Windows\Media\RadialGradientBrush.cs (24)
73private void ManualUpdateResource(DUCE.Channel channel, bool skipOnChannelCheck)
84DUCE.ResourceHandle hTransform;
89hTransform = DUCE.ResourceHandle.Null;
93hTransform = ((DUCE.IResource)vTransform).GetHandle(channel);
95DUCE.ResourceHandle hRelativeTransform;
100hRelativeTransform = DUCE.ResourceHandle.Null;
104hRelativeTransform = ((DUCE.IResource)vRelativeTransform).GetHandle(channel);
106DUCE.ResourceHandle hOpacityAnimations = GetAnimationResourceHandle(OpacityProperty, channel);
107DUCE.ResourceHandle hCenterAnimations = GetAnimationResourceHandle(CenterProperty, channel);
108DUCE.ResourceHandle hRadiusXAnimations = GetAnimationResourceHandle(RadiusXProperty, channel);
109DUCE.ResourceHandle hRadiusYAnimations = GetAnimationResourceHandle(RadiusYProperty, channel);
110DUCE.ResourceHandle hGradientOriginAnimations = GetAnimationResourceHandle(GradientOriginProperty, channel);
112DUCE.MILCMD_RADIALGRADIENTBRUSH data;
118DUCE.CopyBytes((byte*)&data.Opacity, (byte*)&tempOpacity, 8);
127DUCE.CopyBytes((byte*)&data.Center, (byte*)&tempCenter, 16);
130DUCE.CopyBytes((byte*)&data.RadiusX, (byte*)&tempRadiusX, 8);
133DUCE.CopyBytes((byte*)&data.RadiusY, (byte*)&tempRadiusY, 8);
136DUCE.CopyBytes((byte*)&data.GradientOrigin, (byte*)&tempGradientOrigin, 16);
142data.GradientStopsSize = (UInt32)(sizeof(DUCE.MIL_GRADIENTSTOP)*count);
146sizeof(DUCE.MILCMD_RADIALGRADIENTBRUSH),
147sizeof(DUCE.MIL_GRADIENTSTOP)*count
152DUCE.MIL_GRADIENTSTOP stopCmd;
156DUCE.CopyBytes((byte*)&stopCmd.Position,(byte*)&temp, sizeof(double));
161sizeof(DUCE.MIL_GRADIENTSTOP)
System\Windows\Media\Visual.cs (118)
72_map_ofBrushes = new DUCE.Map<bool>();
83public DUCE.Map<bool> _map_ofBrushes;
95public abstract partial class Visual : DependencyObject, DUCE.IResource
157internal Visual(DUCE.ResourceType resourceType)
165case DUCE.ResourceType.TYPE_VISUAL:
169case DUCE.ResourceType.TYPE_VIEWPORT3DVISUAL:
193protected Visual() : this(DUCE.ResourceType.TYPE_VISUAL)
214internal bool IsOnChannel(DUCE.Channel channel)
224DUCE.ResourceHandle DUCE.IResource.GetHandle(DUCE.Channel channel)
235DUCE.ResourceHandle DUCE.IResource.Get3DHandle(DUCE.Channel channel)
246DUCE.ResourceHandle DUCE.IResource.AddRefOnChannel(DUCE.Channel channel)
251internal virtual DUCE.ResourceHandle AddRefOnChannelCore(DUCE.Channel channel)
253DUCE.ResourceType resourceType = DUCE.ResourceType.TYPE_VISUAL;
257resourceType = DUCE.ResourceType.TYPE_VIEWPORT3DVISUAL;
271internal virtual void ReleaseOnChannelCore(DUCE.Channel channel)
281void DUCE.IResource.RemoveChildFromParent(
282DUCE.IResource parent,
283DUCE.Channel channel)
285DUCE.CompositionNode.RemoveChild(
291int DUCE.IResource.GetChannelCount()
296DUCE.Channel DUCE.IResource.GetChannel(int index)
656internal virtual void FreeContent(DUCE.Channel channel)
665private bool IsCyclicBrushRootOnChannel(DUCE.Channel channel)
669Dictionary<DUCE.Channel, int> channelsToCyclicBrushMap =
691void DUCE.IResource.ReleaseOnChannel(DUCE.Channel channel)
768((DUCE.IResource)transform).ReleaseOnChannel(channel);
775((DUCE.IResource)effect).ReleaseOnChannel(channel);
782((DUCE.IResource)clip).ReleaseOnChannel(channel);
789((DUCE.IResource)opacityMask).ReleaseOnChannel(channel);
796((DUCE.IResource)cacheMode).ReleaseOnChannel(channel);
815((DUCE.IResource)visual).ReleaseOnChannel(channel);
835DUCE.Channel channel)
841Dictionary<DUCE.Channel, int> channelsToCyclicBrushMap =
845channelsToCyclicBrushMap = new Dictionary<DUCE.Channel, int>();
905DUCE.Channel channel)
932Dictionary<DUCE.Channel, int> channelsToCyclicBrushMap =
968((DUCE.IResource)this).ReleaseOnChannel(channel);
1168DUCE.Channel channel = ctx.Channel;
1192DUCE.CompositionNode.InsertChildAt(
1217DUCE.Channel channel = ctx.Channel;
1218DUCE.ResourceHandle handle = DUCE.ResourceHandle.Null;
1249handle = ((DUCE.IResource)this).AddRefOnChannel(channel);
1323private void UpdateOpacity(DUCE.Channel channel,
1324DUCE.ResourceHandle handle,
1339DUCE.CompositionNode.SetAlpha(
1355private void UpdateOpacityMask(DUCE.Channel channel,
1356DUCE.ResourceHandle handle,
1375DUCE.CompositionNode.SetAlphaMask(
1377((DUCE.IResource)opacityMask).AddRefOnChannel(channel),
1382DUCE.CompositionNode.SetAlphaMask(
1384DUCE.ResourceHandle.Null,
1398private void UpdateTransform(DUCE.Channel channel,
1399DUCE.ResourceHandle handle,
1418DUCE.CompositionNode.SetTransform(
1420((DUCE.IResource)transform).AddRefOnChannel(channel),
1425DUCE.CompositionNode.SetTransform(
1427DUCE.ResourceHandle.Null,
1440private void UpdateEffect(DUCE.Channel channel,
1441DUCE.ResourceHandle handle,
1460DUCE.CompositionNode.SetEffect(
1462((DUCE.IResource)effect).AddRefOnChannel(channel),
1467DUCE.CompositionNode.SetEffect(
1469DUCE.ResourceHandle.Null,
1479private void UpdateCacheMode(DUCE.Channel channel,
1480DUCE.ResourceHandle handle,
1499DUCE.CompositionNode.SetCacheMode(
1501((DUCE.IResource)cacheMode).AddRefOnChannel(channel),
1506DUCE.CompositionNode.SetCacheMode(
1508DUCE.ResourceHandle.Null,
1522private void UpdateClip(DUCE.Channel channel,
1523DUCE.ResourceHandle handle,
1542DUCE.CompositionNode.SetClip(
1544((DUCE.IResource)clip).AddRefOnChannel(channel),
1549DUCE.CompositionNode.SetClip(
1551DUCE.ResourceHandle.Null,
1566private void UpdateScrollableAreaClip(DUCE.Channel channel,
1567DUCE.ResourceHandle handle,
1577DUCE.CompositionNode.SetScrollableAreaClip(
1594private void UpdateOffset(DUCE.Channel channel,
1595DUCE.ResourceHandle handle,
1609DUCE.CompositionNode.SetOffset(
1626private void UpdateGuidelines(DUCE.Channel channel,
1627DUCE.ResourceHandle handle,
1644DUCE.CompositionNode.SetGuidelineCollection(
1661private void UpdateRenderOptions(DUCE.Channel channel,
1662DUCE.ResourceHandle handle,
1719DUCE.CompositionNode.SetRenderOptions(
1763DUCE.ResourceHandle handle)
1765DUCE.Channel channel = ctx.Channel;
1788DUCE.CompositionNode.RemoveAllChildren(
1819DUCE.CompositionNode.InsertChildAt(
1821((DUCE.IResource)child).GetHandle(channel),
2689DUCE.Channel channel = _proxy.GetChannel(i);
2694DUCE.IResource childResource = (DUCE.IResource)child;
2863((DUCE.IResource)transform));
2973((DUCE.IResource)imageEffect));
3394((DUCE.IResource)cacheMode));
3493((DUCE.IResource)oldClip));
3774((DUCE.IResource)opacityMask));
3880DUCE.IResource attachedResource)
3897DUCE.Channel channel = _proxy.GetChannel(i);
4949DUCE.Channel channel,
5028DUCE.Channel channel,
5053DUCE.Channel channel,
5361private static readonly UncommonField<Dictionary<DUCE.Channel, int>> ChannelsToCyclicBrushMapField
5362= new UncommonField<Dictionary<DUCE.Channel, int>>();
System\Windows\Media3D\Generated\SpotLight.cs (26)
181internal override void UpdateResource(DUCE.Channel channel, bool skipOnChannelCheck)
194DUCE.ResourceHandle hTransform;
199hTransform = DUCE.ResourceHandle.Null;
203hTransform = ((DUCE.IResource)vTransform).GetHandle(channel);
207DUCE.ResourceHandle hColorAnimations = GetAnimationResourceHandle(ColorProperty, channel);
208DUCE.ResourceHandle hPositionAnimations = GetAnimationResourceHandle(PositionProperty, channel);
209DUCE.ResourceHandle hRangeAnimations = GetAnimationResourceHandle(RangeProperty, channel);
210DUCE.ResourceHandle hConstantAttenuationAnimations = GetAnimationResourceHandle(ConstantAttenuationProperty, channel);
211DUCE.ResourceHandle hLinearAttenuationAnimations = GetAnimationResourceHandle(LinearAttenuationProperty, channel);
212DUCE.ResourceHandle hQuadraticAttenuationAnimations = GetAnimationResourceHandle(QuadraticAttenuationProperty, channel);
213DUCE.ResourceHandle hDirectionAnimations = GetAnimationResourceHandle(DirectionProperty, channel);
214DUCE.ResourceHandle hOuterConeAngleAnimations = GetAnimationResourceHandle(OuterConeAngleProperty, channel);
215DUCE.ResourceHandle hInnerConeAngleAnimations = GetAnimationResourceHandle(InnerConeAngleProperty, channel);
218DUCE.MILCMD_SPOTLIGHT data;
273sizeof(DUCE.MILCMD_SPOTLIGHT));
277internal override DUCE.ResourceHandle AddRefOnChannelCore(DUCE.Channel channel)
279if (_duceResource.CreateOrAddRefOnChannel(this, channel, System.Windows.Media.Composition.DUCE.ResourceType.TYPE_SPOTLIGHT))
282if (vTransform != null) ((DUCE.IResource)vTransform).AddRefOnChannel(channel);
292internal override void ReleaseOnChannelCore(DUCE.Channel channel)
299if (vTransform != null) ((DUCE.IResource)vTransform).ReleaseOnChannel(channel);
304internal override DUCE.ResourceHandle GetHandleCore(DUCE.Channel channel)
314internal override DUCE.Channel GetChannelCore(int index)
370internal System.Windows.Media.Composition.DUCE.MultiChannelResource _duceResource = new System.Windows.Media.Composition.DUCE.MultiChannelResource();
System\Windows\Media3D\Viewport3DVisual.cs (32)
34public sealed class Viewport3DVisual : Visual, DUCE.IResource, IVisual3DContainer
45public Viewport3DVisual() : base(DUCE.ResourceType.TYPE_VIEWPORT3DVISUAL)
224((DUCE.IResource) e.OldValue));
412DUCE.Channel channel = _proxy3D.GetChannel(i);
417DUCE.IResource childResource = (DUCE.IResource)child;
649internal override DUCE.ResourceHandle AddRefOnChannelCore(DUCE.Channel channel)
651DUCE.ResourceHandle handle =
654bool created = _proxy3D.CreateOrAddRefOnChannel(this, channel, DUCE.ResourceType.TYPE_VISUAL3D);
665DUCE.Viewport3DVisualNode.Set3DChild(
674internal override void ReleaseOnChannelCore(DUCE.Channel channel)
685int DUCE.IResource.GetChannelCount()
690DUCE.Channel DUCE.IResource.GetChannel(int index)
722DUCE.Channel channel = ctx.Channel;
743DUCE.Viewport3DVisualNode.SetCamera(
744((DUCE.IResource)this).GetHandle(channel),
745((DUCE.IResource)camera).AddRefOnChannel(channel),
750DUCE.Viewport3DVisualNode.SetCamera(
751((DUCE.IResource)this).GetHandle(channel),
752DUCE.ResourceHandle.Null,
765DUCE.Viewport3DVisualNode.SetViewport(
766((DUCE.IResource)this).GetHandle(channel),
799DUCE.Visual3DNode.InsertChildAt(
801((DUCE.IResource)child).GetHandle(channel),
817internal override void FreeContent(DUCE.Channel channel)
826((DUCE.IResource)camera).ReleaseOnChannel(channel);
837((DUCE.IResource)visual).ReleaseOnChannel(channel);
861DUCE.ResourceHandle DUCE.IResource.Get3DHandle(DUCE.Channel channel)
System\Windows\Media3D\Visual3D.cs (57)
25public abstract partial class Visual3D : DependencyObject, DUCE.IResource, IVisual3DContainer
77internal bool IsOnChannel(DUCE.Channel channel)
87DUCE.ResourceHandle DUCE.IResource.GetHandle(DUCE.Channel channel)
96DUCE.ResourceHandle DUCE.IResource.Get3DHandle(DUCE.Channel channel)
107DUCE.ResourceHandle DUCE.IResource.AddRefOnChannel(DUCE.Channel channel)
109_proxy.CreateOrAddRefOnChannel(this, channel, DUCE.ResourceType.TYPE_VISUAL3D);
118void DUCE.IResource.RemoveChildFromParent(
119DUCE.IResource parent,
120DUCE.Channel channel)
122DUCE.Visual3DNode.RemoveChild(
128int DUCE.IResource.GetChannelCount()
133DUCE.Channel DUCE.IResource.GetChannel(int index)
170((DUCE.IResource) e.OldValue));
314DUCE.Channel channel = _proxy.GetChannel(i);
319DUCE.IResource childResource = (DUCE.IResource)child;
364((DUCE.IResource)_zeroScale));
374((DUCE.IResource)transform));
1146DUCE.Channel channel = ctx.Channel;
1147DUCE.ResourceHandle handle = DUCE.ResourceHandle.Null;
1172handle = ((DUCE.IResource)this).AddRefOnChannel(channel);
1199DUCE.Visual3DNode.SetTransform(
1201((DUCE.IResource)transform).AddRefOnChannel(channel),
1206DUCE.Visual3DNode.SetTransform(
1208((DUCE.IResource)_zeroScale).AddRefOnChannel(channel),
1213DUCE.Visual3DNode.SetTransform(
1215DUCE.ResourceHandle.Null,
1241DUCE.Visual3DNode.InsertChildAt(
1243((DUCE.IResource)child).GetHandle(channel),
1268DUCE.Channel channel = ctx.Channel;
1283DUCE.Visual3DNode.SetContent(
1284((DUCE.IResource)this).GetHandle(channel),
1285((DUCE.IResource)_visual3DModel).AddRefOnChannel(channel),
1292DUCE.Visual3DNode.SetContent(
1293((DUCE.IResource)this).GetHandle(channel),
1294DUCE.ResourceHandle.Null,
1438internal void FreeDUCEResources(DUCE.Channel channel)
1447((DUCE.IResource)transform).ReleaseOnChannel(channel);
1452((DUCE.IResource)_zeroScale).ReleaseOnChannel(channel);
1459((DUCE.IResource)model).ReleaseOnChannel(channel);
1468void DUCE.IResource.ReleaseOnChannel(DUCE.Channel channel)
1473internal void ReleaseOnChannelCore(DUCE.Channel channel)
1488((DUCE.IResource)child).ReleaseOnChannel(channel);
1497DUCE.IResource attachedResource)
1509DUCE.Channel channel = _proxy.GetChannel(i);
1905DUCE.Channel channel,
1946DUCE.Channel channel,
1999DUCE.Channel channel,