Version: 5.6

CommandBuffer

class in UnityEngine.Rendering

マニュアルに切り替える

説明

実行するグラフィックスコマンドのリスト

コマンドバッファはレンダリングコマンド ("set render target, draw mesh, ...") のリストを保持し、Camera Rendering (Camera.AddCommandBufferを参照) や Light Rendering (Light.AddCommandBuffer を参照) を実行中にさまざまなポイントで実行するように設定でき、すぐに実行されます (Graphics.ExecuteCommandBuffer を参照)。

Typically they would be used to extend Unity's rendering pipeline in some custom ways. For example, you could render some additional objects into deferred rendering g-buffer after all regular objects are done, or do custom processing of light shadow maps. See command buffers overview page for more details.

作成した Command Buffer は、何度でも実行することができます。

See Also: Camera.AddCommandBuffer, Light.AddCommandBuffer, CameraEvent, LightEvent, Graphics.ExecuteCommandBuffer, command buffers overview.

変数

nameこのコマンドバッファーの名前
sizeInBytesこのコマンドバッファーのバイトでのサイズ(読み出し専用)

コンストラクタ

CommandBuffer新しい空の Command Buffer を作成します。

Public 関数

BeginSampleAdds a command to begin profile sampling.
Blit"blit into a render texture" コマンドを追加します。
Clearバッファのすべてのコマンドをクリアします。
ClearRenderTarget"clear render target" コマンドを追加します。
CopyCounterValueAdds a command to copy ComputeBuffer counter value.
CopyTextureAdds a command to copy a texture into another texture.
DisableShaderKeywordAdds a command to disable global shader keyword.
DispatchComputeAdd a command to execute a ComputeShader.
DrawMesh"Draw Mesh" コマンドをを追加します。
DrawMeshInstancedAdd a "draw mesh with instancing" command.The command will not immediately fail and throw an exception if Material.enableInstancing is false, but it will log an error and skips rendering each time the command is being executed if such a condition is detected.InvalidOperationException will be thrown if the current platform doesn't support this API (i.e. if GPU instancing is not available). See SystemInfo.supportsInstancing.
DrawMeshInstancedIndirectAdd a "draw mesh with indirect instancing" command.
DrawProcedural"draw procedural geometry" コマンドを追加。
DrawProceduralIndirect"draw procedural geometry" コマンドを追加。
DrawRendererDraw Renderer コマンドを追加します。
EnableShaderKeywordAdds a command to enable global shader keyword.
EndSampleAdds a command to begin profile sampling.
GetTemporaryRT"get a temporary render texture" コマンドを追加します。
IssuePluginEventネイティブコードプラグインにユーザーが定義したイベントを送信します
ReleaseTemporaryRT"release a temporary render texture" コマンドを追加します。
SetComputeBufferParamAdds a command to set an input or output buffer parameter on a ComputeShader.
SetComputeFloatParamAdds a command to set a float parameter on a ComputeShader.
SetComputeFloatParamsAdds a command to set multiple consecutive float parameters on a ComputeShader.
SetComputeIntParamAdds a command to set an integer parameter on a ComputeShader.
SetComputeIntParamsAdds a command to set multiple consecutive integer parameters on a ComputeShader.
SetComputeTextureParamAdds a command to set a texture parameter on a ComputeShader.
SetComputeVectorParamAdds a command to set a vector parameter on a ComputeShader.
SetGlobalBufferAdd a "set global shader buffer property" command.
SetGlobalColor"set global shader color property" コマンドを追加します。
SetGlobalDepthBiasAdd a command to set global depth bias.
SetGlobalFloat"set global shader float property" コマンドを追加します。
SetGlobalFloatArray"set global shader float array property" コマンドを追加します。
SetGlobalMatrix"set global shader matrix property" コマンドを追加します。
SetGlobalMatrixArray"set global shader matrix array property" コマンドを追加します。
SetGlobalTextureRenderTexture を参照する "set global shader texture property" コマンドを追加します。
SetGlobalVector"set global shader vector property" コマンドを追加します。
SetGlobalVectorArray"set global shader vector array property" コマンドを追加します。
SetProjectionMatrixAdd a command to set the projection matrix.
SetRenderTarget"set active render target" コマンドを追加します。
SetShadowSamplingMode"set global shader matrix property" コマンドを追加します。
SetViewMatrixAdd a command to set the view matrix.
SetViewportAdd a command to set the rendering viewport.
SetViewProjectionMatricesAdd a command to set the view and projection matrices.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961