表示テーマ
RenderPassSettings
RenderPassSettingsは、RenderPassesの個別設定をまとめる型です。取得元の設定から値を編集し、所有するComponentへ反映します。
型の情報
- 名前空間:
NEMEngine - 型:
NEMEngine.RenderPassSettings(Class) - 継承元:NEMEngine.SettingsObject
GetSampler
csharp
public JsonObject GetSampler(string resource)設定されているSamplerを取得します。
| 引数 | 型 | 既定値 |
|---|---|---|
resource | string | 必須 |
戻り値:System.Text.Json.Nodes.JsonObject。
SetPassInput
csharp
public void SetPassInput(string resource, UUID pass, string output = "Color")別Passの出力を、このPassの入力へ接続します。
| 引数 | 型 | 既定値 |
|---|---|---|
resource | string | 必須 |
pass | NEMEngine.UUID | 必須 |
output | string | Color |
SetSampler
csharp
public void SetSampler(string resource, JsonObject settings)Textureのサンプル方法を設定します。
| 引数 | 型 | 既定値 |
|---|---|---|
resource | string | 必須 |
settings | System.Text.Json.Nodes.JsonObject | 必須 |
SetSceneInput
csharp
public void SetSceneInput(string resource, string input)SceneColorやDepthなどのScene資源をPassの入力へ接続します。
| 引数 | 型 | 既定値 |
|---|---|---|
resource | string | 必須 |
input | string | 必須 |
SetSource
csharp
public void SetSource(RenderPassSourceKind kind, UUID pass = default(UUID), string output = "Color")Passの主入力となる取得元を設定します。
| 引数 | 型 | 既定値 |
|---|---|---|
kind | NEMEngine.RenderPassSourceKind | 必須 |
pass | NEMEngine.UUID | |
output | string | Color |
SetTexture
csharp
public void SetTexture(string resource, Texture? texture)名前またはIDが一致するTexture Parameterを設定します。
| 引数 | 型 | 既定値 |
|---|---|---|
resource | string | 必須 |
texture | NEMEngine.Texture? | 必須 |
ToJson
csharp
public JsonObject ToJson()保持している設定やデータをJSONへ書き出します。
戻り値:System.Text.Json.Nodes.JsonObject。
adaptiveResolution
csharp
public bool adaptiveResolutionGPU時間に応じた動的解像度調整を使います。
操作:読取・変更。
adjustmentIntervalFrames
csharp
public uint adjustmentIntervalFrames解像度を再調整するframe間隔です。
操作:読取・変更。
anchor
csharp
public RenderPassAnchor anchor自分側の接続基準位置です。
操作:読取・変更。
enabled
csharp
public bool enabledこのComponentの処理を有効にします。GameObject全体のアクティブ状態とは別です。
操作:読取・変更。
gpuBudgetMs
csharp
public float gpuBudgetMsPassが目標とする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 materialPassMaterial内で使うPass名です。
操作:読取・変更。
maxResolutionScale
csharp
public float maxResolutionScale動的解像度の上限倍率です。
操作:読取・変更。
minResolutionScale
csharp
public float minResolutionScale動的解像度の下限倍率です。
操作:読取・変更。
name
csharp
public string name対象や設定を識別する名前です。
操作:読取・変更。
outputs
csharp
public IReadOnlyList<RenderPassOutputSettings> outputsPassの出力Textureの定義一覧です。
操作:読取専用。
rayGenerationIndex
csharp
public uint rayGenerationIndexRay Tracingで使うRay Generationの番号です。
操作:読取・変更。
resolutionStep
csharp
public float resolutionStep動的解像度を1回に変更する倍率の幅です。
操作:読取・変更。
sourceKind
csharp
public RenderPassSourceKind sourceKindPass主入力の取得元の種類です。
操作:読取・変更。
実行時の扱い
Nativeと接続する操作は、Scriptが実行される有効なWorld内で使用します。破棄したGameObjectやComponentへのアクセスは避けてください。設定Snapshotは取得・編集・反映を1組で扱います。