PixelShader.UriSource Property

 

Gets or sets a Pack URI reference to HLSL bytecode in the assembly.

Namespace:   System.Windows.Media.Effects
Assembly:  PresentationCore (in PresentationCore.dll)

public Uri UriSource { get; set; }

Property Value

Type: System.Uri

The Pack URI reference to HLSL bytecode in the assembly.

The Uri is a Pack URI reference to a file inside the assembly.

The following code example shows how to use the Pack URI syntax to load a pixel shader named "sepiaShader.fx.ps" from the application's local executable.

pack://application:,,,/myEffects;component/sepiaShader.fx.ps

.NET Framework
Available since 3.0
Silverlight
Available since 3.0
Return to top
Show: