SetGlobalTexture
Add a "set global shader texture property" command, referencing a RenderTexture.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
SetGlobalTexture(string, RenderTargetIdentifier)
Add a "set global shader texture property" command, referencing a RenderTexture.
public void SetGlobalTexture(string name, RenderTargetIdentifier value)
Parameters
Remarks
When the command buffer will be executed, a global shader texture property will be set at this point. The effect is as if Shader.SetGlobalTexture was called, but with a RenderTexture instead of a Texture. Additional Resources: RenderTargetIdentifier, RenderTextureSubElement.
SetGlobalTexture(int, RenderTargetIdentifier)
Add a "set global shader texture property" command, referencing a RenderTexture.
public void SetGlobalTexture(int nameID, RenderTargetIdentifier value)
Parameters
Remarks
When the command buffer will be executed, a global shader texture property will be set at this point. The effect is as if Shader.SetGlobalTexture was called, but with a RenderTexture instead of a Texture. Additional Resources: RenderTargetIdentifier, RenderTextureSubElement.
SetGlobalTexture(string, RenderTargetIdentifier, RenderTextureSubElement)
Add a "set global shader texture property" command, referencing a RenderTexture.
public void SetGlobalTexture(string name, RenderTargetIdentifier value, RenderTextureSubElement element)
Parameters
Remarks
When the command buffer will be executed, a global shader texture property will be set at this point. The effect is as if Shader.SetGlobalTexture was called, but with a RenderTexture instead of a Texture. Additional Resources: RenderTargetIdentifier, RenderTextureSubElement.
SetGlobalTexture(int, RenderTargetIdentifier, RenderTextureSubElement)
Add a "set global shader texture property" command, referencing a RenderTexture.
public void SetGlobalTexture(int nameID, RenderTargetIdentifier value, RenderTextureSubElement element)
Parameters
Remarks
When the command buffer will be executed, a global shader texture property will be set at this point. The effect is as if Shader.SetGlobalTexture was called, but with a RenderTexture instead of a Texture. Additional Resources: RenderTargetIdentifier, RenderTextureSubElement.