Rendering & implementation · 1 / 10

Compute Shader

GPU上で粒子や流体の並列計算を行う。

Compare in motion

数千の粒子

Synchronized comparison
AReference
一列で順番に更新するモデル

一列で順番に更新するモデル

BCompute Shader100%
多数の要素の計算をまとめられる

多数の要素の計算をまとめられる

Loading demo…

Scrub to pause and inspect. At 0%, B matches A; at 100%, B shows the effect. The scene repeats every 8 seconds.

Look for: GPUで並列に更新 → 一斉に動き出す。

This model simplifies the technique to show its use case and effect. Operation counts describe the model; they are not performance measurements.

Read the storyboard

例: 数千の粒子

  1. 1. Start

    多くの粒子が止まる

  2. 2. Change

    GPUで並列に更新

  3. 3. Result

    一斉に動き出す

多数の要素の計算をまとめられる。時間変化を示す模式図です。実際の描画結果や処理速度を再現したものではありません。

How it works

  1. 1. Input

    大量の要素のデータ

  2. 2. Process

    GPU の並列プログラムで計算

  3. 3. Result

    同時更新されたデータ

A schematic of Compute Shader. It shows the relationship between input, process, and result; exact values and rendering depend on the implementation.

Further reading

Unity ComputeShader ↗

A general reference for this subcategory.