PixelShader.UriSource 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定組合語言中 HLSL 位元碼的 Pack URI 參考。
public:
property Uri ^ UriSource { Uri ^ get(); void set(Uri ^ value); };
public Uri UriSource { get; set; }
member this.UriSource : Uri with get, set
Public Property UriSource As Uri
屬性值
Pack URI 在組合語言中參考 HLSL 位元碼。
範例
以下程式碼範例說明如何使用 Pack URI 語法,從應用程式的本地執行檔載入名為「sepiaShader.fx.ps」的像素著色器。
pack://application:,,,/myEffects;component/sepiaShader.fx.ps
備註
這是 Uri 組件內檔案的 Pack URI 參考。