カスタムシェーダー読み取り
dx12_read_shaderReads existing custom shader source code (.hlsl) to review before editing and rewriting.
Instructions
既存のカスタムシェーダー(.hlsl)のソースをそのまま読む。dx12_create_shader は新規/上書き書き込み専用で読み取りが無いため、既存シェーダーを確認してから修正版を書き戻す編集ループに使う。{path, code, compiled}(compiled は直近の既知のコンパイル成否)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | assets/shaders 相対パス。例: ToonShade.hlsl |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | エンジンからの生の結果。実際の形は各ツールの説明 / dx12_describe_components を参照。text にも同内容を JSON 文字列で格納。 |