/// <summary> /// Updates shader variables in ShaderVariablesGlobal CBuffer with given camera properties. /// </summary> /// <param name="cmd">CommandBuffer used for queueing commands.</param> /// <param name="camera">Camera from which values will be taken.</param> public void UpdateShaderVariablesForCamera(CommandBuffer cmd, HDCamera camera) { camera.UpdateShaderVariablesGlobalCB(ref m_ShaderVariablesGlobalCB); ConstantBuffer.PushGlobal(cmd, m_ShaderVariablesGlobalCB, HDShaderIDs._ShaderVariablesGlobal); }