Interface IBaseCommandBuffer
This interface declares functions shared by several command buffer types.
Namespace: UnityEngine .Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public interface IBaseCommandBuffer
Methods
BeginSample(string)
Wraps BeginSample on a CommandBuffer.
Declaration
void BeginSample(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name |
BeginSample(ProfilerMarker)
Wraps BeginSample on a CommandBuffer.
Declaration
void BeginSample(ProfilerMarker marker)
Parameters
Type | Name | Description |
---|---|---|
Profiler |
marker |
BeginSample(CustomSampler)
Wraps BeginSample on a CommandBuffer.
Declaration
void BeginSample(CustomSampler sampler)
Parameters
Type | Name | Description |
---|---|---|
Custom |
sampler |
DisableKeyword(ComputeShader, in LocalKeyword)
Wraps DisableKeyword on a CommandBuffer.
Declaration
void DisableKeyword(ComputeShader computeShader, in LocalKeyword keyword)
Parameters
Type | Name | Description |
---|---|---|
Compute |
computeShader | |
Local |
keyword |
DisableKeyword(Material, in LocalKeyword)
Wraps DisableKeyword on a CommandBuffer.
Declaration
void DisableKeyword(Material material, in LocalKeyword keyword)
Parameters
Type | Name | Description |
---|---|---|
Material | material | |
Local |
keyword |
DisableKeyword(in GlobalKeyword)
Wraps DisableKeyword on a CommandBuffer.
Declaration
void DisableKeyword(in GlobalKeyword keyword)
Parameters
Type | Name | Description |
---|---|---|
Global |
keyword |
DisableScissorRect()
Wraps DisableScissorRect on a CommandBuffer.
Declaration
void DisableScissorRect()
DisableShaderKeyword(string)
Wraps DisableShaderKeyword on a CommandBuffer.
Declaration
void DisableShaderKeyword(string keyword)
Parameters
Type | Name | Description |
---|---|---|
string | keyword |
EnableKeyword(ComputeShader, in LocalKeyword)
Wraps EnableKeyword on a CommandBuffer.
Declaration
void EnableKeyword(ComputeShader computeShader, in LocalKeyword keyword)
Parameters
Type | Name | Description |
---|---|---|
Compute |
computeShader | |
Local |
keyword |
EnableKeyword(Material, in LocalKeyword)
Wraps EnableKeyword on a CommandBuffer.
Declaration
void EnableKeyword(Material material, in LocalKeyword keyword)
Parameters
Type | Name | Description |
---|---|---|
Material | material | |
Local |
keyword |
EnableKeyword(in GlobalKeyword)
Wraps EnableKeyword on a CommandBuffer.
Declaration
void EnableKeyword(in GlobalKeyword keyword)
Parameters
Type | Name | Description |
---|---|---|
Global |
keyword |
EnableScissorRect(Rect)
Wraps EnableScissorRect on a CommandBuffer.
Declaration
void EnableScissorRect(Rect scissor)
Parameters
Type | Name | Description |
---|---|---|
Rect | scissor |
EnableShaderKeyword(string)
Wraps EnableShaderKeyword on a CommandBuffer.
Declaration
void EnableShaderKeyword(string keyword)
Parameters
Type | Name | Description |
---|---|---|
string | keyword |
EndSample(string)
Wraps EndSample on a CommandBuffer.
Declaration
void EndSample(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name |
EndSample(ProfilerMarker)
Wraps EndSample on a CommandBuffer.
Declaration
void EndSample(ProfilerMarker marker)
Parameters
Type | Name | Description |
---|---|---|
Profiler |
marker |
EndSample(CustomSampler)
Wraps EndSample on a CommandBuffer.
Declaration
void EndSample(CustomSampler sampler)
Parameters
Type | Name | Description |
---|---|---|
Custom |
sampler |
IncrementUpdateCount(RenderTargetIdentifier)
Wraps IncrementUpdateCount on a CommandBuffer.
Declaration
void IncrementUpdateCount(RenderTargetIdentifier dest)
Parameters
Type | Name | Description |
---|---|---|
Render |
dest |
InvokeOnRenderObjectCallbacks()
Wraps InvokeOnRenderObjectCallbacks on a CommandBuffer.
Declaration
void InvokeOnRenderObjectCallbacks()
IssuePluginCustomBlit(IntPtr, uint, RenderTargetIdentifier, RenderTargetIdentifier, uint, uint)
Wraps IssuePluginCustomBlit on a CommandBuffer.
Declaration
void IssuePluginCustomBlit(IntPtr callback, uint command, RenderTargetIdentifier source, RenderTargetIdentifier dest, uint commandParam, uint commandFlags)
Parameters
Type | Name | Description |
---|---|---|
Int |
callback | |
uint | command | |
Render |
source | |
Render |
dest | |
uint | commandParam | |
uint | commandFlags |
IssuePluginCustomTextureUpdateV2(IntPtr, Texture, uint)
Wraps IssuePluginCustomTextureUpdateV2 on a CommandBuffer.
Declaration
void IssuePluginCustomTextureUpdateV2(IntPtr callback, Texture targetTexture, uint userData)
Parameters
IssuePluginEvent(IntPtr, int)
Wraps IssuePluginEvent on a CommandBuffer.
Declaration
void IssuePluginEvent(IntPtr callback, int eventID)
Parameters
IssuePluginEventAndData(IntPtr, int, IntPtr)
Wraps IssuePluginEventAndData on a CommandBuffer.
Declaration
void IssuePluginEventAndData(IntPtr callback, int eventID, IntPtr data)
Parameters
MarkLateLatchMatrixShaderPropertyID(CameraLateLatchMatrixType, int)
Wraps MarkLateLatchMatrixShaderPropertyID on a CommandBuffer.
Declaration
void MarkLateLatchMatrixShaderPropertyID(CameraLateLatchMatrixType matrixPropertyType, int shaderPropertyID)
Parameters
Type | Name | Description |
---|---|---|
Camera |
matrixPropertyType | |
int | shaderPropertyID |
SetGlobalBuffer(int, ComputeBuffer)
Wraps SetGlobalBuffer on a CommandBuffer.
Declaration
void SetGlobalBuffer(int nameID, ComputeBuffer value)
Parameters
Type | Name | Description |
---|---|---|
int | nameID | |
Compute |
value |
SetGlobalBuffer(int, GraphicsBuffer)
Wraps SetGlobalBuffer on a CommandBuffer.
Declaration
void SetGlobalBuffer(int nameID, GraphicsBuffer value)
Parameters
Type | Name | Description |
---|---|---|
int | nameID | |
Graphics |
value |
SetGlobalBuffer(string, ComputeBuffer)
Wraps SetGlobalBuffer on a CommandBuffer.
Declaration
void SetGlobalBuffer(string name, ComputeBuffer value)
Parameters
Type | Name | Description |
---|---|---|
string | name | |
Compute |
value |
SetGlobalBuffer(string, GraphicsBuffer)
Wraps SetGlobalBuffer on a CommandBuffer.
Declaration
void SetGlobalBuffer(string name, GraphicsBuffer value)
Parameters
Type | Name | Description |
---|---|---|
string | name | |
Graphics |
value |
SetGlobalColor(int, Color)
Wraps SetGlobalColor on a CommandBuffer.
Declaration
void SetGlobalColor(int nameID, Color value)
Parameters
SetGlobalColor(string, Color)
Wraps SetGlobalColor on a CommandBuffer.
Declaration
void SetGlobalColor(string name, Color value)
Parameters
SetGlobalConstantBuffer(ComputeBuffer, int, int, int)
Wraps SetGlobalConstantBuffer on a CommandBuffer.
Declaration
void SetGlobalConstantBuffer(ComputeBuffer buffer, int nameID, int offset, int size)
Parameters
Type | Name | Description |
---|---|---|
Compute |
buffer | |
int | nameID | |
int | offset | |
int | size |
SetGlobalConstantBuffer(ComputeBuffer, string, int, int)
Wraps SetGlobalConstantBuffer on a CommandBuffer.
Declaration
void SetGlobalConstantBuffer(ComputeBuffer buffer, string name, int offset, int size)
Parameters
Type | Name | Description |
---|---|---|
Compute |
buffer | |
string | name | |
int | offset | |
int | size |
SetGlobalConstantBuffer(GraphicsBuffer, int, int, int)
Wraps SetGlobalConstantBuffer on a CommandBuffer.
Declaration
void SetGlobalConstantBuffer(GraphicsBuffer buffer, int nameID, int offset, int size)
Parameters
Type | Name | Description |
---|---|---|
Graphics |
buffer | |
int | nameID | |
int | offset | |
int | size |
SetGlobalConstantBuffer(GraphicsBuffer, string, int, int)
Wraps SetGlobalConstantBuffer on a CommandBuffer.
Declaration
void SetGlobalConstantBuffer(GraphicsBuffer buffer, string name, int offset, int size)
Parameters
Type | Name | Description |
---|---|---|
Graphics |
buffer | |
string | name | |
int | offset | |
int | size |
SetGlobalDepthBias(float, float)
Wraps SetGlobalDepthBias on a CommandBuffer.
Declaration
void SetGlobalDepthBias(float bias, float slopeBias)
Parameters
SetGlobalFloat(int, float)
Wraps SetGlobalFloat on a CommandBuffer.
Declaration
void SetGlobalFloat(int nameID, float value)
Parameters
SetGlobalFloat(string, float)
Wraps SetGlobalFloat on a CommandBuffer.
Declaration
void SetGlobalFloat(string name, float value)
Parameters
SetGlobalFloatArray(int, List<float>)
Wraps SetGlobalFloatArray on a CommandBuffer.
Declaration
void SetGlobalFloatArray(int nameID, List<float> values)
Parameters
SetGlobalFloatArray(int, float[])
Wraps SetGlobalFloatArray on a CommandBuffer.
Declaration
void SetGlobalFloatArray(int nameID, float[] values)
Parameters
SetGlobalFloatArray(string, List<float>)
Wraps SetGlobalFloatArray on a CommandBuffer.
Declaration
void SetGlobalFloatArray(string propertyName, List<float> values)
Parameters
SetGlobalFloatArray(string, float[])
Wraps SetGlobalFloatArray on a CommandBuffer.
Declaration
void SetGlobalFloatArray(string propertyName, float[] values)
Parameters
SetGlobalInt(int, int)
Wraps SetGlobalInt on a CommandBuffer.
Declaration
void SetGlobalInt(int nameID, int value)
Parameters
SetGlobalInt(string, int)
Wraps SetGlobalInt on a CommandBuffer.
Declaration
void SetGlobalInt(string name, int value)
Parameters
SetGlobalInteger(int, int)
Wraps SetGlobalInteger on a CommandBuffer.
Declaration
void SetGlobalInteger(int nameID, int value)
Parameters
SetGlobalInteger(string, int)
Wraps SetGlobalInteger on a CommandBuffer.
Declaration
void SetGlobalInteger(string name, int value)
Parameters
SetGlobalMatrix(int, Matrix4x4)
Wraps SetGlobalMatrix on a CommandBuffer.
Declaration
void SetGlobalMatrix(int nameID, Matrix4x4 value)
Parameters
SetGlobalMatrix(string, Matrix4x4)
Wraps SetGlobalMatrix on a CommandBuffer.
Declaration
void SetGlobalMatrix(string name, Matrix4x4 value)
Parameters
SetGlobalMatrixArray(int, List<Matrix4x4>)
Wraps SetGlobalMatrixArray on a CommandBuffer.
Declaration
void SetGlobalMatrixArray(int nameID, List<Matrix4x4> values)
Parameters
SetGlobalMatrixArray(int, Matrix4x4[])
Wraps SetGlobalMatrixArray on a CommandBuffer.
Declaration
void SetGlobalMatrixArray(int nameID, Matrix4x4[] values)
Parameters
SetGlobalMatrixArray(string, List<Matrix4x4>)
Wraps SetGlobalMatrixArray on a CommandBuffer.
Declaration
void SetGlobalMatrixArray(string propertyName, List<Matrix4x4> values)
Parameters
SetGlobalMatrixArray(string, Matrix4x4[])
Wraps SetGlobalMatrixArray on a CommandBuffer.
Declaration
void SetGlobalMatrixArray(string propertyName, Matrix4x4[] values)
Parameters
SetGlobalTexture(int, TextureHandle)
Wraps SetGlobalTexture on a CommandBuffer.
Declaration
void SetGlobalTexture(int nameID, TextureHandle value)
Parameters
Type | Name | Description |
---|---|---|
int | nameID | |
Texture |
value |
SetGlobalTexture(int, TextureHandle, RenderTextureSubElement)
Wraps SetGlobalTexture on a CommandBuffer.
Declaration
void SetGlobalTexture(int nameID, TextureHandle value, RenderTextureSubElement element)
Parameters
Type | Name | Description |
---|---|---|
int | nameID | |
Texture |
value | |
Render |
element |
SetGlobalTexture(string, TextureHandle)
Wraps SetGlobalTexture on a CommandBuffer.
Declaration
void SetGlobalTexture(string name, TextureHandle value)
Parameters
Type | Name | Description |
---|---|---|
string | name | |
Texture |
value |
SetGlobalTexture(string, TextureHandle, RenderTextureSubElement)
Wraps SetGlobalTexture on a CommandBuffer.
Declaration
void SetGlobalTexture(string name, TextureHandle value, RenderTextureSubElement element)
Parameters
Type | Name | Description |
---|---|---|
string | name | |
Texture |
value | |
Render |
element |
SetGlobalVector(int, Vector4)
Wraps SetGlobalVector on a CommandBuffer.
Declaration
void SetGlobalVector(int nameID, Vector4 value)
Parameters
SetGlobalVector(string, Vector4)
Wraps SetGlobalVector on a CommandBuffer.
Declaration
void SetGlobalVector(string name, Vector4 value)
Parameters
SetGlobalVectorArray(int, List<Vector4>)
Wraps SetGlobalVectorArray on a CommandBuffer.
Declaration
void SetGlobalVectorArray(int nameID, List<Vector4> values)
Parameters
SetGlobalVectorArray(int, Vector4[])
Wraps SetGlobalVectorArray on a CommandBuffer.
Declaration
void SetGlobalVectorArray(int nameID, Vector4[] values)
Parameters
SetGlobalVectorArray(string, List<Vector4>)
Wraps SetGlobalVectorArray on a CommandBuffer.
Declaration
void SetGlobalVectorArray(string propertyName, List<Vector4> values)
Parameters
SetGlobalVectorArray(string, Vector4[])
Wraps SetGlobalVectorArray on a CommandBuffer.
Declaration
void SetGlobalVectorArray(string propertyName, Vector4[] values)
Parameters
SetInvertCulling(bool)
Wraps SetInvertCulling on a CommandBuffer.
Declaration
void SetInvertCulling(bool invertCulling)
Parameters
Type | Name | Description |
---|---|---|
bool | invertCulling |
SetKeyword(ComputeShader, in LocalKeyword, bool)
Wraps SetKeyword on a CommandBuffer.
Declaration
void SetKeyword(ComputeShader computeShader, in LocalKeyword keyword, bool value)
Parameters
Type | Name | Description |
---|---|---|
Compute |
computeShader | |
Local |
keyword | |
bool | value |
SetKeyword(Material, in LocalKeyword, bool)
Wraps SetKeyword on a CommandBuffer.
Declaration
void SetKeyword(Material material, in LocalKeyword keyword, bool value)
Parameters
Type | Name | Description |
---|---|---|
Material | material | |
Local |
keyword | |
bool | value |
SetKeyword(in GlobalKeyword, bool)
Wraps SetKeyword on a CommandBuffer.
Declaration
void SetKeyword(in GlobalKeyword keyword, bool value)
Parameters
Type | Name | Description |
---|---|---|
Global |
keyword | |
bool | value |
SetLateLatchProjectionMatrices(Matrix4x4[])
Wraps SetLateLatchProjectionMatrices on a CommandBuffer.
Declaration
void SetLateLatchProjectionMatrices(Matrix4x4[] projectionMat)
Parameters
Type | Name | Description |
---|---|---|
Matrix4x4[] | projectionMat |
SetShadowSamplingMode(RenderTargetIdentifier, ShadowSamplingMode)
Wraps SetShadowSamplingMode on a CommandBuffer.
Declaration
void SetShadowSamplingMode(RenderTargetIdentifier shadowmap, ShadowSamplingMode mode)
Parameters
Type | Name | Description |
---|---|---|
Render |
shadowmap | |
Shadow |
mode |
SetSinglePassStereo(SinglePassStereoMode)
Wraps SetSinglePassStereo on a CommandBuffer.
Declaration
void SetSinglePassStereo(SinglePassStereoMode mode)
Parameters
Type | Name | Description |
---|---|---|
Single |
mode |
SetViewProjectionMatrices(Matrix4x4, Matrix4x4)
Wraps SetViewProjectionMatrices on a CommandBuffer.
Declaration
void SetViewProjectionMatrices(Matrix4x4 view, Matrix4x4 proj)
Parameters
SetViewport(Rect)
Wraps SetViewport on a CommandBuffer.
Declaration
void SetViewport(Rect pixelRect)
Parameters
Type | Name | Description |
---|---|---|
Rect | pixelRect |
SetupCameraProperties(Camera)
Wraps SetupCameraProperties on a CommandBuffer.
Declaration
void SetupCameraProperties(Camera camera)
Parameters
Type | Name | Description |
---|---|---|
Camera | camera |
UnmarkLateLatchMatrix(CameraLateLatchMatrixType)
Wraps UnmarkLateLatchMatrix on a CommandBuffer.
Declaration
void UnmarkLateLatchMatrix(CameraLateLatchMatrixType matrixPropertyType)
Parameters
Type | Name | Description |
---|---|---|
Camera |
matrixPropertyType |