Skip to content

RenderPassSettings ​

RenderPassSettingsは、RenderPassesの個別設定をまとめる型です。取得元の設定から値を編集し、所有するComponentへ反映します。

使い方と前提条件 · C# API一覧

型の情報 ​

GetSampler ​

csharp
public JsonObject GetSampler(string resource)

設定されているSamplerを取得します。

引数型既定値
resourcestring必須

戻り値:System.Text.Json.Nodes.JsonObject。

SetPassInput ​

csharp
public void SetPassInput(string resource, UUID pass, string output = "Color")

別Passの出力を、このPassの入力へ接続します。

引数型既定値
resourcestring必須
passNEMEngine.UUID必須
outputstringColor

SetSampler ​

csharp
public void SetSampler(string resource, JsonObject settings)

Textureのサンプル方法を設定します。

引数型既定値
resourcestring必須
settingsSystem.Text.Json.Nodes.JsonObject必須

SetSceneInput ​

csharp
public void SetSceneInput(string resource, string input)

SceneColorやDepthなどのScene資源をPassの入力へ接続します。

引数型既定値
resourcestring必須
inputstring必須

SetSource ​

csharp
public void SetSource(RenderPassSourceKind kind, UUID pass = default(UUID), string output = "Color")

Passの主入力となる取得元を設定します。

引数型既定値
kindNEMEngine.RenderPassSourceKind必須
passNEMEngine.UUID
outputstringColor

SetTexture ​

csharp
public void SetTexture(string resource, Texture? texture)

名前またはIDが一致するTexture Parameterを設定します。

引数型既定値
resourcestring必須
textureNEMEngine.Texture?必須

ToJson ​

csharp
public JsonObject ToJson()

保持している設定やデータをJSONへ書き出します。

戻り値:System.Text.Json.Nodes.JsonObject。

adaptiveResolution ​

csharp
public bool adaptiveResolution

GPU時間に応じた動的解像度調整を使います。

操作:読取・変更。

adjustmentIntervalFrames ​

csharp
public uint adjustmentIntervalFrames

解像度を再調整するframe間隔です。

操作:読取・変更。

anchor ​

csharp
public RenderPassAnchor anchor

自分側の接続基準位置です。

操作:読取・変更。

enabled ​

csharp
public bool enabled

このComponentの処理を有効にします。GameObject全体のアクティブ状態とは別です。

操作:読取・変更。

gpuBudgetMs ​

csharp
public float gpuBudgetMs

Passが目標とするGPU時間です。単位はmsです。

操作:読取・変更。

id ​

csharp
public UUID id

対象を照合する識別子です。

操作:読取専用。

kind ​

csharp
public RenderPassKind kind

発生元・イベント・Passなどの種類です。

操作:読取・変更。

material ​

csharp
public AssetGUID material

描画に使うMaterial参照です。既定MaterialはEngine側から解決されます。

操作:読取・変更。

materialPass ​

csharp
public string materialPass

Material内で使うPass名です。

操作:読取・変更。

maxResolutionScale ​

csharp
public float maxResolutionScale

動的解像度の上限倍率です。

操作:読取・変更。

minResolutionScale ​

csharp
public float minResolutionScale

動的解像度の下限倍率です。

操作:読取・変更。

name ​

csharp
public string name

対象や設定を識別する名前です。

操作:読取・変更。

outputs ​

csharp
public IReadOnlyList<RenderPassOutputSettings> outputs

Passの出力Textureの定義一覧です。

操作:読取専用。

rayGenerationIndex ​

csharp
public uint rayGenerationIndex

Ray Tracingで使うRay Generationの番号です。

操作:読取・変更。

resolutionStep ​

csharp
public float resolutionStep

動的解像度を1回に変更する倍率の幅です。

操作:読取・変更。

sourceKind ​

csharp
public RenderPassSourceKind sourceKind

Pass主入力の取得元の種類です。

操作:読取・変更。

実行時の扱い ​

Nativeと接続する操作は、Scriptが実行される有効なWorld内で使用します。破棄したGameObjectやComponentへのアクセスは避けてください。設定Snapshotは取得・編集・反映を1組で扱います。

現行版マニュアル · 8ea58ba2 · 2026-10-28確認