言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

Shader.SetGlobalBuffer

public static function SetGlobalBuffer(propertyName: string, buffer: ComputeBuffer): void;

Description

Sets a global compute buffer property for all shaders.

シェーダーが明確なマテリアルを持たない( Properties ブロックが定義されていない)場合、 グローバルなプロパティ が使用されます。 See Also: SetGlobalTexture, ComputeBuffer クラス, ShaderLab ドキュメント.